PATH Environment Variable

By Hemanta Sundaray on 2022-07-07

PATH is an environment variable that stores a list of directories separated by a colon.

Type echo $PATH in the terminal and you should see a list of directories.

Terminal

Each directory contains scripts for the command line to execute. The PATH variable simply lists the directories that contain scripts.

Join the Newsletter