0
点赞
收藏
分享

微信扫一扫

find命令常用

尤克乔乔 2022-04-04 阅读 46
centos

find 从哪开始找,找什么,找的关键字是什么
find /etc -name "*.conf"
find /etc/ -type f
find /etc/ -mtime +3 
find /etc/ -user root
find /etc/ -size +1M
find ~ -size +10M
find . -size +10M

grep 找文件中的关键字

-i 不区分大小写
-v 取反
-n  显示满足条件的行号
-l 显示满足条件的文件名
-A 找到文件行的前几行
-B 找到文件行的后几行
-r 找子目录

举报

相关推荐

0 条评论