Linux locate Command Quick Start
This short Guide will Get You Started with a Very Useful Command Line Utility: the locate Command.
Everybody when Working on Linux, Mac or Unix need so Often to Find some Files, Directories, Images or Paths.
The Best and Fastest Way to Find System’s Entities in Unix-like Platforms is Matched Using the “locate” Shell Command.
This Exact Procedure Works on Most Linux Distros, but some times the updatedb Command is Not Under the Same Nomination or Path like Here, so if you Do Not Find the updatedb on your System Look For a more Specific Tutorial.
Take the Time of Reading and Understanding to Get a Clear Insight…
- Open a Terminal Window
(Press “Enter” to Execute Commands)
- Check if the updatedb Commad is On your System Path
If is Not there you Should Find another More Specific Guide or Consult your Specific Distro Documentation.
- Update the Locate Database:
You need to Wait for a little while Until the Locate Database is Updated…
This procedure Should be Repeated Every Time you Use the locate Command and your System made some Significant Change.
- Simple Keyword Searching
Whith this Syntax above you can Locate All Files, Directories, Images and Paths Containing the Given “keyword”
How to Automatically Update the locate DatabaseSetup Cronjob for updatedb
How to Refine your locate Search-ResultsHow to Use grep with locate