locate,where,which三个命令的作用域

使用命令
vi /etc/updatedb.conf
 
可以看到下面的文件
 
1 PRUNE_BIND_MOUNTS = "yes"
2 PRUNEFS = "9p afs anon_inodefs auto autofs bdev binfmt_misc cgroup cifs coda configfs cpuset debugfs devpts ecryptfs exofs fuse fusectl gfs gfs2 gpfs hugetlbfs inotifyfs iso9660 jffs2 lustre mqueue ncpfs nfs nfs4 nfsd pipefs proc ramfs rootfs rpc_pipefs securityfs selinuxfs sfs sockfs sysfs tmpfs ubifs udf usbfs vmhgfs"
3 PRUNENAMES = ".git .hg .svn"
4 PRUNEPATHS = "/afs /media /net /sfs /tmp /udev /var/cache/ccache /var/spool/cups /var/spool/squid /var/tmp"
5 ~   
 
这个文件说明了命令 locate,where和which 搜索的要求和参数
  • 第一个等式说明了文件生效,开启搜索权限
  • 第二个等式说明了搜索时,不搜索的文件系统
  • 第三个等式说明了搜索时,不搜索的文件类型
  • 第四个等式说明了搜索时,不搜索的路径

猜你喜欢

转载自www.cnblogs.com/dushenda/p/10468368.html