In: Computer Science
The shell maintains a variable under PATH in its own environment.
PATH is set to a list of colon-delimited directories. You can display this list by simply evaluating the $-prefixed variable with the echo command:
Now I had been observe the differences between echo $PATH and
x=5 echo "$PATH $x" is:
From above displaying value along with the path of different directories in environment.