1 Locate Command
Locate "Search name" in the background database according to file search, fast search speed
/var/lib/mlocate the database location that you are searching for
UpdateDB Update database, mlocate database is the default one-day update, use UpdateDB to force updates
[Email protected]:~$ vi/etc/updatedb.conf
The above command opens the database configuration file and obtains the following information:
1 prune_bind_mounts= "yes" 2 # prunenames= ". Git. Bzr. Hg. SVN" 3 prunepaths= "/tmp/var/spool/media/home/. Ecryptfs/var/lib/schroot " 4 prunefs=" NFS NFS nfs4 rpc_pipefs AFS binfmt_misc proc Smbfs autofs iso9660 n cpfs cod A devpts FTPFS devfs MFS shfs sysfs cifs lustre tmpfs usbfs udf fuse . Glusterfs FUSE.SSHFS Curlftpfs ecryptfs FUSESMB Devtmpfs "~
A total of 4 lines prune_bind_mounts= "Yes" means that the search limit is turned on, followed by three lines that do not search the file system, the file type does not search, the file path is not searched.
Linux File Search Command