Monday, February 1, 2021

Linux - Add Permanent Path variable

 Add a line to: 

~/.profile


Example $PATH - Refers to your current path.

export PATH="$PATH:/usr/bin/mobydick"

Just modifying $PATH directly is useless since it is NOT permanent (current shell only). And needs this command to execute:

source ~/.bash_profile