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

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

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'

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

  • 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 '18 at 16:43
  • 3
    FYI, the author probably intended you to type CTRL+D rather than literal ^D – steeldriver Sep 4 '18 at 16:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.