Back to the command reference

df

DisksBeginner In simulator In real Linux

Show disk space usage of file systems

Name: df = disk free

You can practise it right away in the simulator, and use it in real Linux mode too.

Description

df shows size, used and available space and mount point for each mounted file system. It looks at whole file systems; for a directory's usage use du. -i shows inodes: if you can't create files despite free space, inodes may have run out.

Syntax

df [OPTION]... [FILE]...

Common options

-h / --human-readableHuman-readable sizes
-T / --print-typeShow the file system type
-i / --inodesShow inode usage
-t / --type TYPEOnly file systems of this type, e.g. -t ext4
-x / --exclude-type TYPELeave out this type, e.g. -x tmpfs
-l / --localOnly local file systems (no network mounts)
--totalAdd a grand total

Examples

  • $ df -h

    How much space is left on each partition

    Explain

Related