Thứ Tư, tháng 7 01, 2015

Set PATH on Ubuntu

Open Files, in your home folder, press Ctrl + H
Edit .bashrc in your home directory and add the following line:

export PATH=/path/to/dir:$PATH
 
You will need to source your .bashrc or logout/login (or restart the terminal) for the changes to take effect.

To source your .bashrc, simply type

$ source .bashrc
 
when in the home directory.