View Full Version : read the output of df

ChrisR(sql dba)
22nd November 2004, 04:03 AM
Can someone tell me hot to read the below output correctly? hdb1 is my second harddrive. The below numbers just arent adding up compared to what I think Ive used/ have available, etc.

df /hdb1
Filesystem 1K-blocks Used Available Use% Mounted on
9256600 8761668 24712 100%

22nd November 2004, 04:17 AM
It says you've used 8.76 gig on this partition and have 24mb free. You're basically out of space :)

You can use "df -m" if you prefer to see the numbers in mb instead of kb.

22nd November 2004, 05:13 AM
Or even df -h to get even more readable output. Keep in mind that when you specify -h, -m, or -k, those numbers are multiples of 1024, not 1000. Most hard-drive manufacturers will give out the specs of their drive in 1000's - makes them look bigger than they really are without actually lying about it.