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

1
  • 5
    Check your ~/.bashrc - it probably has the ^D. Delete it
    – waltinator
    Sep 4, 2018 at 14:59

1 Answer 1

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

2
  • 4
    If you weren't aware, the ^D is caret notation for End Of Transmission (U+4), which indicates an end-of-file (EOF).
    – wjandrea
    Sep 4, 2018 at 16:43
  • 3
    FYI, the author probably intended you to type CTRL+D rather than literal ^D Sep 4, 2018 at 16:43

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .