The content originates from the people's post and Telecommunications press "Linux command Application big dictionary"
tell 729 commands, 1935 examples
Learn about the Linux system's reference books, desk book, encountered the command or command not understand the options can be found
Strive to publish content every day
DF command
use the DF command to display information about the file system, which displays all file systems by default. Check the disk space usage of the file system, and use this command to get information about how much space the hard disk is using and how much space is left.
Command syntax:
df[ Options ] [ file ]
The meanings of the options in the command are as shown in the table.
table df command option meaning
Options |
Meaning |
-A |
Displays all file systems, including virtual file systems |
-I |
inode information instead of block usage |
-k |
kb 1kb |
-X < file system types > |
Show only file system not specified type information |
-T |
Show file system type |
-T < file system types > |
Display only information for the specified file system type |
-L |
Show only the local file system |
-H |
Display information in a more readable way |
-H |
Same as -h option, but is calculated as a unit of bytes instead of a byte |
Example: displays the usage of disk space.
[Email protected]~]# DF
file System 1k- block already used % mount point available
/dev/sda2 154818540 2886316 144067904 2%/
Tmpfs 506272 506200 1%/DEV/SHM
/DEV/SDA1 99150 28891 65139 31%/boot
/dev/sda5 103215228 192116 97779984 1%/mnt/www
/dev/shm represents the system's virtual memory file system
Example: to MB and GB(in kilobytes ) to display disk space usage .
[[Email protected]~]# df-h
File System capacity is used available used percent mount point
/dev/sda2 148G 2.8G 138G 2%/
Tmpfs 495M 72K 495M 1%/DEV/SHM
/DEV/SDA1 97M 29M 64M 31%/boot
/dev/sda5 99G 188M 94G 1%/mnt/www
Example: to MB and GB(in units of bytes) to display disk space usage .
[[Email protected]~]# df-h
File System capacity is used available used percent mount point
/dev/sda2 159G 3.0G 148G 2%/
Tmpfs 519M 74k 519M 1%/DEV/SHM
/DEV/SDA1 102M 30M 67M 31%/boot
/dev/sda5 106G 197M 101G 1%/mnt/www
Example: The file system type is also displayed when disk space usage is displayed.
[[Email protected]~]# df-t
File System type 1k- block already used available % mount point
/dev/sda2 ext4 154818540 2886316 144067904 2%/
Tmpfs tmpfs 506272 506200 1%/DEV/SHM
/DEV/SDA1 ext4 99150 28891 65139 31%/boot
/dev/sda5 ext4 103215228 192116 97779984 1%/mnt/www
Example: Displays ext4 file system type disk space usage .
[Email protected]~]# df-t EXT4
file System 1k- block already used % mount point available
/dev/sda2 154818540 2886316 144067904 2%/
/DEV/SDA1 99150 28891 65139 31%/boot
/dev/sda5 103215228 192116 97779984 1%/mnt/www
Example : View disk space usage for the disk partition where the /mnt/www directory resides.
[[Email protected]~]# df/mnt/www
file System 1k- block already used % mount point available
/dev/sda5 103215228 192116 97779984 1%/mnt/www
example 19.28: displays inode information for disk space .
[Email Protected]el ~]# df-i
File System Inode used (i) available (i) used (i) percent mount point
/dev/sda2 9830400 92500 9737900 1%/
TMPFS 126568 3 126565 1%/DEV/SHM
/DEV/SDA1 25688 25650 1%/boot
/dev/sda5 6561792 6561780 1%/mnt/www
This article is from the "airfish2000" blog, make sure to keep this source http://airfish2000.blog.51cto.com/10829608/1872271
DF Command--linux Command application of large dictionary 729 commands interpretation