1

In one of my previous sessions using terminal, I typed ^D by mistake.
And now every time I start the terminal, there's this:

^D: command not found

What should I do?

I have used the command clear several times, but every time I start the terminal, that line appears again.

enter image description here

Ravexina
  • 54,268
  • 25
  • 157
  • 179
Sepideh Abadpour
  • 301
  • 1
  • 4
  • 13

1 Answers1

5

Because of installing Cisco AnyConnect client, I had typed

$ cat >> ~/.bash_aliases
alias vpn='/opt/cisco/anyconnect/bin/vpn'
alias vpnui='/opt/cisco/anyconnect/bin/vpnui'
^D

So the non existing command ^D was written in my ~/.bash_aliases file which is run every time I open the terminal.

To solve the problem, type:

nano ~/.bash_aliases

and delete the command ^D

αғsнιη
  • 35,092
  • 41
  • 129
  • 192
Sepideh Abadpour
  • 301
  • 1
  • 4
  • 13
  • 4
    If you weren't aware, the `^D` is [caret notation](https://en.wikipedia.org/wiki/Caret_notation) for End Of Transmission (U+4), which indicates an [end-of-file (EOF)](https://askubuntu.com/q/724990/301745). – wjandrea Sep 04 '18 at 16:43
  • 3
    FYI, the author probably intended you to type `CTRL+D` rather than literal `^D` – steeldriver Sep 04 '18 at 16:43