System Path
The system PATH is an environment variable that tells the operating system where to find executable files. Adding directories to the PATH allows you to run commands from the terminal without specifying their full location.
Windows system path
To add a new directory to the system path on Windows:
- Open the Environment Variables screen as described in the Environment Variables section.
- Under System variables, select the Path variable and click the Edit button.

- In the new window, click New, add the directory path you want to include, and click OK to save.

MacOS system path
To add a new directory to the system path on macOS:
- Open your shell configuration file (e.g.,
~/.zshrc) as described in the Environment Variables section. - To add a new directory to the
PATHenvironment variable, append a line like this:shellFor example:export PATH="$PATH:/path/to/your/directory"shellexport PATH="$PATH:/Users/mauro/Library/Android/sdk/cmdline-tools/latest/bin" - Save the file and restart your terminal session to apply the changes.