Usage and Implementation of df command in Linux
`-a` option in `df` command in Linux
If you want to display all the file system, use -a option.
df -a
`-h` or `-H` option in `df` command in Linux
Use -h option to display size in power of 1024
df -h jayesh.txt
Use -H option to display sizes in power of 1000
df -H jayesh.txt
`–total` option in `df` command in Linux
To get complete grand total, use –total option
df --total
`-T` option in `df` command in Linux.
Use -T option to display file type
For example:
df -T jayesh.txt
You can see the file type for `jayesh.txt` is ext4
`–help` option in `df` command in Linux
And for more help, you can use –help option.
df --help
`-x` option in `df` command in Linux
Exclude specific file system types from the output
For Example: tmpfs
df -x tmpfs
df command in Linux with Examples
Ever felt the chilling fear of a “disk full” error message on your Linux machine? Fear not, for the mighty df
command stands ready to guide you through the treacherous terrain of disk space management! This article delves deep into the df
command, equipping you with the knowledge and skills to navigate your storage with confidence.