Linux commands: df
New Courses Coming Soon
Join the waiting lists
A quick guide to the `df` command, used to get disk usage information
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
→ Get my Linux Command Line Handbook
Here is how can I help you:
- COURSES where I teach everything I know
- CODING BOOTCAMP cohort course - next edition in 2025
- BOOKS 16 coding ebooks you can download for free on JS Python C PHP and lots more
- Follow me on X