pavement

Df

From FreeBSDwiki
(Difference between revisions)
Jump to: navigation, search
 
Line 14: Line 14:
  
 
  [light@splat ~]$ '''df /tmp'''
 
  [light@splat ~]$ '''df /tmp'''
  Filesystem   Size  Used Avail Capacity  Mounted on
+
  Filesystem  1K-blocks    Used  Avail Capacity  Mounted on
 
  /dev/ad0s1f    257998      146  237214    0%    /tmp
 
  /dev/ad0s1f    257998      146  237214    0%    /tmp
  
 
  [light@splat ~]$ '''df /dev/ad0s1f'''
 
  [light@splat ~]$ '''df /dev/ad0s1f'''
  Filesystem   Size  Used Avail Capacity  Mounted on
+
  Filesystem  1K-blocks    Used  Avail Capacity  Mounted on
 
  /dev/ad0s1f    257998      146  237214    0%    /tmp
 
  /dev/ad0s1f    257998      146  237214    0%    /tmp
  

Revision as of 05:56, 7 September 2004

df is acronymic for disc free

When this command is used with no parameters, it will display the amount of disc space free on each mounted device in a 512-byte per block count, as well as a percentage.

You may specify either a device path or plain directory path to retreive the associated mount-point information. Also, the parameter -h may be used to have the output displayed in 'human-readable' format.

[light@splat ~]$ /bin/df
Filesystem  1K-blocks     Used   Avail Capacity  Mounted on
/dev/ad0s1a    128990   104110   14562    88%    /
/dev/ad0s1f    257998      146  237214     0%    /tmp
/dev/ad0s1g  18809884 15014076 2291018    87%    /usr
/dev/ad0s1e    257998   236788     572   100%    /var
procfs              4        4       0   100%    /proc
[light@splat ~]$ df /tmp
Filesystem  1K-blocks     Used   Avail Capacity  Mounted on
/dev/ad0s1f    257998      146  237214     0%    /tmp
[light@splat ~]$ df /dev/ad0s1f
Filesystem  1K-blocks     Used   Avail Capacity  Mounted on
/dev/ad0s1f    257998      146  237214     0%    /tmp
[light@splat ~]$ df -h /
Filesystem    Size   Used  Avail Capacity  Mounted on
/dev/ad0s1a   132M   107M    15M    88%    /
Personal tools