Friday, June 7, 2013

Find files on CentOS using locate

OS: CentOS 6.3

If you want to search a file on CentOS you could use locate and updatedb command.
First install mlocate
# yum install mlocate
Now you can find files on your system.
# locate <file_name_you_want_to_find>
To update database for mlocate use
# updatedb

1 comment: