liunx 小例子 更新中...

一、查詢cpu使用狀況code while : do idle=`top -bn1 | sed -n '3p' | awk '{print $4}' | cut -d . -f2` use=$[100-$idle] if [ $use -gt 90 ] then echo "cpu use percent too high." #發
相關文章
相關標籤/搜索