Re: Searching for files
On Thu, Jun 27, 2002 at 11:39:26PM -0400, Josh Huber wrote:
> Bert Knabe <bknabe@mac.com> writes:
>
> > How do you search for a file from the command line?
>
> Check out either locate or find.
>
> $ locate XF86Config-4
> /etc/X11/XF86Config-4
> /usr/X11R6/man/man5/XF86Config-4.5x.gz
>
> "find / -name XF86Config-4" would do the same thing.
>
> locate searches for files in a database which is updated every night,
> find actually looks at what's on your disk. locate is therefore much
> faster, while find is much more flexible. (check the manpage for it to
> see what I mean!)
Also, for some good introduction to console commands, try the pgi Users
Guide. Just ignore the graphical parts, and check out the console stuff.
http://www.debian.org/doc/manuals/users-guide/
BTW, If you don't keep your computer on at night, you have to
initially and periodically rebuild the locate database using updatedb.
But these are also debian-user issues, not debian-powerpc.
--
*------v--------- Installing Debian GNU/Linux 3.0 --------v------*
| <http://www.debian.org/releases/woody/installmanual> |
| debian-imac (potato): <http://debian-imac.sourceforge.net> |
| Chris Tillman tillman@voicetrak.com |
| May the Source be with you |
*----------------------------------------------------------------*
--
To UNSUBSCRIBE, email to debian-powerpc-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Reply to: