H2S Forum

How to add a directory to the Environment Path on Linux

Change the /path/to/dir with the directory path you want to add…

export PATH="/path/to/dir:$PATH"

After that source your .bashrc or logout/login (or restart the terminal) for the changes to take effect. To source your .bashrc , simply type

$ source ~/.bashrc