The DF command is used to view the system's space and inode usage, and is also one of the common commands in System management and shipping dimension.
-a,–all displays all file systems, including local and mounted network file systems
-b,–block-size=size Use custom block sizes, such as 1MB 2MB 1GB, etc. as units
-h,–human-readable print sizes in human readable format (e.g., 1K 234M 2G) literal translation: Display in standard 1GB=1024MB size
-h,–si Likewise, but use powers of 1000 not 1024 to display in 1GB=1000MB size
-i,–inodes display Inode information rather than block usage
-K is –block-size=1k
-l,–local only displays the file system for this computer
–no-sync do not synchronize before obtaining usage data (default)
-p,–portability uses POSIX-compatible output formats
–sync to get the usage data before the synchronization action
The-t,–type= type only displays information of the specified file system as the specified type
-t,–print-type Display file system type
-x,–exclude-type= type only shows file system not specified type information
Df-l display local file system:
Use custom block sizes, such as 1MB 2MB 1GB, and so on for units:
Exclude certain classes Specify file system display:
Lists the I node usage for each file system.
$ df-ia
FileSystem inodes iused ifree iused% mounted on
/dev/hda2 352256 75043 277213 21%/
None 0 0 0 0%/proc
localhost: (pid221) 0 0 0 0%/net
Example 3: Lists the type of file system.
$ df-t
FileSystem Type 1k-blocks Used Available use% mounted on
/dev/hda2 ext2 1361587 1246405 44824 97%/
The file system in this case is a ext2 type of
[Root@rac1 ~]# DF
FileSystem 1k-blocks Used Available use% mounted on
/DEV/SDA1 3020140 2333952 532772 82%/
None 213320 0 213320 0%/dev/shm
/dev/sda2 4633108 1818088 2579668 42%/u01
/dev/sde1 524272 81104 443168 16%/OCFS
This command shows the usage of all partitions on the server. It also includes several useful parameters to help format the output:
-a displays all partitions of the system, and does not display 0-block partitions normally by default
[Root@rac1 ~]# Df-a
FileSystem 1k-blocks Used Available use% mounted on
/DEV/SDA1 3020140 2333952 532772 82%/
None 0 0 0-//proc
None 0 0 0-/sys
None 0 0 0-/dev/pts
None 213320 0 213320 0%/dev/shm
/dev/sda2 4633108 1818096 2579660 42%/u01
None 0 0 0-/proc/sys/fs/binfmt_misc
SUNRPC 0 0 0-/var/lib/nfs/rpc_pipefs
Configfs 0 0 0-/config
Ocfs2_dlmfs 0 0 0-/DLM
/dev/sde1 524272 81104 443168 16%/OCFS
Oracleasmfs 0 0 0-/dev/oracleasm
-H more Current disk space and usage to be displayed in a more readable way
[Root@rac1 ~]# Df-h
FileSystem Size Used Avail use% mounted on
/DEV/SDA1 2.9G 2.3G 521M 82%/
None 209M 0 209M 0%/dev/shm
/dev/sda2 4.5G 1.8G 2.5G 42%/u01
/dev/sde1 512M 80M 433M 16%/OCFS
The-h parameter is the same on the H-root, but in the radical, 1000 instead of 1024 is used for capacity conversion
[Root@rac1 ~]# Df-h
FileSystem Size Used Avail use% mounted on
/DEV/SDA1 3.1G 2.4G 546M 82%/
None 219M 0 219M 0%/dev/shm
/dev/sda2 4.8G 1.9G 2.7G 42%/u01
/dev/sde1 537M 84M 454M 16%/OCFS
-K displays disk usage in units
[Root@rac1 ~]# Df-k
FileSystem 1k-blocks Used Available use% mounted on
/DEV/SDA1 3020140 2333952 532772 82%/
None 213320 0 213320 0%/dev/shm
/dev/sda2 4633108 1818152 2579604 42%/u01
/dev/sde1 524272 81104 443168 16%/OCFS
-L Displays the disk space usage of the local partition, and if the server NFS the remote server's disk, then the system displays the results after the NSF drive is filtered after DF plus-l