Log in Go to the main page Page Discussion History Go to the file list Go to the site toolbox

Df command

From NetworkCommands


Image:Tux_64x64.png

A command line program available on most Linux and Unix platforms; used to display usage information for file systems on the device.

Contents

Image:Vm-power-on-medium.png Usage Syntax

df [options]

The most common options are:

  • -h - display size data in a human readable format, Kb, Mb etc.
  • -l - display information about local file systems only
  • -T - display file system type

Image:Vm-power-on-medium.png Usage Examples

df -h - Display information for all file systems, in human readable format

df -h -l -T - Display information for local file systems only, in human readable format and including file system types.

Image:accessories-text-editor-v2-medium.png Linux Usage Notes

With most Linux or Unix commands;

  • Brief help can be displayed using the option/keyword: -h or --help, for example: chmod --help
  • A full command manual can be displayed using the man command followed by the command name, for example: man chmod
  • Sometimes 'info' pages are used instead of or to provide more information than man pages; for example: info chmod
  • Version information can be display using the option/keyword: -v or --version, for example: chmod --version


Image:utilities-terminal-medium.png Typical Output

BigIP 1500 running v9.3.0; df -h

Filesystem            Size  Used Avail Use% Mounted on
/dev/hda5             2.9G  447M  2.4G  16% /
/dev/hda7             2.9G   34M  2.8G   2% /config
/dev/hda8              18G   76M   17G   1% /var
/dev/hda9             2.9G  275M  2.5G  10% /usr
/dev/hda1              15G  7.1G  6.9G  51% /shared
none                  186M   40K  186M   1% /dev/shm
none                  186M   36M  151M  19% /var/tmpfs
/dev/hda2             760M   34M  726M   5% /mnt/tmp/install/boot/hda
/dev/hda5             2.9G  447M  2.4G  16% /mnt/tmp/install/slot/hda.1
/dev/hda7             2.9G   34M  2.8G   2% /mnt/tmp/install/slot/hda.1/config
/dev/hda8              18G   76M   17G   1% /mnt/tmp/install/slot/hda.1/var
/dev/hda9             2.9G  275M  2.5G  10% /mnt/tmp/install/slot/hda.1/usr
/dev/hda1              15G  7.1G  6.9G  51% /mnt/tmp/install/slot/hda.1/shared

BigIP 1500 running v9.4.3; df -h

Filesystem            Size  Used Avail Use% Mounted on
/dev/hda5             2.9G  113M  2.7G   5% /
/dev/hda7             2.9G   34M  2.8G   2% /config
/dev/hda8              18G   44M   17G   1% /var
/dev/hda9             2.9G  297M  2.5G  11% /usr
/dev/hda1              15G  7.2G  6.8G  52% /shared
none                  186M   60K  186M   1% /dev/shm
/dev/loop0            6.6G   35M  6.3G   1% /var/log
none                  186M  1.5M  185M   1% /var/tmpfs

Image:Folder-medium.png Related Files

The df executable is normally found here: /bin/df

Image:icemon-medium.png Related Articles

Information on other Linux commands Image:Tux-small.png

Information on Cisco commands Image:Cisco-logo-small.png

Information on Vyatta commands Image:Vyatta-logo-small.png

Information on Extreme commands Image:Extreme-logo-small.png

Information on F5 BigIP commands Image:F5-logo-small.png

Information on Zebra commands

Information on Secure Platform commands

Information on Blue Coat SGOS commands

Information on Nokia IPSO commands


Image:internet-group-chat-small.png We really do appreciate all feedback so please do send your comments, suggestions or corrections to steve#networkstuff.eu (replacing the # with an @)



Site Toolbox:

Personal tools
This page was last modified on 27 October 2008, at 21:00. - This page has been accessed 18 times. - Disclaimers - About NetworkCommands
Powered by MediaWiki