df is a Linux command for for reporting file system disk usage on a Linux system. While brewing coffee at home I found the following.
How to view disk usage using df command? Simple!
Simplest way is just to type df on the command line and you should get the below output:
Filesystem 1K-blocks Used Available Use% Mounted on overlay 61252420 9817828 48293424 17% / tmpfs 65536 0 65536 0% /dev tmpfs 1023564 0 1023564 0% /sys/fs/cgroup shm 65536 0 65536 0% /dev/shm /dev/sda1 61252420 9817828 48293424 17% /etc/hosts tmpfs 1023564 0 1023564 0% /proc/acpi tmpfs 1023564 0 1023564 0% /sys/firmware
- Filesystem – the filesystem on the machine
- 1K-blocks – the size of the filesystem in 1K blocks
- Used – the amount of space used in 1K blocks
- Available – the amount of available space in 1K blocks
- Use% – the percentage that the filesystem is in use.
- Mounted on – where the filesystem is mounted.
Using the Linux df command ff you like to view the output in human readable use df -H
To show the filesystem type use df -T
To show only specific file system types use df -t ext4 as an example.