Thursday, August 1, 2013

Ubuntu - How to add a dir to PATH

In Ubuntu 12.04 or newer, edit the ~/.bashrc to add a directory to PATH. Add the following line to the end of the file:

export PATH=/my/path:$PATH


For the changes to take effect:

$ source ~/.bashrc