CentOS磁盘空间查看及空间满的处理
如果要查看磁盘还剩多少空间,当然是用df的命令了。 [root@localhost ~]# df -h 文件系统 容量 已用 可用 已用% 挂载点 /dev/sda2 14G 11G 2.6G 82% / /dev/sda1 99M 14M 81M 14% /boot tmpfs 442M 275M 168M 63% /dev/shm /dev/mapper/vg_test-lv_test 24M 1.3M 21M 6% /mnt/lvm [root@localhost ~]# 当然你可能并不关系磁盘还剩余多少空间,你是需要知道当前的文件夹下的磁盘使用情况: [root@localhost ~]# du –max-depth=1 -h 24K ./.gnome www.2cto.com 8.0K ./.eggcups 8.0K ./.config 136K ./.gnome2 16K ./.chewing 8.0K ./.gnome2_private 8.0K ./.Trash 224K ./.gstreamer-0.10 28K ./Desktop 48K ./.nautilus 4...


