linux df command parameter function: check the disk space occupancy of the file system. You can use this command to get information about how much space the hard disk is occupied and how much space is left.
Syntax: df [options]
Description: The df command in linux shows the usage of i-nodes and disk blocks for all file systems.
The meaning of each option of this command is as follows:
-a Displays the disk usage of all file systems, including a file system of 0 blocks, such as the /proc file system.
-k Displayed in k-bytes.
-i Displays i-node information instead of disk blocks.
-t Displays the disk space usage for each file system of the specified type.
-x Lists disk space usage for a file system of a specified type (as opposed to the t option).
-T Displays the file system type.
Function: Check the disk space usage of the file system. You can use this command to get information about how much space the hard disk is occupied and how much space is left.
Syntax: df [options]
Description: The df command in linux shows the usage of i-nodes and disk blocks for all file systems.
Description: The meaning of each option of the df command in Linux is as follows:
-a Display the disk usage of all file systems, including 0 block file system, such as /proc file system .
-k Displayed in k-bytes.
-i Displays i-node information instead of disk blocks.
-t Displays the disk space usage for each file system of the specified type.
-x Lists disk space usage for a file system of a specified type (as opposed to the t option).
-T Displays the file system type.
Example 1: List the disk space usage of each file system.
$ df
Filesystem 1 K-blocks Used Available Use% Mounted on
/dev/hda2 1361587 1246406 44823 97% /
linux df The first column of the output list of the command is the path name of the device file corresponding to the file system (generally the partition on the hard disk); the second column gives the number of data blocks (1024 bytes) contained in the partition; 3, 4 The columns indicate the number of used and available data blocks, respectively. The user may be surprised that the sum of the number of blocks in columns 3 and 4 is not equal to the number of blocks in column 2. This is because the default per partition leaves a small amount of space for system administrators to use. Even if the normal user space is full, the administrator can still log in and leave the workspace needed to solve the problem. The Use% column in the list represents the percentage of normal user space usage, even if the number reaches 100%, the partition still leaves room for system administrators. Finally, the Mounted on column represents the mount point of the file system.
Example 2: List the i-node usage of 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: List the types of file systems.
$ df -T
Filesystem Type 1K-blocks Used Available% Mounted on
/dev/hda2 ext2 1361587 1246405 44824 97% /
The file system in this example is ext2 type
[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 partitions of 0 blocks 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
-hMore current disk space and usage 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
-H has the same -h parameter above the root, but in the rooting, use 1000 instead of 1024 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 shows 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 shows the disk space usage of the local partition. If the server nfs the disk of the remote server, then after adding -l to df, the system displays the result after filtering the nsf drive
-i Shows the usage of the inode. Linux uses a pointer-like approach to managing disk space mapping. This is also a more critical application.
Think about it, what if you want to change the size of an image to a smaller size? Of course, I will
Speaking of the command, you have to mention this special command vi it is not only a command, but a
Linux and BSD are free, open source, Unix-like systems. They even use a lot of the same software. T
In different Linux distributions, there will be different GUI programs that can display various syst
Windows under the wrong formatted Linux SWAP partition recovery
Simple way to modify shared memory in Linux operating system
Linux installation ARM-LINUX-GCC
Select/poll/epoll comparison analysis
Linux System Network Connection FAQ Diagnostics
Shorewall firewall installation and configuration method under Linux
RZSZ tutorial under Linux system
Linux system management and maintenance -bzip2/bunzip2 command
Win7 teaches you how to connect to the "stealth" network.
What is the use of Xiaona in the Win10 Spartan browser?
XP upgraded WIndows7 before adapting to Vista
Win2008 server prompts no registration category (80040154) What should I do?
Magic copy and paste commands - Windows clipboard
Win7 system installation printer prompts can not add a printer how to do?
Win10 computer prompts how to find the elements?