linux查看目录大小
2020-08-21 10:10:30    15    0    0
alen
 du -h --max-depth=1

 

 

删除指定时间之前的文件

#!/bin/sh
location="/root/sqlbak/"
find $location -mtime +30 -type f |xargs rm -f
*/60 * * * * . /root/removeLog.sh 1>/dev/null 2>/dev/null 
 
#!/bin/sh
location="/data/wwwlogs/"
find $location -mtime +3 -type f |xargs rm -f

 

Pre: docker-compose 快速安装jumpserver

Next: docker 安装rabbitmq

15
Sign in to leave a comment.
No Leanote account? Sign up now.
0 comments
Table of content