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. Tips
  3. Main content

CentOS – locate command

17/09/2014 125hotness 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: Nothing
Last updated:17/09/2014

kyaky

This person is a lazy dog and has left nothing

Like
< Last article
Next article >

Comments

razz evil exclaim smile redface biggrin eek confused idea lol mad twisted rolleyes wink cool arrow neutral cry mrgreen drooling persevering
Cancel

COPYRIGHT © 2021 vpsmate.net. ALL RIGHTS RESERVED.

Theme Kratos Made By Seaton Jiang