linux find command
来源:互联网 发布:linux yum ant 编辑:程序博客网 时间:2024/05/16 14:24
find / -name httpd.conf find / -name access_log 2>/dev/null find /etc -name '*srm*' find / -amin -10 # 查找在系统中最后10分钟访问的文件 find / -atime -2 # 查找在系统中最后48小时访问的文件 find / -mmin -5 # 查找在系统中最后5分钟里修改过的文件 find / -mtime -1 #查找在系统中最后24小时里修改过的文件 find / -cmin -5 # 查找在系统中最后5分钟里被改变状态的文件 find / -ctime -1 #查找在系统中最后24小时里被改变状态的文件 find / -user reda #查找在系统中属于fred这个用户的文件 find / -not -user reda #查找在系统中不属于FRED这个用户的文件 find / -group redagrp # 查找在系统中属于redagrp组的文件 find / -gid 501 #查找系统中属于组id为501的文件 find / -user fred -a -group redagrp find / -user reda -o -user tracy find / -nouser #查找在系统中属于作废用户的文件 find / -empty # 查找在系统中为空的文件或者为空的文件夹 find / -false #查找系统中总是错误的文件 find / -size +5k #查找系统中大于5k字节的文件
</pre><pre code_snippet_id="609267" snippet_file_name="blog_20150228_3_5965946" name="code" class="html"><pre name="code" class="html"> find / -size +5M #查找系统中大于5M字节的文件
find / -size +5c #查找系统中大于5字节的文件 find / -perm +6000 find / -type b 文件类型: b 块(缓冲)设备. c 字符设备. d 目录. p 有名管道(FIFO). f 规则文件. l 符号链结. s 插座. find / -maxdepth 2 -name fred find /tmp -size +10000000c -and -mtime +2 find / -user reda -or -user tracy find /tmp ! -user reda find / -name "httpd.conf" -ls find / -user reda -exec ls -l {} \; find / -user reda -ok #确认后执行 find / -user reda | xargs ls -l
find不查找某个目录:-path '***dirname***' -prune -o
eg.在除/data目录外查找httpd的文件
find / -path "/data" -prune -o -name "http"
0 0
- linux find command usage
- Linux find command
- linux find command
- Unix/Linux Find Command
- linux find command 详解
- linux command not find
- linux find command
- linux find command
- Linux: Find Command
- Linux: find command
- linux command - find
- Linux.Command.find-更新中
- Linux / Unix Command: find命令
- Linux - one command per day--find
- 15 Practical Linux Find Command Examples
- 35 Practical Examples of Linux Find Command
- linux下提示:command not find解决方法
- 35 Practical Examples of Linux Find Command
- strive for your dreams
- 测试
- (命名)管道,信号量,消息队列,共享内存,信号,socket
- cmd获取盘符路径
- magento-怎么判断用户是否登录?
- linux find command
- ajax级联
- HDOJ 题目1035 Robot Motion(模拟)
- iOS 之 协议(protocol)的学习
- Linux kernel compile--linux-3.18.8编译过程
- F.NET框架示例(六)、数据库操作 之 删除
- 易宝Java版在线支付
- 随便多少人你都能管
- 实现百万数据量毫秒级查询的存储结构