
REGGIE C. answered 09/24/19
Experienced Tutor Specializing in IT Systems/Security |MSc.|Cybersec
$PATH is nothing but an environment variable on Linux, OS X, Unix-like operating systems, and Microsoft Windows. You can specify a set of directories where executable programs are located using $PATH. The $PATH variable is specified as a list of directory names separated by colon (:) characters. To print the current settings, open the Terminal and then type:
echo "$PATH"
Change your PATH environment:
1: $HOME/.bash_profile file using export syntax.
2: /etc/paths.d directory.
SYNTAX:
export PATH=$PATH:/new/dir/location1
export PATH=$PATH:/new/dir1:/dir2:/dir/path/no3