Linux folder Information Display (size, sorting .....)

Source: Internet
Author: User
Linux folder Information Display (size, sorting .....) method 1: ll. /* | sort-k5-n from small to large arrangement, if you need to small to big plus-r option can be Method 2: ls-lSr sort the files in a Linux directory by file size in descending order. df-lh2... linux folder Information Display (size, sorting .....) method 1: ll. /* | sort-k 5-n is arranged from small to large. if you need the-r option from small to big, you can use Method 2: ls-lSr sort the files in a Linux directory by file size in descending order. df-lh 2. du-s/usr/* | sort-rn, which is sorted by Byte 3. du-sh/usr/* | sort-rn, which is sorted by MB. select the top 10 du-s/usr/* | sort-rn | head 5. select the 10 Following du-s/usr/* | sort-rn | tail description: /usr/* can also be changed to any directory you want to reach, such as/usr/local/zhou/resin. then you can write/usr/local/zhou/resin/* as the folder size. du. -H | grep G

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.