df

The command that reports total, used and free space for each mounted filesystem.

In more detail

-h prints sizes in readable units such as G for gigabytes. df / shows only the filesystem holding the root directory.

Examples

df -h /
df -h shows sizes in readable units and df -i shows inode usage, the two separate ways a filesystem can fill. It works from filesystem totals, so it includes space held by deleted but still-open files. Use it first to find which mount and which resource is exhausted.
mount=/ usage=82% inodes=41% state=healthy records both resources for one mount.

Related terms

Taught in

References

Certification courses