MacOS – OS X: common paths for executable files

applicationsmacospath

I have some executable files in OS X which I want to access from terminal from any area. For example in Linux, we can copy executables or binaries to /usr/local/bin or /usr/bin. So similar to that where can I copy executables in OS X? I have downloaded Firefox and copied it to /Applications. Now I want to execute Firefox from any area without going in to the /Applications.

Best Answer

/usr/local/bin is a suitable path for non-GUI applications. For example, you might put rsync 3.0 in there as compiled 'rsync3'.

This folder is listed in $PATH by default.