[PLUG] Locate v. find

Marvin Kosmal mkosmal at gmail.com
Mon Nov 29 00:47:54 UTC 2010


On 11/28/10, John Jason Jordan <johnxj at comcast.net> 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?
> _______________________________________________
> PLUG mailing list
> PLUG at lists.pdxlinux.org
> http://lists.pdxlinux.org/mailman/listinfo/plug
>



Another quick answer

Locate uses a database to answer the question..

Find does a search to answer the question..
Find is also A LOT move flexible..    Takes more options



HTH

Marvin



More information about the PLUG mailing list