df Command Generator
Generate df commands to report filesystem disk space usage
Getting Started with df
## What is df?
The `df` command reports filesystem disk space usage — total, used, and available space for every mounted filesystem. It's the fastest way to check if a disk is full or how much room is left on a volume.
## How to Use
1. **Choose Format Flags**: Enable `-h` (human-readable) for KB/MB/GB units — it's on by default. 2. **Add Insights (optional)**: Show filesystem type (`-T`), inode usage (`-i`), or a grand total (`--total`). 3. **Target (optional)**: Limit to a specific device or mount point. 4. **Copy & Run**: Copy the generated command into your terminal.
Common Options
### `-h` Human-readable Print sizes in powers of 1024 with K/M/G/T suffixes (e.g. `234M`, `2G`). The single most useful flag — enabled by default here.
### `-T` Filesystem type Add a `Type` column showing each filesystem's type (ext4, xfs, tmpfs, nfs, etc.). Helpful when a mount behaves oddly and you need to know its driver.
### `-i` Inode usage Report inode (file-metadata slot) usage instead of block usage. A disk can be "full" on inodes even with free bytes — common on servers with millions of tiny files.
### `-a` All filesystems Include dummy and zero-size filesystems (like `sysfs`, `proc`) that are normally hidden. Useful for a complete system inventory.
### `-B` Block size Force sizes to a fixed unit, e.g. `-B 1M` shows everything in megabytes — easier for scripting and arithmetic than mixed units.
### `--total` Grand total Append a `Total` row summing all listed filesystems. Convenient for a quick "how much disk do I have overall" answer.
▶Why does df show different used space than du?
▶How do I check a single mount point?
▶What does 'Use%' near 100% but 'Avail' still showing space mean?
If this tool has been helpful to you, consider buying me a coffee.
Buy me a coffee