你这个是直接在命令行执行,所以后面会有显示pid,你写进一个脚本就不会显示了。
root@ubuntu:# more sh1.sh #!/bin/bashsar 1 100 > /tmp/sar.log &