In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article is about how the LINUX system uses commands to clean up disk space. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
1. Scan and compare the important file systems regularly, and analyze which files are read and written frequently.
# IS-IR/home >; files.txt
# diff filesold.txt files.txt
By analyzing the growth of the predicted space, we can also consider compressing the files that read and write infrequently to reduce the space occupied.
2. View the inodes consumption of the spatial file system
# df-i/home
If there is still a large number of inpde available, it means that large files take up space, otherwise thieves may take up a large number of small files.
3. Find out the directory that takes up more space.
View the space occupied by / home
# du-hs/home
View / home occupies more than 1000m space
# du/awk'$1 >; 2000'
4. Find out the files that take up more space.
# find/home-size + 2000K
5. Find out the recently modified or created files
First TOUCH a file of the time you want is as follows
# TOUCH-t 08190800 test
# find/home-newer test-print
Delete Log
# rm-rf/var/log/*
6. Connect the partition
In a partition with space, make a connection to the partition that has no space.
# in-s/home/use/home
7. Find a process that consumes a lot of space
According to different applications, find out the corresponding process and analyze the reasons.
Thank you for reading! This is the end of the article on "how the LINUX system uses commands to clean up disk space". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it out for more people to see!
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.