UnixDroid

System · Linux command

df command in Linux

What does df do?

df shows how much disk space is used and free on each mounted file system.

df [-h]

Most useful options

OptionWhat it does
-hhuman-readable sizes
-iinode usage

df examples

$ df -h Try it ›

disk usage in GB/MB

In security work

A full disk stops logging — attackers sometimes fill disks so their actions are not recorded.

Questions about df

How do I check disk space in Linux?

df -h for disks, du -sh folder for one folder.