Opening a set of apps
NoOp
glgxg at sbcglobal.net
Thu May 6 21:29:14 UTC 2010
On 05/06/2010 11:34 AM, Maxime Alarie wrote:
> Noop,
>
> I am just curious.. I never used the locate program, is it better than
> find?
>
> I would have used find / -type f *.desktop | more
>
Actually 'find' is (IMO) much more powerful but needs the path & added
instructions. 'locate' uses the 'updatedb' database & fewer
options/intructions, so is easy to use for us lazy folks :-)
Disadvantage is that if the 'updatedb' hasn't been updated after you've
made quite a few file changes, 'locate' may not actually "locate" what
you are looking for. Generally if I am in that state I'll do a 'sudo
updatedb' before I run the 'locate' command. Not sure if that all makes
sense, but these might better explain:
http://manpages.ubuntu.com/manpages/lucid/en/man1/find.1posix.html
http://manpages.ubuntu.com/manpages/lucid/man1/locate.findutils.1.html
http://manpages.ubuntu.com/manpages/lucid/en/man8/updatedb.8.html
http://joysofprogramming.com/find-vs-locate/
More information about the ubuntu-users
mailing list