I have a binary buried in a deep path (ex: /Library/Path/to/Folder/Application.app/Contents/MacOS/execBinaryFile) and I would like to be able to run this execBinaryFile in the Terminal.app without having to type in the whole path.
The solution I have in mind is to place an alias somewhere that the Terminal will look up. For example, the "asr" command is accessible in Terminal no matter which folder you are currently in. Using "which asr" command, it points to /usr/sbin/asr file. I assume that whatever is in /usr/sbin/ can be accessed no matter what folder you're currently at in Terminal but I don't think we are allowed to place user files in "/usr/sbin".
Is there another place to put an alias to the sample "execBinaryFile" in to make it accessible from anywhere like "asr" and other system commands?
The solution I have in mind is to place an alias somewhere that the Terminal will look up. For example, the "asr" command is accessible in Terminal no matter which folder you are currently in. Using "which asr" command, it points to /usr/sbin/asr file. I assume that whatever is in /usr/sbin/ can be accessed no matter what folder you're currently at in Terminal but I don't think we are allowed to place user files in "/usr/sbin".
Is there another place to put an alias to the sample "execBinaryFile" in to make it accessible from anywhere like "asr" and other system commands?