DEV Community


Posted on • Updated on

$PATH on Mac

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

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.


Top comments (0)