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. Home
  2. QuickFix
  3. This article

CentOS – locate command

21/03/2017 7183Browse 0Like 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

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

VPSMATE

stay absorbed stay excellent

Like
< Previous
Next >

Comments

Cancel reply

Highly Recommended!
Vultr
Links
Suggested Web Hosting
Suggested VPS
1.Unmetered G Port & Unlimited Backups 3.Fast Replies 4.Free credits 5.Torrent Friendly A Name You Can Trust
Digitalocean,$5/Mo-512m KVM+20GSSD

Budgetvm 1G Ram/3IP/80G/$48/yr

Photonvps/512mKVM/10GSSD/5.95$

Linode, Top Xen VPS Company

VPS.net, Top Cloud VPS Company

Domain Discounts
DMCA.com Protection Status

COPYRIGHT © 2020 VPSMATE. ALL RIGHTS RESERVED.

THEME KRATOS MADE BY VTROIS