Re: [PLUG] Locate v. find

2010-11-29 Thread Mike Connors
On Mon, Nov 29, 2010 at 6:38 AM, frankhunt wrote: > As usual, especially in Linux, "it depends" . . . > > whereis: will search only particular paths to find binaries and or > manpages. > > locate: locate uses a database created by updatedb to efficiently locate > files. Works great, assuming your

Re: [PLUG] Locate v. find

2010-11-29 Thread Rich Shepard
On Mon, 29 Nov 2010, frankhunt wrote: > As usual, especially in Linux, "it depends" . . . And, there's 'which' that shows the full path to (shell) commands. Useful for finding binaries to run. Rich ___ PLUG mailing list PLUG@lists.pdxlinux.org http:

Re: [PLUG] Locate v. find

2010-11-29 Thread frankhunt
As usual, especially in Linux, "it depends" . . . whereis: will search only particular paths to find binaries and or manpages. locate: locate uses a database created by updatedb to efficiently locate files. Works great, assuming your database is updated often enough. updatedb usually runs dai

Re: [PLUG] Locate v. find

2010-11-29 Thread Rich Shepard
On Sun, 28 Nov 2010, Rogan Creswick wrote: > If you need to find things often, you're probably better served by running > updatedb more frequently. I often 'sudo updatedb', grab a coffee, and > come back to run locate. (well, I do this less often than I drink coffee > :). For me, updatedb is a 5

Re: [PLUG] Locate v. find

2010-11-28 Thread Rogan Creswick
On Sun, Nov 28, 2010 at 6:14 PM, John Jason Jordan wrote: > On Sun, 28 Nov 2010 16:47:54 -0800 > Marvin Kosmal dijo: > >>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 > > Thanks for all t

Re: [PLUG] Locate v. find

2010-11-28 Thread John Jason Jordan
On Sun, 28 Nov 2010 16:47:54 -0800 Marvin Kosmal dijo: >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 Thanks for all the replies. Now I understand. And from now on I'll just use find.

Re: [PLUG] Locate v. find

2010-11-28 Thread Marvin Kosmal
On 11/28/10, John Jason Jordan wrote: > This is weird: > > [r...@devil8 jjj]# locate nvidia.ko > /lib/modules/2.6.34.7-61.fc13.x86_64/kernel/drivers/video/nvidia.ko > > [r...@devil8 jjj]# > rm /lib/modules/2.6.34.7-61.fc13.x86_64/kernel/drivers/video/nvidia.ko > rm: cannot remove > `/lib/modules/2

Re: [PLUG] Locate v. find

2010-11-28 Thread Marvin Kosmal
On 11/28/10, Marvin Kosmal wrote: > HI > > > Find takes more options > > Try > > > find / -name "nvidia.ko" -print > > Marvin > This works better.. find / -name "nividia.ko" -print 2>/dev/null Marvin > > > On 11/28/10, John Jason Jordan wrote: >> This is weird: >> >> [r...@devil8 jjj]

Re: [PLUG] Locate v. find

2010-11-28 Thread frankhunt
you can run updatedb manually also On 11/28/2010 04:27 PM, Scott Garman wrote: > On 11/28/2010 04:12 PM, John Jason Jordan wrote: >> This is weird: >> >> [r...@devil8 jjj]# locate nvidia.ko >> /lib/modules/2.6.34.7-61.fc13.x86_64/kernel/drivers/video/nvidia.ko >> >> [r...@devil8 jjj]# >> rm /lib/

Re: [PLUG] Locate v. find

2010-11-28 Thread Marvin Kosmal
HI Find takes more options Try find / -name "nvidia.ko" -print Marvin On 11/28/10, John Jason Jordan wrote: > This is weird: > > [r...@devil8 jjj]# locate nvidia.ko > /lib/modules/2.6.34.7-61.fc13.x86_64/kernel/drivers/video/nvidia.ko > > [r...@devil8 jjj]# > rm /lib/modules/2.6.34.7-61.f

Re: [PLUG] Locate v. find

2010-11-28 Thread Scott Garman
On 11/28/2010 04:12 PM, John Jason Jordan wrote: > This is weird: > > [r...@devil8 jjj]# locate nvidia.ko > /lib/modules/2.6.34.7-61.fc13.x86_64/kernel/drivers/video/nvidia.ko > > [r...@devil8 jjj]# > rm /lib/modules/2.6.34.7-61.fc13.x86_64/kernel/drivers/video/nvidia.ko > rm: cannot remove > `/lib

[PLUG] Locate v. find

2010-11-28 Thread John Jason Jordan
This is weird: [r...@devil8 jjj]# locate nvidia.ko /lib/modules/2.6.34.7-61.fc13.x86_64/kernel/drivers/video/nvidia.ko [r...@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':