Ad space (banner)
🖥️Linux Lessons
Lesson 21 / 61

Checking Free Disk Space with df

df is for when "I want to check how much free disk space is left." df stands for disk free, and it shows usage and free space for every mounted disk.

You can run df alone, but adding the -h option shows the numbers in a human-readable unit like GB or MB, instead of raw bytes.

Running df lists total capacity, used space, free space, and usage percentage for each disk (partition).

A common early mistake is confusing df (whole-disk usage) with du (a specific folder's usage), covered next — the names are similar, so watch out.

In real work, this is checked routinely as part of monitoring, to prevent an application outage caused by a server running out of disk space.

Linux
Try it (type this into the pseudo terminal)
df

🧑‍💻 You can type this command into the Linux pseudo terminal to try it yourself (this page itself has no interactive terminal).

Ad space (banner)
Ad space (in-article)