[NTLUG:Discuss] Basic terminal question

Rusty Haddock rusty at fe2o3.lonestar.org
Mon Mar 7 15:13:09 CST 2005


Bradley's List Address wrote:
    >
    >
    >> On Mon, 2005-03-07 at 23:06, Bradley's List Address wrote:
    >That was it. Thank you.
    >I figured if I was in the directory sbin and typed ifconfig it would work.
    >I was wrong.
    >I will try to learn more about the path concept.

Correct.  Windows and DOS check the current directory for a given
command when in the command line window.  Unix does not, by default.
If you want your shell to do this, and it's a known security risk if
you do, add a period to your PATH variable.

If your PATH is   /usr/bin;/bin;/usr/local/bin
just do
	PATH=$PATH:.

Many shells will accept this syntax.  There are some that won't.
Cshell and derivatives come to mind.  Bash does.

	-Rusty-
-- 
   _____        Rusty Haddock  =  KD4WLZ  =  rusty at fe2o3.lonestar.org
|\/   o \   o  **Out yonder in the Van Alstyne (TX) Metropolitan Area**
|   (  -<  O o              Microsoft is to software what
|/\__V__/                  McDonalds is to gourmet cooking




More information about the Discuss mailing list