* Jim Hale
> I know that I'm still REALLY new to Linux (Obviously) but am trying to
> figure out how to find a file.
> 
> Say, I wanted to find php.ini, what would I need to type in?

As others have pointed out, 'find' is the general utility.  However,
the programs traverses the complete tree at the given directory, and
this might be HUGE.  In a working system, using find from the root
directory is not feasable.  However, if you know more about where it
is, i.e. in what subtree, e.g. that it is somewhere in your home
directory, then it is very powerful, e.g:

cd ~/
find . -name '*php.ini'

For large searches, locate is very nice, and as you probably have
RedHat on your computer, locate/updatedb follows by default.
I.e. each night, something like 'find / -print >somefile.db' is done
such that you can search this file.  This is done with the 'locate'
utility.  Try it.

-- 
 Jon Haugsand, [EMAIL PROTECTED]
 http://www.norges-bank.no



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to