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." #发
相关文章
相关标签/搜索