next up previous contents
Next: du Up: Unix Commands Previous: apropos   Contents

df


The df command is used to display the disk file usage. It shows a summary of the amount of space used and available on the system.


When run with no arguments it reports information about every ``filesystem''

Example:

Filesystem           1K-blocks      Used Available Use% Mounted on 
/dev/sda4            120576100  73252260  41198892  65% / 
tmpfs                  4092144       656   4091488   1% /dev/shm 
/dev/sda2               198337     69000    119097  37% /boot 


However, if you want to break down to only the relevant information, like how much space is available in my home directory or in /tmp, you can use those directories as an argument.

Example:

[jdpoisso@umms-amino ~]$ df ~ 
Filesystem           1K-blocks      Used Available Use% Mounted on 
10.2.1.18:/export/umms-amino/home/jdpoisso 
               	  11134798720 9499291008 1635507712  86% /home/jdpoisso 
[jdpoisso@umms-amino ~]$ df /tmp 
Filesystem           1K-blocks      Used Available Use% Mounted on 
/dev/cciss/c0d0p2     39674224   5665648  31960692  16% / 
[jdpoisso@umms-amino ~]$


If you find the numbers a bit confusing, try using the ``-h'' argument. K stands for kilobytes, M megabytes, G for gigabytes, and T for terabytes.

Example:

[jdpoisso@umms-amino ~]$ df -h ~ 
Filesystem            Size  Used Avail Use% Mounted on 
10.2.1.18:/export/umms-amino/home/jdpoisso 
	      	          11T  8.9T  1.6T  86% /home/jdpoisso 


2010-08-27