Tell me more ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I wish to have the command locate in ubuntu 12.04 (which is used for finding files. I believe there is such a command but I cannot see it in ubuntu 12.04 Is it part of any package?

share|improve this question
Try using this command: sudo apt-get install locate. – Evandro Silva Nov 10 '12 at 20:24
3  
For the future: if you're looking for a program and don't know the package, install apt-file: sudo apt-get install apt-file and search for the program using apt-file: apt-file search /usr/bin/locate. – hnasarat Nov 10 '12 at 20:57

1 Answer

sudo apt-get install mlocate should install the 'locate' command. But you'll have to sudo updatedb every so often.

share|improve this answer
1  
I believe that the mlocate package installs a mlocate job in /etc/cron.daily which runs updatedb daily. – mfisch Nov 11 '12 at 2:20

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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