Linux view file and directory Size command df&du__linux

Source: Internet
Author: User
Tags readable
(i) View file system space usage: DF
syntax Format
DF [-h]  File/directory name/omit    displays the file or directory where the file system disk space usage
parameter explanation:-
H    Display with a more readable capacity format rendering (g/m/k), automatic selection of displayed unit size
(ii) View the capacity of the directory: Du
syntax format
du    [-ahskm]    file or directory name
parameter explanation -
A: Lists all files and directory capacity, because the default is only the capacity of the catalog.-
H: Displays in a more readable capacity format rendering (g/m/k), automatically selects the displayed unit size-
S: List totals, do not list each individual directory occupancy capacity
-K: Displays the instance in
MB:
1. View the current directory size
du-sh./
2. View a specified directory size
du-sh dirname
3. Display 5 maximum (minimum) directories or files in the specified directory
max:
du-sh * | sort-nr | head
min:
du-sh * | sort-n | head
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.