OSX - commands in terminal returning command not found
Solution 1
Not a fix, but most of those commands are found in /bin
, not /usr/bin
.
Solution 2
Put /bin
in your path by running this command:
export PATH=$PATH:/bin
All these binaries exist in /bin
under Mac OS.
Solution 3
ls
is in /bin
you need to modify the PATH
environment variable to include the bin directory of your scala install.
for example, to add all the android sdk commands to my path, i put
export PATH=${PATH}:~/sdks/android-sdk-mac_86/tools
in my ~/.bash_profile
Be very careful when modifying the path. If you do it wrong, you will lose access to a lot of the system commands.
Related videos on Youtube
Admin
Updated on September 18, 2022Comments
-
Admin over 1 year
I recently downloaded and installed scala(tried to anyway) and just noticed that commands in terminal are not found.. I was tinkering with my path variable so I assume that is the problem...
I was reading around and saw that all of those commands should be in /usr/bin directory.. so if i type /usr/bin/ls into terminal i should still get a list. But I can't seem to find any of those commands (ls, mv, cp, etc).. they are just nowhere to be found
Does anybody know how to fix this? thanks!
-
HikeMike almost 13 yearsAll of the three are.