PDA

View Full Version : [ubuntu_studio] Edit PATH



MauserM98
August 10th, 2009, 10:37 AM
How do I edit Path?
I put a complex command inside a textfile that is executable and I wan't this file to work regardless of whom the user might be (root, me , someone).
I put the file in /usr/sbin since $PATH gave me that option but I guess that is not an ideal place.

Thanx in advance

slakkie
August 10th, 2009, 10:50 AM
Per user basis:

edit your shellrc (eg .bashrc/.zshrc):

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