Find the answer to your Linux question:
Results 1 to 2 of 2
Hi to All, I have installed Red Hat enterprise Linux 5.4. 1) I am logged as root 2) If I try to execute from terminal the command locate, for example ...
  1. #1
    Just Joined!
    Join Date
    Nov 2008
    Location
    Brescia
    Posts
    4

    Problem on lacate command

    Hi to All,

    I have installed Red Hat enterprise Linux 5.4.

    1) I am logged as root
    2) If I try to execute from terminal the command locate, for example
    locate vi or locate cu
    this message is displayed:
    locate: can not open `/var/lib/mlocate/mlocate.db': No such file or directory
    Can You help me?

    Thank You and Best regards

    Gaetano

  2. #2
    Linux Engineer Thrillhouse's Avatar
    Join Date
    Jun 2006
    Location
    Arlington, VA, USA
    Posts
    1,377
    Have you built the locate database? Try running
    Code:
    #updatedb
    and then run your locate command again.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...