Options Available in `df` command in Linux

Options Description
‘-a’ or ‘–all’ Includes pseudo, duplicate, and inaccessible file systems in the output.
‘-B <SIZE>’ or ‘–block-size=<SIZE>’ Scales sizes by SIZE before printing them.
‘-h’ or ‘–human-readable’ Prints sizes in a human-readable format using power of 1024.
‘-H’ or ‘–si’ Prints sizes in a human-readable format using power of 1000.
‘-i’ or ‘–inodes’ Lists inode information instead of block usage.
‘-l’ or ‘–local’ Limits listing to local file systems.
‘-P’ or ‘–portability’ Uses POSIX output format for better portability.
‘–sync’ Invokes sync before getting usage info.
‘–total’ Elides all entries insignificant to available space and produces a grand total.
‘-t <TYPE>’ or ‘–type=<TYPE>’ Limits listing to file systems of type TYPE.
‘-T’ or ‘–print-type’ Prints file system type

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.

Similar Reads

What is df Command in Linux?

disk free also known as `df`, which is a powerful utility that provides valuable information on disk space utilization. The df command displays information about file system disk space usage on the mounted file system. This command retrieves the information from `/proc/mounts` or `/etc/mtab`. By default, df command shows disk space in Kilobytes (KB) and uses the SI unit suffixes (e.g, M for megabytes, G for gigabytes) for clarity....

Syntax of `df` command in Linux

The basic syntax of df is:...

Options Available in `df` command in Linux

Options Description ‘-a’ or ‘–all’ Includes pseudo, duplicate, and inaccessible file systems in the output. ‘-B ’ or ‘–block-size=’ Scales sizes by SIZE before printing them. ‘-h’ or ‘–human-readable’ Prints sizes in a human-readable format using power of 1024. ‘-H’ or ‘–si’ Prints sizes in a human-readable format using power of 1000. ‘-i’ or ‘–inodes’ Lists inode information instead of block usage. ‘-l’ or ‘–local’ Limits listing to local file systems. ‘-P’ or ‘–portability’ Uses POSIX output format for better portability. ‘–sync’ Invokes sync before getting usage info. ‘–total’ Elides all entries insignificant to available space and produces a grand total. ‘-t ’ or ‘–type=’ Limits listing to file systems of type TYPE. ‘-T’ or ‘–print-type’ Prints file system type...

Usage and Implementation of df command in Linux

`-a` option in `df` command in Linux...

Frequelty Asked Question

1. What is the df command in Linux, and what does it do?...

Conclusion

In this article we have discussed `df` command which is a powerful tool for monitoring disk space usage on Linux System. By understanding its options that we have discussed and using them effectively to get useful information like file system usage, identify potential storage constraints and make informed decisions regarding resource allocation and management....