View your PATH
Run the following command to view your PATH:
echo $PATH
Edit your PATH
sudo nano /etc/paths
If using zsh shell as default:
To do this via your .zshrc file type in:
export PATH="GEOSERVER_HOME=/usr/local/geoserver:$PATH"
What is the purpose of PATH?
PATH is an environment variable that contains a colon-separated list of directories where your shell will look for executables that you name on the command line without providing an explicit path to them (as in your jsdoc example). Thus, if your PATH has
/usr/bin:/bin:/home/bin
then any executable you call by name will be searched for in these directories (in that order) and the first executable found is the one executed.
source:
https://unix.stackexchange.com/questions/111550/what-is-path-on-a-mac-os/111557
Top comments (0)