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?
sudo apt-get install locate
sudo apt-get install apt-file
apt-file search /usr/bin/locate
sudo apt-get install mlocate should install the 'locate' command, or you can install it from here:
sudo apt-get install mlocate
mlocate maintains a database of all your files and is re-indexed once a day by default. If you want it to re-index immediately then run sudo updatedb from the command line.
If you get a cannot stat error when you run locate, then you need to run sudo updatedb to populate the database, just as if you wanted to re-index immediately.
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
3 years ago
8 months ago