Mac terminal -bash command not found?
87,002
Solution 1
Your path is usually set in either your .profile or .bashrc file. These are found in the root of your user's home directory.
You should be able to fix them by running these two commands in the terminal. They contain the default executable paths
export PATH="/usr/bin:/bin:/usr/sbin:/sbin"
export PATH="/usr/local/bin:/usr/local/sbin:$PATH"
Solution 2
You can set your path
this way:
export PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
and you can always add other directories if you want. Hope this helps.
Author by
Admin
Updated on June 02, 2020Comments
-
Admin almost 4 years
I'm completely new to using terminal, and while trying to use
brew
to install some stuff, I did something toPATH
. Now if I tell it to do something it always returns-bash: blah: command not found.
Is there any way to reset something to fix this? What should I do?