In Linux, you will often see the file size, which is usually used by the command du:The command is explained in detail below:[Email protected] logs]$ du--helpUsage: du [options] ... [File] ...Or: du [options] ...--files0-from=fCalculate the disk
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
Du-h–-max-depth=0
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
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
Welcome to the Linux community forum and interact with 2 million technical staff to upload files larger than 2 MB in php. Solution: We often upload attachments larger than 2 MB, the default php setting cannot exceed two megabytes. We can modify the
The file parameter is actually a directory that reports all the files in that directory. If the file parameter is not provided, the DU command uses the files in the current directory.If the file parameter is a directory, then the number of reported
Without knowing it, I have recorded 8 articles about Linux learning. Although it is still floating on the surface of the Linux system, there are still many others that have not been learned, but sticking to learning and writing is successful
Alarm when disk exceeds size#df View the first-level directory size, usage scale, file system mount point. The file size cannot be displayed. Statistics block usage.#du View the size of the file and the directory. Statistics file size added. If a
The file parameter is actually a directory that reports all the files in that directory. If the file parameter is not provided, the DU command uses the files in the current directory.If the file parameter is a directory, then the number of reported
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.