Cause work or day-to-day use of Ubuntu, often encounter the view of the current system capacity, this time we need to use the command to query the current directory or the size of the file directory (DU) syntax format [plain] du [-ahskm] file or directory name
Parameter Interpretation-A: Lists all files and directory capacity, because the default is only the capacity of the catalog-H: In the more readable capacity format rendering (g/m/k) display, automatically select the display of the unit size-s: To list the total, and not list each individual directory occupancy K: Display in kilobytes-M: Display common command Reference in MB view the current directory size [plain] du-sh./
View a specified directory size [plain] du-sh Directory_name displays 10 largest (smallest) directories or files under the specified directory maximum: [plain] Du-sh * | Sort-nr | Head min: [php] Du-sh * | Sort-n | Head