[KLUG Members] why need executable absolute path?
Bruce Smith
members@kalamazoolinux.org
03 Aug 2002 17:25:32 -0400
> While in a subdirectory, I can type
>
> vi somefile
>
> It will open because the file (somefile) is in the current directory. But, if
> the file is executable, I can't type
>
> somefile
>
> I have to type
>
> /home/somedir/somefile
>
> Why is that?
Because "/home/somedir/" is not in your $PATH.
Shorter way to run the file is: "./somefile"
Or you could add "." to your $PATH, but that's not recommended because
of security reasons. (especially for root)
--------------------------------------------
Bruce Smith bruce@armintl.com
System Administrator / Network Administrator
Armstrong International, Inc.
Three Rivers, Michigan 49093 USA
http://www.armstrong-intl.com/
--------------------------------------------