Linux How-to Update Automatically the Updatedb Locate Database

May 28th, 2012 by Regaz

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 Look: Solution

  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 8-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 the 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

Tags: , , , , ,