In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces "what is the Linux view disk space command". In the daily operation, I believe that many people have doubts about what the Linux view disk space command is. The editor consulted all kinds of materials and sorted out a simple and easy-to-use method of operation. I hope it will be helpful to answer the doubt of "what is the Linux view disk space command?" Next, please follow the editor to study!
It is very convenient to check the disk space under windows. But when you check the disk space in Linux, you may be a little confused, hehe. Don't worry, I'm going to solve this problem for you right now.
The Df command is Linux to view disk space system to view the file system in terms of disk partition, and you can add parameters to view the information of the remaining disk space. Command format:
Df-hl
The Linux view disk space display format is:
File system capacity used available used% mount point
Filesystem Size Used Avail Use% Mounted on
/ dev/hda2 45G 19G 24G 44% /
/ dev/hda1 494m 19m 450m 4% / boot
/ dev/hda6 4.9G 2.2G 2.5G 47% / home
/ dev/hda5 9.7G 2.9G 6.4G 31% / opt
None 1009M 0 1009M 0% / dev/shm
/ dev/hda3 9.7G 7.2G 2.1G 78% / usr/local
/ dev/hdb2 75G 75G 0 100% /
/ dev/hdb2 75G 75G 0 100% /
Taking the output above as an example, it means:
The second hard disk (b) of the HD hard disk interface, the second partition (2), has a capacity of 75g, uses 75G, and the availability is 0, so the utilization rate is 100%, which is mounted to the root partition directory (/).
The following is an explanation of the Linux View disk Space command:
Df-hl to check the remaining disk space
Df-h to view the partition size of each root path
Du-sh [directory name] returns the size of the directory
Du-sm [folder] returns the total number of megabytes in the folder
For more functions, you can enter the command to view:
Df-help
Du-help
At this point, the study of "what is the Linux View disk Space Command" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
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.