removing one directory in PATH env
hi there:
i have just learn how to add directory to the existing enviromental variable by doing PATH=$PATH:/newdirectory but i can't seem to figure out how to remove a particular directory, can anyone help? thanks CHUN |
Just don't add it to the PATH variable or after it has been set just edit the variable to what you like..
|
thanks, so to remove a particular directory is to redifine all but the one i want to remove?
CHUN |
Yep ... why set it first and remove it later? :)
Just wouldn't make sense, would it? If it's something you need changed once in a blue moon you could probably export PATH=`echo $PATH|sed 's/remove_me//'` Cheers, Tink |
well, i set it to the wrong directory, that's why;)
CHUN |
All times are GMT -5. The time now is 03:01 PM. |