1. Df-lh
2. Du-s/usr/* | Sort-rn
This is sorted by byte
3. du-sh/usr/* | Sort-rn
This is sorted by megabytes (M)
4. Select 10 of the preceding
Du-s/usr/* | Sort-rn | Head
5. Select the following 10
Du-s/usr/* | Sort-rn | TailDu-h–-max-depth=0
1. Df-lh
2. Du-s/usr/* | Sort-rn
This is sorted by byte
3. du-sh/usr/* | Sort-rn
This is sorted by megabytes (M)
4. Select 10 of the preceding
Du-s/usr/* | Sort-rn | Head
5. Select the following 10
Du-s/usr/* | Sort-rn | Tail
DF-HL View disk remaining space
Du-sm folder
Returns the total m of this folder
More features please view:
DF--help
Du--help
Du-sh (the name of this directory) is the size of this directory.
Use the du command to view a directory, such as
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
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]
Linux disk space size statistics du command common usage, linuxduIn Linux, you can collect statistics on the space occupied by a file or folder. Here we will summarize some common usage as follows:
1. Make statistics on the specified file or folder.
Linux disk space size statistics du command common usageIn Linux, you can collect statistics on the space occupied by a file or folder. Here we will summarize some common usage as follows:
1. Make statistics on the specified file or folder. The
Command: Du usage linux folder size
du-sh./view current directory size
du-sh * View folder size in current directory
du command
Use
Overview disk usage.
Grammar
Du [a | s] [k] [M] [-g] [-l] [-r] [-X] [-H | l] [File ...]
Description
The du
du [-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 file in the directory. - B or-bytes
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.