[Nelug] finding files

Andrew Hatch andrew.hatch at bluespace.com
Wed Aug 20 19:07:00 UTC 2003


> Is there a command to recursivly search all folders on a system for a file
> called "index.html"
> and output results to the screen.

There is, and it's called 'find'.  Its often installed by default (RedHat
and Debian usually do).  Do a 'man find' in order to see all the options,
but you probably want to do something like:

find /some/path -iname index.html

e.g:

find /var/www -iname index.html

which will return, e.g:

/var/www/index.html
/var/www/subdir/index.html
...

for each index.html it finds.

HTH,

Andrew





More information about the Nelug mailing list