美文网首页
find命令 查找Linux文件

find命令 查找Linux文件

作者: WANGJ01 | 来源:发表于2018-12-06 17:40 被阅读0次

find / -xdev -type f '(' -name core -o -name 'core.[0-9]*' ')' -atime +7 -exec rm -f { } ';'

删除一星期中都没有访问的core映像文件。

-xdev 来确保find命令不会执行到根文件系统之外的文件系统

find ./ -type d -empty

查找空文件夹

相关文章

网友评论

      本文标题:find命令 查找Linux文件

      本文链接:https://www.haomeiwen.com/subject/yhaocqtx.html