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 > Servers >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly introduces how to check the folder size in linux, which has a certain reference value and can be used for reference by friends who need it. I hope you will learn a lot after reading this article. Next, let the editor take you to learn about it.
Linux View folder size command: 1, view the space occupied by each file and directory under the current directory, command is [du-sh *]; 2, view a directory file and folder size, command is [du-h-- max-depth=1 / data/home/lisen/].
Linux View folder size command: du command
1. View the space occupied by each file and directory under the current directory
Du-sh *
2. View a directory file and folder size
Du-h-- max-depth=1 / data/home/lisen/ # depth indicates that only one layer of folder size is displayed, that is, a depth of 1
3. View the total size of a directory
Du-sh. / # View the total size of the current directory
4. View the file size in a directory and sort it
Du-sh * | sort-n # cannot be sorted properly, you need to remove-hdu-s * | sort-n du-s * | sort-nr # reverse sort du-s * | sort-n | head-5 # the first five largest du-s * | sort-n | tail-5 # thank you for reading this article carefully. I hope it will be helpful for the editor to share how to check the folder size in linux. At the same time, I also hope that you will support us, pay attention to the industry information channel, and find out if you have any problems. Detailed solutions are waiting for you to learn!
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.