文件查找命令 whereis locate find
来源:互联网 发布:勇士vs马刺数据统计 编辑:程序博客网 时间:2024/06/05 11:46
我们常用到的3个查找命令分别是whereis,find,locate。这其中,find命令是最老实巴焦的一个,直接在指定的目录下进行搜索,如果实在不知道在哪,我们就用 find / -name xxx
而whereis locate这两个命令在搜索之前,都要读取 /etc/updatedb.conf(文件检索数据库配置信息)这个文件 ,一般,我们为了加速检索,我们经常 updatedb 一下,这时候,它俩就过滤掉一些没用的东西,进行检索。
updatedb.conf下的几个变量分别是:
PRUNE_BIND_MOUNTS="yes" //是否限制搜索
# PRUNENAMES=".git .bzr .hg .svn" //跳过的文件类型,不同后缀之间用空格隔开。这个功能默认是关闭的(用#注释掉了),如果需要打开需将#去掉
PRUNEPATHS="/tmp /var/spool /media /home/.ecryptfs" //要跳过的路径,/media 表示其他硬盘
PRUNEFS="NFS nfs nfs4 rpc_pipefs afs binfmt_misc proc smbfs autofs iso9660 ncpfs coda devpts ftpfs devfs mfs shfs sysfs cifs lustre_lite tmpfs usbfs udf" //要搜索的文件系统
0 0
- 文件查找命令find,locate,whereis,which
- 文件查找命令 whereis locate find
- 文件查找命令-which,whereis,locate,find
- linux中Find、whereis、locate、which查找文件命令总结
- linux中Find、whereis、locate、which查找文件命令总结
- 查找文件命令---find, locate, whereis, which, type
- linux中Find、whereis、locate、which查找文件命令详解
- Linux下which、whereis、locate、find 命令查找文件
- Linux下which、whereis、locate、find 命令查找文件
- Linux下which、whereis、locate、find 命令查找文件
- Linux下which、whereis、locate、find 命令查找文件
- Linux文件查找命令详解-which whereis find locate
- linux 下查找文件或者内容命令whereis,locate ,find
- 查找命令find locate which whereis
- linuxs 常用查找命令 locate find whereis
- 查找命令 find、locate、whereis、which、type
- linux查找命令which、whereis、locate、find
- 文件搜索命令 locate、find、whereis、which
- 线程同步synchronized和volatile
- 【Socket】MFC之编写聊天通信代码
- 电阻噪声的基础知识和一个有趣的小测试
- Andorid studio的目录结构设置
- 简要介绍windows平台下的一些汇编操作
- 文件查找命令 whereis locate find
- shutdown immediate 卡在SMON: disabling tx recovery
- J2SE大完结
- 如何写memset函数
- 树的重心 树形DP SGU 134
- 机房收费系统之优化篇
- python若干小函数的使用
- SDUTOJ3252---Lowest Unique Price
- 20150902 Java学习笔记-构造方法,关键字,封装性