0

I don't know why but since this morning, I have the complete bash path in my terminal, every time I open it. I don't know how to remove it?

thanks

bash: /usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/sbin:/usr/sbin:/home/user/.opam/system/bin: No such file or directory

terminal

5
  • I guess you messed up your .bashrc when adding a new location to PATH.
    – pLumo
    Commented Jan 16, 2022 at 21:53
  • 2
    Check your startup scripts for PATH= …. The right syntax for setting a variable requires = to have no adjacent space. Commented Jan 16, 2022 at 21:54
  • Related: Why is foo=bar different from foo= bar? Commented Jan 16, 2022 at 22:10
  • @ilkkachu I'm guessing an addition, like PATH= "${PATH}:/new/dir" Commented Jan 16, 2022 at 22:40
  • @Paul_Pedant, asdf, yes, of course that works too
    – ilkkachu
    Commented Jan 16, 2022 at 23:45

1 Answer 1

2

That's an error message from your ~/.bashrc. bash is trying to find a command with that name, and is failing.
Check your ~/.bashrc you probably have a Space after an =, which is disallowed.

You must log in to answer this question.

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