[kwlug-disc] 10 Linux features Windows should have by default | Between the Lines | ZDNet.com
Charles M
chaslinux at gmail.com
Fri Dec 4 15:26:04 EST 2009
df -hH
Disk space in a human readable "marketing" (1000 instead of 1024)
format (yes the extra big H is important). Here's the difference on
the box I'm on:
charm at drupalserver:~$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 71G 6.4G 61G 10% /
udev 496M 248K 496M 1% /dev
none 496M 296K 496M 1% /dev/shm
none 496M 336K 496M 1% /var/run
none 496M 0 496M 0% /var/lock
none 496M 0 496M 0% /lib/init/rw
charm at drupalserver:~$ df -hH
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 76G 6.8G 66G 10% /
udev 521M 254k 520M 1% /dev
none 521M 304k 520M 1% /dev/shm
none 521M 345k 520M 1% /var/run
none 521M 0 521M 0% /var/lock
none 521M 0 521M 0% /lib/init/rw
charm at drupalserver:~$
We use this in CR when specing Linux boxes. We also use (for memory)
cat /proc/meminfo | grep MemTotal
More information about the kwlug-disc
mailing list