In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces "Linux view disk space and disk space management command", in the daily operation, I believe that many people have doubts on the command of Linux view disk space and disk space management. Xiaobian consulted all kinds of materials and sorted out simple and easy-to-use methods of operation. I hope it will be helpful to answer the doubts of "Linux View disk space and disk space management command". Next, please follow the editor to study!
When I went to work today, I found that there was a 502 error when I visited the website. After eliminating the configuration and exception problems, the guess is that the disk is full. Use df to take a look, sure enough, the disk is full, switch to the corresponding directory, delete the running log, sure enough (there are too many logs, do not use the script to delete).
Here are the disk commands (df and du)
Df command to get how much space the disk occupies (change to readable form-h parameter)
The first column is the pathname (Filesyetem) of the device file that represents the file system.
The second partition of the / dev/sda2 primary partition, which is the size of the system disk.
The function of devtmpfs is to establish a preliminary / dev in the early stage of Linux core startup, so that the general startup program does not have to wait for udev, thus shortening the boot time of Linux.
Tmpfs is a virtual memory file system, not a block device. It is a memory-based file system, which does not need to be initialized by mkfs when it is created. Its biggest feature is that its storage space is in VM (virtual memory), and VM is managed by the vm subsystem in the linux kernel. The size of VM under linux consists of RM (Real Memory) and swap. The size of RM is the size of physical memory, while the size of Swap is determined by yourself. Swap is a virtual memory space through the hard disk, so its read and write speed is much slower than RM (Real Memory). When a process applies for a certain amount of memory, such as the VM subsystem of the kernel finds that there is not enough RM, it will exchange some uncommonly used data from RM to Swap. If you need to reuse these data, then swap them from Swap to RM. If you have enough physical memory, you can leave the Swap partition undivided.
The first zone of the / dev/sda5 logical partition
There is only one on my internal machine (some system installation initialization is like this)
Capacity of hard disk = capacity of primary partition + capacity of extended partition
The capacity of the extended partition = the sum of the capacity of each logical partition
The second column is the total size available. The third column is the usable size. The fourth column is valid. The fifth column is the remaining percentage.
General third column + fourth column
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.