UNIX/LINUX Command – df


df—Summarize free disk space


df [–aikPv] [–t fstype] [–x fstype] [—all] [—inodes] [—type=fstype] [—exclude–type=fstype] [—kilobytes] [—portability] [—print–type] [—help] [—version] [filename…]


This manual page documents the GNU version of df. df displays the amount of disk space available on the filesystem containing each filename argument. If no filename is given, the space available on all currently mounted filesystems is shown.

Disk space is shown in 1K blocks by default, unless the environment variable POSIXLY_CORRECT is set, in which case 512-byte blocks are used.

If an argument is the absolute filename of a disk device node containing a mounted filesystem, df shows the space available on that filesystem rather than on the filesystem containing the device node (which is always the root filesystem). This version of df cannot show the space available on unmounted filesystems, because on most kinds of systems doing so requires very nonportable, intimate knowledge of filesystem structures.

Suggested Reading:

       df command in Linux [Uses and Example]


Options Description
–a, —all Include in the listing filesystems that have 0 blocks, which are omitted by default. Such filesystems are typically special-purpose pseudo-filesystems, such as automounter entries. On some systems, filesystems of type ignore or auto are also omitted by default and included in the listing by this option.
–i, —inodes List inode usage information instead of block usage. An inode (short for “index node”) is a special kind of disk block that contains information about a file, such as its owner, permissions, timestamps, and location on the disk.
–k, —kilobytes Print sizes in 1K blocks instead of 512-byte blocks. This overrides the environment variable POSIXLY_CORRECT.
–P, —portability Use the POSIX output format. This is like the default format except that the information about each filesystem is always printed on exactly one line; a mount device is never put on a line by itself. This means that if the mount device name is more than 20 characters long (as for some network mounts), the columns are misaligned.
–T, —print–type Print a type string for each filesystem. Any such printed filesystem type name may be used as an argument to either of the —type= or —exclude–type= options.
–t, —type=fstype Limit the listing to filesystems of type fstype. Multiple filesystem types can be shown by giving multiple –t options. By default, all filesystem types are listed.
–x, —exclude–type=fstype Limit the listing to filesystems not of type fstype. Multiple filesystem types can be eliminated by giving multiple –x options. By default, all filesystem types are listed.
–v Ignored; for compatibility with System V versions of df.
—help Print a usage message on standard output and exit successfully.
—version Print version information on standard output then exit successfully.

Related Posts

UNIX/LINUX Command – rsync

UNIX/LINUX Command – rsync

NAME rsync – a fast, versatile, remote (and local) file-copying tool rsync Command SYNOPSIS Local: rsync [OPTION…] SRC… [DEST] Access via remote shell:Pull: rsync [OPTION…] [[email protected]]HOST:SRC… [DEST]Push: rsync [OPTION…] SRC… [[email protected]]HOST:DEST Access via rsync...

UNIX/LINUX Command – strip

UNIX/LINUX Command – strip

NAME strip—Discard symbols from object files. SYNOPSIS strip [ -Fbfdname|–target=bfdname ] [ -Ibfdname|–input-target=bfdname ] [ -Obfdname|–output-target=bfdname ] [-Rsectionname|–remove-section=sectionname ] [ -s|–strip-all ] [-S|-g|–strip-debug ][-x|–discard-all...

UNIX/LINUX Command – expand

UNIX/LINUX Command – expand

NAME expand—Convert tabs to spaces SYNOPSIS expand [–tab1[,tab2[,…]]] [–t tab1[,tab2[,…]]] [–i] [—tabs=tab1[,tab2[,…]]] [–initial] [–help] [–version] [file…] DESCRIPTION This manual page documents the GNU version of expand. expand writes the contents of each given...

UNIX/LINUX Command – uuencode

UNIX/LINUX Command – uuencode

NAME uuencode—Encode a binary fileuudecode—Decode a file created by uuencode SYNOPSIS uuencode [-m] [ file ] nameuudecode [-o outfile] [ file ]… DESCRIPTION uuencode and uudecode are used to transmit binary files over transmission mediums that do not support other...

Follow Us

Our Communities

The Ultimate Managed Hosting Platform
Load WordPress Sites in as fast as 37ms!


1 Comment

  1. Kiara Fenty

    Hi, I just looked at your blog and really impressed by it’s design and content. You are doing an excellent job by providing such data to the audience. Thank you so much.


Submit a Comment

Your email address will not be published.

3 × 2 =