VPSMATE

  • HOME
  • NEWS
  • VPS
  • DEDICATED
  • ARCHIVES
  • GoDaddy
  • SCRIPT
  • TOOLS
    • Traceroute
    • Benchmark
    • Useful Sites
  • Themes
  • GFW
VPSMATE
VPS COUPON & PROMOS | VPS & DEDICATED SERVERS OFFERS | VPS REVIEWS
  1. Main page
  2. QuickFix
  3. Main content

CentOS – locate command

21/03/2017 12305hotness 0likes 0comments

To find files on a linux system you can use following command:

# find / -name xxxx

But I prefer to use the locate command. This command is extremely easy to use and it’s faster than the find-command.

# locate filename

To install the locate package, use yum.

# yum install mlocate

To update it’s ‘internal database’, run following command.

# updatedb

To find a file, use following command

#  locate httpd.conf
/etc/httpd/conf/httpd.conf

 

Related

Tag: command find locate mlocate updatedb
Last updated:21/03/2017

kyaky

This person is a lazy dog and has left nothing

Like
< Last article
Next article >

Comments

Cancel

This site uses Akismet to reduce spam. Learn how your comment data is processed.

COPYRIGHT © 2021 vpsmate.net. ALL RIGHTS RESERVED.

Theme Kratos Made By Seaton Jiang