1. 查看空间占用大于1000M的文件
[[email protected] 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. 查看磁盘空间
[[email protected] 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%问题)
原文地址:https://www.cnblogs.com/walkinginthesun/p/9574392.html
时间: 2024-10-28 06:46:00