Linux-Hams archive - January 1998: Re: GREP

Re: GREP

Glynn Clements (djmz@mailit.tunk.net)
Wed, 7 Jan 1998 20:45:26 GMT


Daniel Avila wrote:

> I want to search my whole sys for a certain file ex:httpd can someone give
> me an example for the following grep items.

find / -type f -name httpd

The command

locate httpd

will use the database that is built by updatedb, which is usually run
from a cron job early in the morning. If your system isn't usually
turned on then, you can run `updatedb' manually to build the database.

See the manpages for `find' and `locate' for more details.

-- 
Glynn Clements <oismj.mviupyjeg@sofnet.com>