Linux How to Update Automatically the Updatedb Locate Database

May 28, 2012 | By Duchateaux.

This Article shows you How to have a Freshly Updated Locate Database for Searching/Finding Stuff on Linux.

The locate Command is the Easiest and Fastest Way to Find and Search for Files, Directories, Images and Paths on the Unix-like Systems.

If you want to Find a Tutorial for Getting-Started with the Locate Command you Find a Link Inside the Guide.

Relax and Take the Time for Reading, Understanding and Enjoying the Clear Insight Brought to you by this Guide.

Linux Penguin Wizard
  1. Open a Terminal Window
    (Press “Enter” to Execute Commands)

  2. Check the updatedb Location
    which updatedb

    The updatedb Path in Most Linux Distros should be: /usr/bin/updatedb.

    If you Do Not Get any Output find Documentation About the updatedb Command for your System.

  3. Login as Superuser
    su 

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

  4. Edit the Root Crontab
    crontab -e

    The File will be Open on your Default System Terminal Editor and this is One between Two:

    • nano

    • vi

    .

  5. To have a Database Updated Hourly Add this Line to the Crontab
    58   *   *   *   *   /usr/bin/updatedb

    In vi Editor you Need to Hit the “i” Key to Enter in Editing Mode.

  6. Save & Exit with
    • On nano: Ctrl+x

    • On vi:

      1. Esc

      2. :wq

  7. For Getting-Started Using the locate Command.

Sviluppo Siti WebInstall and Getting-Started on Oracle 11g R2 for RHEL 6Install and Getting-Started on Oracle 11g R2 for RHEL 6Install and Getting-Started on Oracle 11g R2 for Oracle Linux 6Install and Getting-Started on Oracle 11g R2 for Oracle Linux 6How to Install VMware Tools on Linux Mint 12How to Install VMware Tools on Ubuntu 11 LinuxHow to Install VMware Tools on Ubuntu 12How to Install VMware Tools Fedora 16 Linux Easy Visual GuideHow to Install VMware Tools on Fedora-16 LinuxHow to Install VMware Tools on Fedora PAE Kernel LinuxHow to Install VMware Tools on Debian Wheezy LinuxHow to Install VMware Tools on Debian Lenny and Squeeze LinuxHow to Install VMware Tools on CentOS 6 Linux VisuallyHow to Install VMware Tools on CentOS 6 LinuxHow to Install VMware Tools on OpenSuse LinuxHow to Install VMware Tools on RHEL 6 LinuxHow to Install VMware Tools on Oracle Linux 6How to Install VMware Tools on Mageia LinuxHow to Install VMware Tools on Rosa Marathon 12 LinuxHow to Install VMware Tools on FreeBSD 9 UnixHow to Install Evernote on Linux Oracle 6 KDEHow to Install Evernote on Linux RHEL 6 KDEHow to Install Evernote on Fedora Linux 16 KDEHow to Install Evernote on Linux OpenSuse 12 KDEHow to Install Evernote on Linux CentOS 6 KDEHow to Install Evernote on Linux Oracle 6 GNOMEHow to Install Evernote on Linux RHEL 6 GNOMEHow to Install Evernote on Linux OpenSuse 12 GNOMEHow to Install Evernote on Fedora Linux 16 GNOMEHow to Install Evernote on Linux CentOS 6 GNOME Website Development PHPWebsite in Drupal DevelopmentJoomla DevelopmentSito in Flash

QuickChic Theme • Powered by WordPress