Click to See Complete Forum and Search --> : Setting my Path


Rastar
07-03-2001, 10:03 AM
For some reason my path under RH7.1 does not include much. I cannot just run a command like I used to for example the patch command is in /usr/bin
I used to be able to just type ./patch from wherever I was and it would run now I get the infamous Huh? or patch command file or directory not found. Some time ago I thought I was told that the path command is actually in the bash.conf is this true?
and if so can I just put whatever directories (permissions able) into it?

Thanks
Ras

bdg1983
07-03-2001, 10:15 AM
System wide PATH can be added to /etc/profile.

The BASH Configuration (http://www.linuxnewbie.org/nhf/intel/shells/bashconfig.html) NHF explains more.

Derango
07-03-2001, 11:01 AM
Originally posted by Rastar:
<STRONG>For some reason my path under RH7.1 does not include much. I cannot just run a command like I used to for example the patch command is in /usr/bin
I used to be able to just type ./patch from wherever I was and it would run now I get the infamous Huh? or patch command file or directory not found. Some time ago I thought I was told that the path command is actually in the bash.conf is this true?
and if so can I just put whatever directories (permissions able) into it?

Thanks
Ras</STRONG>

You don't want to be typing ./patch. The "./" means that you want it to run the file patch in the current directory. To search along the path, just type "patch" without any prefix.