searching for a file

Dave Hammond daveh at marob.MASA.COM
Thu May 11 23:05:35 AEST 1989


In article <1530 at cmx.npac.syr.edu> gefuchs at logiclab.cis.syr.edu writes:
>how would one search for a filename in a directory hierarchy?
>[...]
>i was thinking of using :
>        find . -name 'gugu' -print
             ^^^
>but obviously that only works for the current directory

Try:

	find / -name 'gugu' -print

Find recursively searches from the base directory named through
all subdirectories.  Therefore, if you specify "/" as the base
directory, the entire filesystem will be searched.

--
Dave Hammond
daveh at marob.masa.com



More information about the Comp.unix.questions mailing list