[mesos@c3-e05-136-130-31-c2-128 /]$ df -h
文件系统 容量 已用 可用 已用% 挂载点
/dev/sda3 554G 546G 8.5G 99% /
devtmpfs 63G 0 63G 0% /dev
tmpfs 63G 0 63G 0% /dev/shm
tmpfs 63G 11M 63G 1% /run
tmpfs 63G 0 63G 0% /sys/fs/cgroup
/dev/sda1 792M 152M 640M 20% /boot
tmpfs 13G 0 13G 0% /run/user/30002
tmpfs 13G 0 13G 0% /run/user/0
$ sudo du -h --max-depth=1 /
120M /boot
0 /dev
0 /proc
11M /run
0 /sys
43M /etc
376K /root
513G /var
435M /tmp
3.0G /usr
4.5G /home
0 /media
0 /mnt
50M /opt
0 /srv
0 /redis
425M /data
21G /shark
542G /
[mesos@c3-e05-136-130-33-c2-128 /]$ sudo du -h --max-depth=1 /var/
102G /var/lib
6.4G /var/log
0 /var/adm
124M /var/cache
8.0K /var/db
0 /var/empty
0 /var/games
0 /var/gopher
0 /var/local
0 /var/nis
0 /var/opt
0 /var/preserve
20K /var/spool
0 /var/yp
0 /var/kerberos
0 /var/crash
0 /var/account
108G /var/
[mesos@c3-e05-136-130-33-c2-128 docker]$ sudo du -h --max-depth=1 /var/lib/docker/
0 /var/lib/docker/tmp
7.0M /var/lib/docker/containers
99G /var/lib/docker/overlay2
281M /var/lib/docker/image
96K /var/lib/docker/volumes
0 /var/lib/docker/trust
104K /var/lib/docker/network
0 /var/lib/docker/swarm
99G /var/lib/docker/
按时间删除日志
find ./ -mtime +30|sudo xargs rm -f
find /home/file/ -ctime +10 -name "*.txt" -print | xargs rm -f
find /home/file/ -ctime +10 -name "*.txt" -delete
网友评论