The DF command lists the number of free disk space on the file system where the specified file name resides. If no file name is specified, all currently used file systems are displayed. By default, disk space is displayed as a block of 1K, and if the environment variable posixly_correct is set, a block of 512 bytes is displayed.
Command format
DF [OPTION] ... [FILE] ...
Command parameters
-A,--all
Displays the usage of all file system disk space
-B,--block-size=size
Specify the size of the block
--total
Additional display of overall disk space usage
-H,--human-readable
Display information in an easy-to-read manner
-H,--si
Similar to-h, but 1K = byte instead of 1K = 1024x768 byte
-I.,--inodes
Use inode information instead of blocks to represent occupancy
-K
Equivalent to--block-size=1k
-L,--local
Show only the local file system usage
--no-sync
Do not call sync before getting the disk information
-P,--portability
Output in POSIX format
--sync
Call Syn before getting the disk information
-T,--type=type
Displays information for only the file system of the specified type
-T,--print-type
Additional display of each file system type
-X,--exclude-type=type
Displays information only for file systems other than the specified type
-V (Ignore)
--help
Display Help information
--version
Display version Information
Instance
A
b) List the disk space usage of the file system where the/etc/passwd file resides
[Email protected]:~$ df/etc/passwd File system 1k-block used available% mount point/dev/sda9 54822324 5576272 46461236 11% /
Linux Command-DF: report Disk space usage