linux常用命令-搜索
2016-04-18 12:35
399 查看
1.find
$ find . -name 'nginx*'
$ find . -name 'nginx*' -ls
$ find . -type f -mmin -10
搜索当前目录中,所有过去10分钟中更新过的普通文件。如果不加-type f参数,则搜索普通文件+特殊文件+目录。
2. locate
locate 是"find -name"的另一种写法,搜索数据库(/var/lib/locatedb)。Linux系统自动创建这个数据库,并且每天自动更新一次 .
可以在使用locate之前,先使用updatedb命令,手动更新数据库。
3. whereis 、which、type 用于程序命令的定位
$ find . -name 'nginx*'
$ find . -name 'nginx*' -ls
$ find . -type f -mmin -10
搜索当前目录中,所有过去10分钟中更新过的普通文件。如果不加-type f参数,则搜索普通文件+特殊文件+目录。
2. locate
locate 是"find -name"的另一种写法,搜索数据库(/var/lib/locatedb)。Linux系统自动创建这个数据库,并且每天自动更新一次 .
可以在使用locate之前,先使用updatedb命令,手动更新数据库。
3. whereis 、which、type 用于程序命令的定位
相关文章推荐
- linux 防火墙iptables简明教程
- linux 常用设置
- linux ssh上传和下载
- CentOS6下ssh无法连接
- Centos 7 mysql 5.5 启用innodb引擎
- Linux chkconfig 命令
- 详解Linux系统中的usr目录
- 【Linux】su - user有问题 su user 可用问题
- 4.阻塞和非阻塞
- linux环境下迁移mysql的data文件夹路径
- Ubuntu Linux内核编译步骤
- CentOS下MySQL忘记root密码解决方法【转载】
- 盘点linux系统中的12条性能调优命令。
- openresty--centos7下开发环境安装
- Linux 查看端口
- Linux 常用基本命令
- ORA-01031: insufficient privileges 解决方法(linux)
- Linux ls 命令
- Linux系统中ln命令创建软链接与硬链接的方法
- centos 常见软件安装