df -hShows disk space for every mounted file system in human-readable units.
Reports free and used disk space on mounted file systems.
sudo apt install coreutilsdf -hShows disk space for every mounted file system in human-readable units.
df -h <path>Shows the file system that holds a path.
Example
df -h /vardf -hTAdds the file-system type column (ext4, xfs, tmpfs…).
df -iShows inode usage. A disk can be “full” with free space if inodes run out.
df -x tmpfs -x devtmpfs -hHides virtual file systems so only real disks remain.
df -t <type> -hShows only one file-system type.
Example
df -t ext4 -hdf --output=source,pcent,targetChooses which columns to print (GNU).
df -h | awk '$5+0 > 80'Lists file systems more than 80% full.
Estimates how much space files and directories use — find what is filling a disk.
Shows total, used and available memory and swap.
Prints the effective user name — the first question after landing a shell.
Switches to another user (root by default) in a new shell, optionally as a login shell or for a single command.
The shell built-in that lists, searches and re-runs previous commands, and manages the history file.