Linux commands: df
A quick guide to the `df` command, used to get disk usage information
TypeScript Masterclass
Join the waiting list!
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
I wrote 20 books to help you become a better developer:
- JavaScript Handbook
- TypeScript Handbook
- CSS Handbook
- Node.js Handbook
- Astro Handbook
- HTML Handbook
- Next.js Pages Router Handbook
- Alpine.js Handbook
- HTMX Handbook
- React Handbook
- SQL Handbook
- Git Cheat Sheet
- Laravel Handbook
- Express Handbook
- Swift Handbook
- Go Handbook
- PHP Handbook
- Python Handbook
- Linux/Mac CLI Commands Handbook
- C Handbook