How Do I Find a File in Debian?
Contents How Do I Find Files in Debian? Use the Locate Command Debian and Ubuntu Sudo Apt-Get Install Locate. Centos Yum Install Locate. Prepare Locate Command...
Contents
How do I find files in Debian?
Use the Locate command
- Debian and Ubuntu sudo apt-get install locate.
- CentOS yum install locate.
- 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.
Must Read
How do I locate a file in Linux?
Basic Examples
- find . – name thisfile.txt. …
- find /home -name *.jpg. Look for all .jpg files in the /home and directories below it.
- find . – type f -empty. …
- find /home -user randomperson-mtime 6 -iname “.db”