How do I install Locate in Linux?

How do I install Locate in Linux?
Answer
Use the Locate command
  1. Debian and Ubuntu sudo apt-get install locate.
  2. CentOS yum install locate.
  3. Prepare locate command for first use. To update the mlocate.db database before first use, run: sudo updatedb. To use locate, open a terminal and type locate followed by the file name you are looking for.
 

Tìm kiếm

Back
Top