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
There were times when I used LS and du to view the size of a file and found that the size of the two shows was inconsistent, for example:
bl@d3:~/test/sparse_file$ ls-l fs.img-rw-r--r--1 bl bl 1073741824 2012-02-17 05:09 fs.img
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 simple Usage exampleDu-SH xmldb/Du-Sm* | sort -n //statistics current directory size and size sorting du -sk *| sort -ndu -sk * | grep guojf //look at a person's size du -m | cut -d "/" -f 2 //See text before second/character See how
Just to clarify, there are three sets of file/position-coordinates in show SLAVE STATUS:
1) The position, on the master, from which the I/O thread is reading:master_log_file/read_master_log_pos.-----reading the master from the library relative to
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
As a system administrator, we often encounter the need to increase or decrease a file system. Dynamic Logical Volume Management (LVM) is a great help for the mainstream OS and Linux on UNIX. However, Solaris Systems that do not support LVM can only
Android hint hint font size modification, show full1. There is a problem in the work, that is, the custom EDITTEXT hint hint in the oversized font will be displayed,2. Then search the Internet for a moment, here to record, share to everyone, here to
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.