Results 1 to 3 of 3

Thread: Install locate command on Linux server.

  1. #1
    Join Date
    Sep 2008
    Location
    Nashik
    Posts
    51

    Default Install locate command on Linux server.

    Basically locate command not installed in Linux server by default and while we are running locate command we receive following error message.

    root@server [~]# locate test
    -bash: locate: command not found
    To resolve above error message install locate command on your server by using the following command.

    Log in to shell as root user and run following command.

    root@server [~]#yum -y install mlocate
    Once locate command installation complete on your server, you can run locate command but it will throw you the following error message because mlocate.db (locate command database) is missing.

    root@server [~]# locate test
    locate: can not open `/var/lib/mlocate/mlocate.db': No such file or directory

    To build mlocate.db run following command.

    root@server [~]# updatedb
    As soon as updatedb command complete, you will be able to run locate command without any problem.
    Regards,
    Gunjan Sonar

  2. #2
    Join Date
    Sep 2011
    Posts
    12

    Default

    Yeah, the above mentioned information are all helpful,
    It's a beautiful post and thank you for this effort.

  3. #3
    Join Date
    Sep 2011
    Posts
    1

    Default Social Media

    hi friends
    this is news to every one ..... In this time of massive and disruptive technological change Red Hat Enterprise Linux provides businesses with the stability and flexibility they need to not only survive but to thrive as they transition to the next generation of IT computing . and company generate the new addition the Linux server ........

Bookmarks

Posting Permissions

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