How Do I Find a File in Debian?
Contents

How do I find files in Debian?

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.

How do I locate a file in Linux?

Basic Examples

  1. find . – name thisfile.txt. …
  2. find /home -name *.jpg. Look for all .jpg files in the /home and directories below it.
  3. find . – type f -empty. …
  4. find /home -user randomperson-mtime 6 -iname “.db”
Chloe Bennett

Chloe Bennett

Culture, Media & Entertainment Columnist

Chloe Bennett explores the intersection of pop culture, streaming entertainment, digital trends, and contemporary lifestyle. Her weekly commentary reaches thousands of culture enthusiasts.

Share this article
Twitter Facebook Pinterest