- df命令
df命令例子:
[root@livedvd ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/live-rw 5.4G 4.8G 617M 89% /
tmpfs 499M 228K 498M 1% /dev/shm
/dev/sr0 1.8G 1.8G 0 100% /mnt/live
varcacheyum 499M 0 499M 0% /var/cache/yum
/tmp 499M 12K 499M 1% /tmp
vartmp 499M 0 499M 0% /var/tmp
[root@livedvd ~]# df -a
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/live-rw 5644224 4956028 630860 89% /
proc 0 0 0 - /proc
sysfs 0 0 0 - /sys
devpts 0 0 0 - /dev/pts
tmpfs 510172 228 509944 1% /dev/shm
none 0 0 0 - /proc/sys/fs/binfmt_misc
/dev/sr0 1829954 1829954 0 100% /mnt/live
varcacheyum 510172 0 510172 0% /var/cache/yum
/tmp 510172 12 510160 1% /tmp
vartmp 510172 0 510172 0% /var/tmp
-
du命令
du命令例子:
统计home文件夹的大小
[root@livedvd /]# du -s home/
1180 home/
统计home文件夹的大小 已MB单位进行统计
[root@livedvd /]# du -sm /home/
2 /home/