Discover show size of directory linux, include the articles, news, trends, analysis and practical advice about show size of directory linux on alibabacloud.com
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
Du-ah--max-depth=1 This is what I want. A indicates that all files and folders (excluding subdirectories) are displayed in the directory, and H means that the max-depth represents the depth of the directory in a way that humans can read.
The du
Du-ah--max-depth=1 This is what I want. A indicates that all files and folders (without subdirectories) are displayed in the directory, and H represents the depth of the directory in a way that humans can understand, max-depth.The du command is used
Du-ah--max-depth=1 This is what I want. A indicates that all files and folders (without subdirectories) are displayed in the directory, and H represents the depth of the directory in a way that humans can understand, max-depth.The du command is used
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
The following are some of the most important directories and the various functions of Linux systems:/root directory.Contains almost all of the file directories. Equivalent to a central system. The simplest way to enter is: CD/./bootDirectories such
Du-ah--max-depth=1 This is what I want the result of a means displays all files and folders (without subdirectories) in the directory, and H represents the depth of the directory in a way that humans can understand. max-depth. The du command is used
Linux directory structure and file basic operation introduction1, the Linux file organization directory structure. 2, relative path and absolute path. 3, the movement of files, copying, renaming, editing and other operations.First, the LINUX
Ubuntu View disk space Size commandThe http://www.cnblogs.com/zhuiluoyu/p/6598928.html df-h DF command is a Linux system that views the file system as a disk partition, which can be added with parameters to view the disk's remaining space
Summary of the basic operations of Linux, basic operations of linux
Preface
Linux was a UNIX-compatible operating system developed in 1991 and can be used for free. Its source code can be freely transmitted and can be modified, enriched, and
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.