About Lesson
[Linux] Setup PATH variable
PATH can be set as follows for a particular terminal session in Linux.
Assume the Python directory path: /usr/local/bin/python
In the bash shell, type the following command
export PATH=$PATH:/usr/local/bin/python
Press the Enter key.
The export command in Linux sets an environment variable in the current shell session. When you use the export command followed by the variable name, that variable becomes available to any child processes created from that shell session. This allows you to define variables that can be used by programs or scripts running within that session.
The Linux operating system is case-sensitive. So, PATH and Path in Linux are two different variables.