Simple Linux Command Line notes: DF

Source: Internet
Author: User
ArticleDirectory
    • Parameters
    • Option
    • Example
    •  

Display disk space usage

DF [Options] [Filesystem-list]

 

Parameters

When DF is called without any parameters, the user obtains free space for each mounted device on the local system.

Filesystem-listIs an optional list of one or more path names. The path name is used to specify the file system to cover its space usage.

 

Option

-H displays the block size in KB (kilobytes), MB (MB), and GB (GB ).

-L only display the local file system

 

Example DF
$ DF  File System 1 K -Block used and available % Mount point /Dev/sda8 16520576    8818532    6862828     57 %/ Udev  1024780          4    1024776      1 %/ Devtmpfs  413008      1012     411996      1 %/ Runnone  5120          0       5120      0 %/Run/ Locknone  1032516        432    1032084      1 %/Run/ Shmnone  102400         16    102384      1 %/Run/ User /Dev/sda1 31479332   14565432   16913900     47 %/Media/Siu/ Dc3a58213a581f38 /Dev/sda5 52452192    8319496   44132696     16 %/Media/Siu/ Software /Dev/sda7 94388808  28692428   65696380     31 %/Media/Siu/ Film and TV /Dev/sda6 115370764   57109244   58261520     50 %/Media/Siu/Materials

Show all mounted file systems

DF-H
$ DF - H file system capacity used available % Mount point /Dev/sda8 16g 8 . 5g6 . 6g 57 %/ Udev 1001 m  4 . 0 K 1001 m 1 %/ Devtmpfs 404 M 1012 K 403 m  1 %/ Runnone  5.0 m       0    5.0 m      0 %/Run/ Locknone 1009 M 432 K 1008 m  1 %/Run/Shmnone 100 M 16 K 100 m  1 %/Run/ User /Dev/sda1 31G 14g 17G 47 %/Media/Siu/ Dc3a58213a581f38 /Dev/sda5 51g 8 . 0g 43g 16 %/Media/Siu/ Software /Dev/sda7 91G 28g 63G 31 %/Media/Siu/ Film and TV /Dev/sda6 111g 55g 56G 50 %/Media/Siu/Materials

display all mounted file systems and display their capacity in appropriate units

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.