find / -xdev -type f '(' -name core -o -name 'core.[0-9]*' ')' -atime +7 -exec rm -f { } ';'
删除一星期中都没有访问的core映像文件。
-xdev 来确保find命令不会执行到根文件系统之外的文件系统
find ./ -type d -empty
find / -xdev -type f '(' -name core -o -name 'core.[0-9]*' ')' -atime +7 -exec rm -f { } ';'
find ./ -type d -empty
本文标题:find命令 查找Linux文件
本文链接:https://www.haomeiwen.com/subject/yhaocqtx.html
网友评论