System Information: df - Disk Free Space

The df command is used to get disk usage information.

Its basic form will print information about the volumes mounted:

Using the -h option (df -h) will show those values in a human-readable format:

You can also specify a file or directory name to get information about the specific volume it lives on:

The df command works on Linux, macOS, WSL, and anywhere you have a UNIX environment

Lessons in this unit:

0: Introduction
1: uname - System Information
2: whoami - Current User
3: who - Logged In Users
4: ▶︎ df - Disk Free Space
5: du - Disk Usage
6: ps - Process Status
7: top - Task Manager
8: env - Environment Variables
9: printenv - Print Environment

Join my AI Workshop!

The Web Development BOOTCAMP cohort starts in February 2026