wholesale jerseys nba jersey discounts ncaa college jerseys nfl cheap jerseys with free shipping nfl authentic football jerseys new york giants apparel cheap

CentOS – locate command

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

 


make a comment

(opt)