In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces the common and convenient commands of Centos, which are introduced in great detail and have certain reference value. Friends who are interested must finish reading them.
1. In many cases, you need to know what large files are available on the current system, such as a file size of more than 100m or 1G (the threshold varies). So how to search out these large documents?
# for example: I want to search for files with a size of more than 900m in the current directory
Find. -type f-size + 900m-print0 | xargs-0 du-h
2. Sometimes the disk space is alarmed, and you are usually negligent in managing and monitoring the growth of files, so I need to quickly know which directories have become larger, so we can use the du command to solve this problem.
# for example: I want to query which directory in the root directory has changed a lot (of course, I think it must be / var)
Cd /
Du-h-max-depth=1
3. Return to the home directory
Cd ~
4. If you want to know the state of memory, you can use free and vmstat. You need to pay attention to the value of cached, which is the memory occupied by the kernel, as well as the value of free.
5. Use dmesg to view some hardware or driver information or problems.
The above is all the contents of this article "what are the convenient commands commonly used in Centos?" Thank you for reading! Hope to share the content to help you, more related knowledge, 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.