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 |
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 |
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. |