LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Path (https://www.linuxquestions.org/questions/linux-general-1/path-6923/)

toxic53 09-26-2001 05:49 PM

Path
 
HOw can I add something to the PATH

/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/home/user/bin

so say thats my PATH and I want to add current directory, I want the PATH to search the current directory it would be something like /. how would I add that to the PATH???

Anyone Thanks

toxic53 09-26-2001 06:10 PM

For anyone interested
 
I figured it out..

do an echo $PATH to know what the current path is

then do PATH=(whatever the current path is):.

the ":" is a seperator and "." is telling path to look in current directory

rahul 10-11-2001 06:26 AM

path
 
hi
If you are still facing the problem you can try this also same thing but the shorter method.

#export PATH=$PATH:(your absolute path name)

For permanently adding your directory as one of the path you can edit files

/etc/profiles
or
/root/.bash_profiles (if your are using bash as your default shell)

with best regards
rahul


All times are GMT -5. The time now is 06:17 PM.