OSX - commands in terminal returning command not found

10,573

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.

Share:
10,573

Related videos on Youtube

Admin
Author by

Admin

Updated on September 18, 2022

Comments

  • Admin
    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
    HikeMike almost 13 years
    All of the three are.