Original Linux System Management Usage Tips Summary

Source: Internet
Author: User

First, Disk Management

1. View disk space size

  DF can view the first-level folder size, usage scale, file system and its hang-in points, but there is nothing to file.

  du You can view the size of files and folders. If you do not take other parameters (-H for human-readable, to display the file size in the most readable way), the size of all files (clips) will be listed, and if you want to know only the size of the files and folders in the current directory (not in depth), then specify the depth of the first, the command is as follows:

[Email protected] usr]$sudo du-H--max-depth=1|Sort-h4.0K./games16k./lost+found1.2M./local72m./sbin77m./libexec87m./include140m./src299m./java395m./bin979m./Lib1.7G./lib643.4G./Share7.1G.

A sort-h is added above to indicate the size sort in human-readable mode.

Original Linux System Management Usage Tips Summary

Related Article

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.