DEV Community

StuartCreed
StuartCreed

Posted on • Edited on

1 1

$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

/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)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay