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.
MacOS – OS X: common paths for executable files
applicationsmacospath
Related Question
- MacOS – How to get a Unix Executable File to run from anywhere, like Java or Git
- MacOS – Permission denied error when copying to /usr/local/bin
- How to add a quick-launch icon in the Dock for a program I’ve downloaded
- MacOS – Characters do not echo in OS X terminal unless I hit the delete key
- How to change the path that is being searched for launching an application
- MacOS – mupdf command does not install with homebrew
- MacOS – Workflow/tools for installing command line application on OS X (Yosemite or later)
- MacOS – Convert bash script to a compiled standalone binary executable, not text
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.