finding things in unix

Kenneth Brody kenbrody at spamcop.net
Fri Apr 23 07:58:05 PDT 2010


On 4/23/2010 10:51 AM, Dennis Malen wrote:
> Mike,
>
> type only works if you are sitting in the actual directory that the file
> resides. Find seems to search all directories. At least that is the way it
> worked on AIX.

[...]

No, "type" will search the PATH, and tell you where it found an executable. 
  (Or tell you if it's a shell macro or built-in.)  If you can type "foo", 
and have something execute, then "type foo" will tell you where "foo" 
resides.  Try it with "type p" and "type cd".

However, what several of you apparently missed (as did I at first) was that 
he's not at a shell prompt typing "uploadtest".  Rather, he is within ftp 
and typing "$ uploadtest".  (At least that's what his post said.)

-- 
Kenneth Brody


More information about the Filepro-list mailing list