shell脚本实现每隔10s执行一次top命令,执行100次结束

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/johnWcheung/article/details/82991567
n=0;while(($n<=100));do top -n 1;n=$((n + 1));sleep 10;done

猜你喜欢

转载自blog.csdn.net/johnWcheung/article/details/82991567