[Cialug] Help finding file?

Barry Von Ahsen barry at vonahsen.com
Mon Jan 2 16:12:34 CST 2012


the command is updatedb

locate will work on an out of date db, but it will give you a warning


-barry




On 01/02/2012 03:55 PM, Don Ellis wrote:
> And, with 'locate', you have to have rebuilt the locate database.
> Sometimes that is set to happen on a schedule with cron. Need to check
> though. I think if you try to run locate without a database, it will
> give instructions on how to build it. Don't know what it will do if
> there's a database, but it is stale.
> 
> --Don Ellis
> 
> 
> On Mon, Jan 2, 2012 at 3:50 PM, Todd Walton <tdwalton at gmail.com> wrote:
>> On Mon, Jan 2, 2012 at 3:37 PM, Tom Sellers <tomsellers2001 at yahoo.com> wrote:
>>> What is the Ubuntu linux command to locate a file anywhere on the disk?  I
>>> need to have it search the whole directory structure not just the current
>>> directory for the file.
>>
>> 'slocate' (or just 'locate').  You'll have to be root to literally
>> search the entire filesystem.
>>
>> --
>> Todd
>> _______________________________________________
>> Cialug mailing list
>> Cialug at cialug.org
>> http://cialug.org/mailman/listinfo/cialug
> _______________________________________________
> Cialug mailing list
> Cialug at cialug.org
> http://cialug.org/mailman/listinfo/cialug



More information about the Cialug mailing list