Skip to content

df command

Show free and used disk space on mounted file systems.

On this page

Syntax

df [options] [file…]

Provided by the coreutils package. Run man df for the full manual.

Common options

OptionWhat it does
-hHuman-readable sizes
-TShow the file system type
-iShow inode usage
-x TYPEHide a file system type
--totalAdd a total line

Examples

  1. Disk space on all file systems

    df -h
  2. With file system types

    df -hT
  3. Space on the disk holding a path

    df -h /var
  4. Inode usage

    df -i
  5. Hide temporary file systems

    df -h -x tmpfs -x devtmpfs

df guides

← All Linux commands · Suggest a fix

Back to top