Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Terminal says 'No such file or directory' when open

In the last couple of days my terminal has been saying

-bash: /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/git/bin: No such file or directory

However, all of the above do exist. I was playing around with $PATH variable last week but the error I am now getting appeared days after I stopped playing with the $PATH variable.

Here's a screenshot of the error in my termianl.app

Here are the contents of my .bash_profile that I was playing about with too:

The contents of my .bash_profile

like image 811
Alan Avatar asked Feb 02 '26 18:02

Alan


1 Answers

The first line of your .bash_profile is the problem.

That line is attempting to run /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/git/bin as a command which causes the error you see when you start the shell.

Remove that line and the error should go away.

like image 198
Etan Reisner Avatar answered Feb 04 '26 11:02

Etan Reisner



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!