Modify Linux $Path variable

From Birnam Designs Wiki

Jump to: navigation, search

For a system-wide extension to $PATH:

sudo vim /etc/bash.bashrc

and then inside bash.bashrc:

export PATH=${PATH}:/new/path/path-1.0:/different/folder-2.1

The initial ${PATH} allows you to extend the existing $PATH without overwriting anything there already.

Share This!
This page was last modified on 11 February 2010, at 20:01. This page has been accessed 418 times.