Linux command-DF

Source: Internet
Author: User
Tags disk usage

The function of the DF command in Linux is to check the disk space usage of the Linux server's file system. You can use this command to get information about how much space the hard disk is taking up, and how much space is left.

1. Command format:

DF [Options] [file]

2. Command function:

Displays the free space for the specified disk file. If no file name is specified, all available space for the currently mounted file system will be displayed.

3. Command parameters:

Common parameters:

-A: Displays a list of all file systems

-H: Display at a convenient human perspective

-I: Display inode information

-L: Show only local file system

--no-sync: Ignore sync command

-T < file system type >: Displays only disk information for the selected file system

--HELP: Display Help information

--version: Display version information

4. Usage examples:

1) DF:

650) this.width=650; "title=" image "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px; padding-right:0px "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M02/6D/E7/ Wkiom1vuojtsjtaraak6j3hbr7i009.jpg "" 529 "height=" 414 "/>

The first column of the DF command output list in Linux is the path name (usually the partition information) that represents the device file for the file system, the second column gives the data block, and the 34th column is the number of data blocks that are used and available. Because each partition has a reserved block for administrator operations, the 34th column adds up to a smaller number of blocks than the second column. The use% column in the list represents the percentage of normal user space used, even if the number reaches 100%, and the partition still leaves room for the system administrator to use. Finally, the mounted on column represents the mount point of the file system.

2) Df–i:

650) this.width=650; "title=" image "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; margin:0px; border-left:0px; padding-right:0px "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M01/6D/E7/ Wkiom1vuojiqw9lhaaezigplei4562.jpg "" 523 "height=" 159 "/>

Displays disk usage information in inode mode.

3) df–t Ext4:

650) this.width=650; "title=" image "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; margin:0px; border-left:0px; padding-right:0px "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M02/6D/E2/ Wkiol1vuojsbpfkiaacfllplt2g767.jpg "" 476 "height="/>

Displays the usage information for the disk that the file system is in EXT4 format.

Linux command-DF

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.