Why there are two so similar command in Linux? and normally what are the circumstances to use each of them?

link|improve this question

You mean locate and Find? – Sachin Shanbhag Oct 14 '10 at 15:21
2  
migrate to superuser.com – KevinDTimm Oct 14 '10 at 15:27
feedback

migrated from stackoverflow.com Oct 14 '10 at 15:44

This question came from our site for professional and enthusiast programmers.

2 Answers

up vote 7 down vote accepted

find searches in the real system. Is slower but always up-to-date and has more options (size, modification time,...)

locate uses a previously built database (command updatedb). Is much faster, but uses an 'older' database and searches only names or parts of them.

In any case, man find and man locate will help you further.

link|improve this answer
feedback

Check this link, you have both Find and Locate -

http://www.westwind.com/reference/OS-X/commandline/misc.html#locate

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.