domingo, 31 de julio de 2016

CentOS – locate command mlocate find

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

No hay comentarios:

Publicar un comentario