[PLUG] Locate v. find

Scott Garman sgarman at zenlinux.com
Mon Nov 29 00:27:13 UTC 2010


On 11/28/2010 04:12 PM, John Jason Jordan wrote:
> This is weird:
>
> [root at Devil8 jjj]# locate nvidia.ko
> /lib/modules/2.6.34.7-61.fc13.x86_64/kernel/drivers/video/nvidia.ko
>
> [root at Devil8 jjj]#
> rm /lib/modules/2.6.34.7-61.fc13.x86_64/kernel/drivers/video/nvidia.ko
> rm: cannot remove
> `/lib/modules/2.6.34.7-61.fc13.x86_64/kernel/drivers/video/nvidia.ko':
> No such file or directory
>
> [root at Devil8 jjj]# find nvidia.ko
> find: `nvidia.ko': No such file or directory
>
> Nautilus doesn't see the file either. Does locate just make things up?

On most Linux systems I've worked with, the locate database is only 
updated every so often (usually nightly, but sometimes weekly). Check 
your cron jobs to see how often the "updatedb" command is run.

Scott

-- 
Scott Garman
sgarman at zenlinux dot com



More information about the PLUG mailing list