After a few days of disk-filled events, I found myself completely unaware of DU's command, so I was determined to learn.I'll just be a porter, the extranet. Find a tutorial' Du ' is the size of the Find folderDuTyping The above at the prompt gives
Du: Querying disk usage space for a file or folderIf you have a lot of files and folders under the current directory, you can cycle through the space used by all files and folders using the command without the parameter Du. This is not good to see
DF Command: View the available space and usage of all current file systems
DF can view the level of folder size, usage ratio, file system and its mount point, but there is nothing for the file
The code is as follows:
Df-lh
Parameter-H indicates
DF -H/du -hs./dugrep [[:d igit:]+]gdu [-ABCDHHKLMSSX] [-l ][-x ][--block-size][--exclude=][--help][--version][directory or file]Common parameters:-A or-all displays disk usage for each specified file, or displays the respective disk usage for each
Detailed Mac hard drive folders (add Linux part reference
★ Detailed Mac hard disk in each folder
Ways to show hidden files
With the "terminal", the advantage is that no third-party tools are required, the downside is that if the command is wrong,
1. IntroductionDu view the directory size, DF to view disk usage.2. DuDisk usage(1) Basic functions Recursively view the size of all files under a folder(2) Common parameters: -h,–human-readable display dimensions in a more readable manner (e.g. 1K 2
The DF command can show the available space and usage for all current file systems, and see the following example:
The following is a code fragment:
The code is as follows
Copy Code
[Yayug@yayu ~]$ Df-hFileSystem Size
1. DF can view the level of folder size, usage ratio, file system and its mount point, but not for the file (see only the windows of the similar C disk, D disk)Du can view the size of files and folders, more useful
2. [Ia@i5a6 ~]$ Df-h
Parameter-H
Document directory
From javaeye
From javaeye statistics total size
Du-SH xmldb/
Du-Sm * | sort-N // count the current directory size and sort the directory size.
Du-SK * | sort-n
Du-SK * | grep guojf // view the size of a person
Du-M | cut-d "/"-
Command: du usage Linux folder size Du-Sh./view the current directory size Du-sh * view the folder size DU in the current directory command
Purpose
This topic describes how to use a disk.
Syntax
Du [-A |-S] [-K] [-M] [-G] [-L] [-R] [-X] [-H |-L]
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.