In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces the relevant knowledge of how to use the Linux du command, the content is detailed and easy to understand, the operation is simple and fast, and has a certain reference value. I believe you will gain something after reading this Linux du command article. Let's take a look at it.
The common Linux command du also looks at the usage space, but unlike the df command, whether the Linux du command looks at the space used by the file and directory disk, or whether it is different from the df command.
Du displays the disk usage space for each file and directory
The syntax du [options] [Files] option-a,-- all displays the size of individual files in the directory. -B,-- block-size= size uses the specified number of bytes of block-b,-- bytes displays the directory or file size in byte. -c,-- total displays not only the size of individual directories or files, but also the sum of all directories or files. -D,-- dereference-args displays the source file size of the specified symbolic link. The parameters of-H,-- si and-h are the same, but the conversion unit of K _ ~ ~ M ~ G is 1000. -h,-- human-readable is based on KMagazine G as a unit to improve the readability of the information. -k,-- kilobytes output in KB (1024bytes). -l,-- count-links repeatedly calculates hardware-linked files. -m,-- megabytes output in MB. -L,-- dereference displays the source file size of the symbolic link specified in the options. -P,-- no-dereference does not follow any symbolic links (default)-0,-- null treats each blank line as 0 bytes rather than the newline character-S,-- separate-dirs shows the size of individual directories, without the size of their subdirectories. -s,-- summarize displays only the total and lists only the last plus value. -x,-- one-file-xystem is based on the file system at the beginning of processing, and will be skipped in case of other different file system directories. -X,-- exclude-from= is in the specified directory or file. -- apparent-size shows surface usage, not disk usage; although the surface usage is usually smaller, it sometimes becomes larger due to "holes" between sparse files, internal fragments, indirect referenced blocks, and so on. -- files0-from=F calculates the disk space occupied by the file name ending with NUL in file F. If the value of F is "-", the file name is read in from standard input-exclude= skips the specified directory or file. -- max-depth=N displays directory totals (calculation file is used with-- all) the calculation depth is N when N is the specified value, and equal to 0-- summarize-- si similar to-h But in the calculation, use 1000 as the base instead of 1024-- time displays the last modification time of all files in the directory or subdirectory of that directory-- time=WORD displays the WORD time, not the modification time: atime,access,use Ctime or status-- time-style= style displays the time according to the specified style (the style interpretation rules are the same as the "date" command): full-iso,long-iso,iso,+FORMAT-- help displays this help information and exits-- version displays version information and exits the sorting of instance files from largest to smallest.
Ubuntu@VM-0-14UBUUTUGUBUTUGUBUTUBUBUBUTUGUM command $du-sh * | sort-rh 2.9m command 1.9m assets 148K template 72K package-lock.json 52K dist 16K README.md 4.0K renovate.json 4.0K package.json 4.0K LICENSE only shows the size of the subdirectories under the current directory.
Ubuntu@VM-0-14 dist/ ubuntuvvaqqgit _ sh _ sh. / * / 1.9m. / assets/ 28K. / build/ 2.9m. / dist/ 52K. / dist/ 148K. / view the space occupied by files in the specified directory:
Ubuntu@VM-0-14 Linux.gif UBUUUTUVUR qr.png shows only the sum of the sum. / * 144. / alfred.png 452. / chrome-extensions.gif 4. / Linux.gif 1312. / 16. / show only the sum:
Ubuntu@VM-0-14 MUBUBUBUTUGUBUTUGUBUTUGUTUGUTUBUTUGUTUBUTUGUTUBUBUTUGUBUTUR. Ubuntu@VM-0-14 UBUBUBUBUBUTUGUBUTUGUM. 1932. Displays the size of the sum and is easy to read:
Ubuntu@VM-0-14 MUBUBUBUTUGUBUTUGUTUGUTUBUBUBUTUGUTUBUTUBUBUBUBUBUBUBUBUBUBUBUBUBUBUBUBUBUBUTUGUM. Ubuntu@VM-0-14 UBUBUBUBUTUGRAPHY: GITUTUBUTUGUTUGUBUTUGUTUR sh. 1.9M. This is the end of the article on "how to use the Linux du command". Thank you for reading! I believe you all have a certain understanding of the knowledge of "how to use Linux du commands". If you want to learn more, you are welcome to follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.