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

Df command

From RZWiki


Image:Linux-logo-large.png

A CLI 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;

  • Non root users may need to prefix commands with the sudo command, for example: sudo chmod 644 *
  • Brief help can be displayed using the -h or --help parameter, 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 normally be display using the -v, -V or --version parameter, for example: chmod --version. However, this paramater is also frequently used to display verbose output.

noinclude/noinclude

Image:utilities-terminal-medium-v2.png Typical Output

noinclude/noinclude

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 Commands

The du command is used to display usage information for files and folders on a file system.

Image:icemon-medium.png Related Articles

Information on other Linux commands Image:linux-logo-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 sjiveson#routerzone.eu
(replacing the # with an @)


Site Toolbox:

Personal tools
This page was last modified on 12 August 2009, at 17:59. - This page has been accessed 162 times. - Disclaimers - About RZWiki
Powered by MediaWiki