How to Quick-Start Search / Find for Files / Directories on Debian

July 5, 2016 | By the+gnu+linux+evangelist.

How to Locate Files/Directories on Debian Shell




Hi! The Tutorial shows you Step-by-step How to Getting-Started Easily Finding/Searching/Looking for Files, Directories and Paths on Debian 7-Wheezy/8-Jessie/9-Stretch/10-Buster/11-Bullseye/12-Bookworm Desktops/Servers.

To try to Find the stuff in Debian we will make use of the Shell commands updatedb and locate.

updatedb creates or updates a database used by locate. If the database already exists, its data is reused to avoid rereading directories that have not changed.

updatedb is usually run daily by cron to update the default database.

Search / Find for Files and Directories on Debian Linux - Featured
  1. Open a Shell session
    (Press “Enter” to Execute Commands)

    Search / Find for Files and Directories on Debian Linux - Open Terminal
  2. Install the mlocate Package:

    sudo apt-get install mlocate

    If not Found then before Update the Apt database with:

    sudo apt-get update

    If Got “User is Not in Sudoers file” then see: How to Enable sudo

  3. Getting-Started Searching with the locate Command Line Tool.

    Linux How to Use the locate Command

QuickChic Theme • Powered by WordPress