Technology and General Blog

The “df” command in Linux stands for “disk no cost.” It is applied for checking the place readily available throughout the distinctive file units of your Linux system. We will discover the use of this command in Linux in today’s article.

Common Syntax of the “df” Command

The primary syntax of the “df” command is as follows:

The “option” more than in this article refers to the flags employed in conjunction with the “df” command.

Illustrations of the “df” command in Linux

There are numerous means in which this command can be utilised in Linux. Nonetheless, its most common use cases are mentioned underneath:

Case in point 1: The “df” Support Manual
To start with, we will access the aid handbook of the “df” command to know all the choices employed. We can do it with the following command:

The enable handbook of the “df” command is shown in the graphic beneath:

Example 2: Exhibit the Space of the At this time Mounted File Units in Linux
When we use the “df” command without any flags or alternatives, then it displays the free of charge space of all the at present mounted file devices in Linux in the pursuing method:

The output of this command will be as follows:

Example 3: Exhibit the Place of all the File Methods in Linux
On the other hand, suppose you want to appear at the no cost room of all the file techniques regardless of regardless of whether they are mounted or unmounted, obtainable or inaccessible. In that circumstance, you can use the subsequent variation of the “df” command:

The output of this variant of the “df” command is proven down below:

Case in point 4: Display screen the Complete House of File Devices in Linux
If you want to get a whole figure of the room of the file methods in Linux, then you can execute the pursuing command:

In the output of this command, you can see that it shows the complete room of all the file programs in the previous row of the output.

Illustration 5: Exhibit the Disk Room in Human Readable Format in Linux
The disk room can also be displayed in a human-readable format in Linux in the next manner:

The disk place of the file systems in a human-readable structure is revealed down below:

Illustration 6: Screen the Disk Space in Specified Units in Linux
If you want the disk house to be displayed in the specified units in Linux, then you can use the adhering to variant of the “df” command:

You can swap “unit” with “k,” “m,” and “h” for “kilobyte,” “megabyte,” and “gigabyte,” respectively.

Due to the fact we have utilized the “-k” flag, hence, the disk house of our file devices in kilobytes is revealed underneath:

Example 7: Screen the Disk Room of a Specified File System in Linux
You can also just screen the details about a specific file technique in Linux. This can be finished with the pursuing command:

You can exchange the Filesystem with the name of the file procedure whose data you want to see.

The details connected to our specified file system is revealed in the impression under:

Illustration 8: Exhibit the Disk Room of all Data files Techniques except for the Specified File System in Linux
You can even pick to display the information and facts pertaining to all the file programs though excluding a single file system with the pursuing command:

Again, you can exchange the Filesystem with the file system’s identify whose details you want to exclude.

The facts connected to all of our file methods, excluding the specified file technique, is demonstrated in the impression beneath:


This article talked over the distinctive versions of the “df” command in Linux briefly. Nonetheless, there are continue to a handful of a lot more variants that you can simply discover on your individual.

Leave a Reply

Your email address will not be published. Required fields are marked *