df
DisksBeginner In simulator In real LinuxShow disk space usage of file systems
Name: df = disk free
You can practise it right away in the simulator, and use it in real Linux mode too.
Description
df shows size, used and available space and mount point for each mounted file system. It looks at whole file systems; for a directory's usage use du. -i shows inodes: if you can't create files despite free space, inodes may have run out.
Syntax
df [OPTION]... [FILE]...Common options
| -h / --human-readable | Human-readable sizes |
| -T / --print-type | Show the file system type |
| -i / --inodes | Show inode usage |
| -t / --type TYPE | Only file systems of this type, e.g. -t ext4 |
| -x / --exclude-type TYPE | Leave out this type, e.g. -x tmpfs |
| -l / --local | Only local file systems (no network mounts) |
| --total | Add a grand total |
Examples
$ df -h
How much space is left on each partition
Explain