Linux Command - df
The Linux df command shows the amount of space used and available on a filesystem.
Show file system usage for all ( most ) filesystems:
df -h
Show the usage whichever filesystem the specified file is on:
df -h /var/log/myserver.log
Show the usage for the filesystem of the current directory:
df -h .
Show usage only for ext4 filesystems:
df -h -t ext4
Common options:
| -h | human readable units |
| -i | inode info |
| -k | units in k |
| -m | units in m |
| -a | all types |
| -l | local file systems |
| -t | only this type … |
| -T | show types |
| -x | exclude type |