How to use shell to detect disk utilization
This article focuses on "how to use shell to detect disk utilization", interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn "how to use shell to detect disk utilization".
[root@ecs-c13b ~] # cat fdisk.sh #! / bin/bash# intercepts IPIP= `ifconfig eth0 | awk-F "" 'NR==2 {print $2}' `# defines usage and converts it to digital SPACE= `df-Ph | awk'{print int ($5)} '`for i in $SPACEdoif [$I-ge 90] then echo "the disk utilization of $IP has exceeded 90%. Please process" fidone so far "in time. I believe you have a deeper understanding of "how to use shell to detect disk utilization". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!