You can find out whats in your path by launching Terminal in Applications/Utilities and entering: echo $PATHĪnd the result should be like this.(the last one when you have Xcode) /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin Your shell path is a bunch of absolute paths of the filing system separated by colons :
You can just type the command, regardless of where you are in the filing system: myscript.sh So instead of running something like this, with a path to the command or script: /Users/yourusername/bin/myscript.sh
The shell path for a user in macOS is a set of paths in the filing system whereby the user has permissions to use certain applications, commands and programs without the need to specify the full path to that command or program in the Terminal.