In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces Linux how to realize the operation method of disk space occupied by timing files, which is very detailed and has certain reference value. Friends who are interested must finish reading it.
Open scheduled task editing. Cent is opened directly using vim by default. If ubutun installs multiple editors, the first time you open it is to specify the operation of the editor.
(3) * / 1 * sh / root/Shell/monitor.sh adds this line to the file. Indicates that the sh / root/Shell/monitor.sh command is executed every other minute, and more timing formats can be queried online. That's all it takes for simple loop monitoring.
(4) service crond start starts the scheduled task. It's service cron start on ubutun.
(5) check whether the crontab scheduled task has started crontab-l
2.shell monitoring disk
(1) du-BM / root/Shell/a.pdf | awk'{print $1} 'gets the file size. -the BM result is M output, and for those that need G output, use-BG.
(2) cachesize=$ (du-BM / root/Shell/a.pdf | awk'{print $1}') uses the cachesiz variable to receive the file size. Note that what is received at this time is with units, such as 89m
(3) cachesize=$ (echo ${cachesize/M/}) removes M to get the pure number 3. Complete code
What is Linux system Linux is a free-to-use and free-spread UNIX-like operating system, is a POSIX-based multi-user, multi-task, multi-threaded and multi-CPU operating system, using Linux can run major Unix tools, applications and network protocols.
These are all the contents of this article entitled "how to operate the disk space occupied by timing files by Linux". 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.