finding things in unix

Dennis Malen dmalen at malen.com
Fri Apr 23 08:20:22 PDT 2010


For AIX if you cd to / and type p it works. If I type in a full name of a 
file at / it does not work and responds with not found. If I go into the 
directory that it resides in it does work.

Dennis Malen
516.479.5912
----- Original Message ----- 
From: "Kenneth Brody" <kenbrody at spamcop.net>
To: "Dennis Malen" <dmalen at malen.com>
Cc: <filepro-list at lists.celestial.com>
Sent: Friday, April 23, 2010 10:58 AM
Subject: Re: finding things in unix


> 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