CentOS下使用df命令查看磁盘空间
查看Linux磁盘空间的工具有很多,那么怎么使用命令来查看磁盘空间呢?那就要用到df命令了,下面小编给大家介绍下使用df命令查看Linux磁盘空间的方法。 [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...




