How-to Find/Search for File/Directory/Image/Path on Ubuntu 15.10 Wily Command Line Easy Guide

January 20th, 2016 by thelinuxevangelist

Linux Ubuntu locate Command Quick-Start



This short Tutorial will Get You Started with a Very Useful Linux Ubuntu Shell Utility: the locate Command.

Almost all we are working on linux before or after we need desperately to Find something from the Shell.

The Easiest and Fastest Way to Find System’s Entities in Unix-like Platforms is Matched Using the “locate” Shell Command.

Searching for Files/Directories/Locations/Paths on Ubuntu 15.10 Wily - Featured
  1. Open a Shell session
    Ctr+Alt+t to open a Terminal emulator on Desktop
    (Press “Enter” to Execute Commands)

    Searching for Files/Directories/Locations/Paths on Ubuntu 15.10 Wily - Open Terminal Shell Emulator
  2. First Update the Locate Database:

    sudo updatedb

    If Got “User is Not in Sudoers file” then Look: Solution
    You will need to Wait for a little while, depending from the Size of Your System, Until the Locate Database is Updated…
    This procedure Should be Repeated Every Time you Use the locate Command after your System made some Significant Change.

    How-to Automatically Update the locate Database with Cron

    Cronjob Setup for updatedb
  3. Simple Keyword Searching

    locate [myKeyword]

    Whith the Syntax above you can Locate All Files, Directories, Images and Locations Containing the Given “myKeyword”

  4. How-to Refine your locate Search-Results

    How-to Use grep with locate
Share on Tumblr

Tags: , , , , , , , , , , , , , , , , , , , , , , , , , , , ,


Comments are disabled