Open Source Library (UK)

Monday, April 17, 2006

debian global path (global environment variable)

everytime I want to make changes to this, I forget its location :-s

to combat this, here's my bookmark:

/etc/profile

for those who have never done this in Linux before, but have in windows, you append things in the same manner you do in windows, using : as separators as opposed to ;

if you do not feel adventurous you can just add to the bottom of the file: export PATH=$PATH:/location/of/new/feature

this can also be added to individual users shell rc files (.bashrc for example) if you only want certain users to have the program in their path

alternativley of course, you could just add a symbolic link to /usr/bin :-)

like this:

cd /usr/bin
ln -s /path/to/program

be forewarned though, this only works for self-contained programs! so programs such as Azureus which use the path they were called from to locate its JAR files will not work using this!

0 Comments:

Post a Comment

<< Home