Alan
Alan

Reputation: 362

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

Upvotes: 3

Views: 17552

Answers (1)

Etan Reisner
Etan Reisner

Reputation: 81052

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.

Upvotes: 3

Related Questions