command: updatedb
usage: update a database for mlocate
syntax: # updatedb [OPTION]...
examples:
1. To display options and info of updatedb
# updatedb --help
2. To use updatedb to refresh mlocate database
# locate lftp.conf
/etc/lftp.conf
/usr/share/man/man5/lftp.conf.5.gz
/var/lib/dpkg/info/lftp.conffiles
create a backup of /etc/lftp.conf as /etc/lftp.conf.bak
now run
# locate lftp.conf
/etc/lftp.conf
/usr/share/man/man5/lftp.conf.5.gz
/var/lib/dpkg/info/lftp.conffiles
it will not show the /etc/lftp.conf.bak file
now run
# updatedb
note run updatedb as root
then,
# locate lftp.conf
/etc/lftp.conf
/etc/lftp.conf.bak
/usr/share/man/man5/lftp.conf.5.gz
/var/lib/dpkg/info/lftp.conffiles
now the .bak file will be located
regards,
dhanasekar
_______________________________________________
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
ILUGC Mailing List Guidelines:
http://ilugc.in/mailinglist-guidelines