How-to Locate Files/Directories on Debian Shell
Hello Debian User! This 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 32/64-bit 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.
Open a Shell session
(Press “Enter” to Execute Commands)
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 Look: Solution
Getting-Started Searching with the locate Command Line Tool.Linux How-to Use the locate Command