(二)linux磁盘空间爆满问题

时间:2021-12-14 08:50:16

1. 查看空间占用大于1000M的文件

[root@Thor soft]# find / -type f -size +1000M -exec du -h {} \;
0       /proc/kcore
find: ‘/proc/30739’: No such file or directory
find: ‘/proc/35518/task/35518/fdinfo/5’: No such file or directory
find: ‘/proc/35518/fdinfo/6’: No such file or directory
2.4G    /home/soft_all.zip

2. 查看磁盘空间

[root@Thor soft]# df -h
Filesystem           Size  Used Avail Use% Mounted on
/dev/mapper/cl-root  100G   71G   30G  71% /
devtmpfs              63G     0   63G   0% /dev
tmpfs                 63G     0   63G   0% /dev/shm
tmpfs                 63G   35M   63G   1% /run
tmpfs                 63G     0   63G   0% /sys/fs/cgroup
/dev/sda1            494M  205M  290M  42% /boot
tmpfs                 13G     0   13G   0% /run/user/0

3. Linux 根目录爆满 即 (/dev/mapper/centos-root 100%问题)

参考Linux 根目录爆满 解决