On Tue, 2003-03-04 at 08:16, Jon Haugsand wrote:
> * 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.

locate from the command line is the fastest way.  In both Gnome and KDE
desktops there are search tools.  In Gnome click the Redhat and choose
Search for files... I think that is it I am not in front of a Redhat box
right now.  In KDE in your file manager there is a locate or find files
option as well.  Both of those options will be a lot slower than locate.

However, for new folks I love to also illustrate a graphical way to get
these things done.  

-- 
Johnathan Bailes <[EMAIL PROTECTED]>



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

Reply via email to