3s监控一次系统的负载(uptime命令查看负载)并且显示到shell终端界面 vim test.sh while true do clear先将屏幕清空 uptime查看系统负载 sleep 3停留3s done 因为条件一直成立,因此会一直做下去 sh test.sh 中间有一次没截上