Common commands for Linux file systems

Source: Internet
Author: User

01. Statistical File System occupancy = DF [option] [user name]

-H: Display capacity

-A: Show all file system Information

-T: Show file system type

-M: Display capacity in megabytes

-K: Display capacity in kilobytes

02. Statistics directory or file size = du [option] [directory or filename]

-A: Show each sub-file size

-H: Display size units

-sh: Total usage of statistics

DF and du differences:

DF: Not only to consider the size of the file, but also to consider the amount of space occupied by the command or program (the most common is that the file has been deleted, but the program is not free space)

Du: Only consider file and directory size

03. File System repair command and fsck [options] [partition device file name] (System automatic execution)

04. Display Disk status = DUMPE2FS

Common commands for Linux file systems

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.