From edcc33864caf47618596344340279177db449eca Mon Sep 17 00:00:00 2001 From: "guobao.jiang" Date: Mon, 13 Mar 2017 18:06:17 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9F=A5=E6=89=BE=E5=B9=B6=E5=88=A0=E9=99=A4?= =?UTF-8?q?=E6=97=B6=E9=97=B4=E8=B6=85=E8=BF=877=E5=A4=A9=E7=9A=84?= =?UTF-8?q?=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shell/freqCommand.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/shell/freqCommand.sh b/shell/freqCommand.sh index 5282eb3..64c5bde 100644 --- a/shell/freqCommand.sh +++ b/shell/freqCommand.sh @@ -47,6 +47,8 @@ du -h --max-depth=1 . |sort -h # 从小到大排序 # 找到当前文件夹下大于10M的文件 find . -type f -size +10M find . -maxdepth 1 -type f -size +10M # 递归 +# 找出当前builds目录下,时间超过7天的文件并删除之(不加 -delete选项表示查看) +sudo find ./builds -mtime +7 -type f -delete # 解压.gz文件 gunzip -c abc.gz >abc16