Linux Views 4

Checking disk space with df

Checking disk space with df image 1

The df command checks the disk space of file systems and displays it.

df [option]

 Option  Description
-a  Shows every file system. 
-B  Shows capacity using the given size as the block unit.
-h  Calculates and shows the size in K[kilo], M[mega], or G[giga] units.
-H  Shows 1KB as units of 1,000.
-i  Shows remaining inode space, used space, and usage rate. 
-k  Shows the size in 1KB units. 
-l Limits the printed list to local file systems.
-P  Prints in the form used by POSIX.
-t  Limits the list that is shown to a file-system type.
-T  Adds the file-system type and prints information for each partition.
-x   Prints information for every file system except the given type.  
--total Prints a total.

Command examples

Print in K, M, or G units

Checking disk space with df image 2

Print in K, M, or G units, including the total

Checking disk space with df image 3

Show 1KB as units of 1000, and print only the ext4 file system

Checking disk space with df image 4

Reactions

Comments 0

A nickname and a password are required. The same password edits or deletes the comment later. Comments appear after a review.

Comments appear after a review. The password is used again to edit or delete.