Terminal says 'No such file or directory' when open
14,401
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.
Author by
Alan
Updated on June 04, 2022Comments
-
Alan almost 2 years
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 are the contents of my .bash_profile that I was playing about with too: