Vagrant is running on virtualbox of my mac. It seems it is not a usual linux system. I cannot directly use locate command to find files. What command should be used to install it?
Asked
Active
Viewed 841 times
1 Answers
0
vagrant box is real and usual Linux system. If you can't find some commands, try to search and install it
For example, with yum (depend on the linux system)
yum search locate
yum -y install mlocate

BMW
- 42,880
- 12
- 99
- 116
-
Also I need to execute "updatedb" as root. Then the locate command works. Thanks so much. – Derek Zhang Dec 29 '15 at 22:41