Chapter 7: Finding Files
Chapter 7: Finding Files
er the database is updated by the su -c updatedb command, the locate command can find
e lostfile file.
sadmin@localhost:~$ su -c updatedb
ssword:
sadmin@localhost:~$ locate lostfile
ome/joe/lostfile
fter the lostfile file has been deleted, the locate command will still report that the file "exists".
ysadmin@localhost:~$ rm lostfile
ysadmin@localhost:~$ locate lostfile
home/joe/lostfile
Directory Purpose
/usr/share/doc Documentation for software packages
/usr/share/info Information pages for software packages
/usr/share/locale Locale information
/usr/share/man Location for man pages
/usr/share/nls Native language support files