监视top10进程

just posted @ 2010年9月14日 23:41 in linux , 1337 阅读
top -d 1 | head -n 17 | tail -n 11

Fortunately, we have watch to help, but you needs to put top in batch mode, and also you can ask top to stop after done displaying the result for one time. This will increase the accuracy of the result.

watch -n 1 "top -b -n 1 | head -n 17 | tail -n 11"
  • 无匹配
  • 无匹配
Lenny Face 说:
2018年11月17日 15:29

I really like this article please keep it up.

fnaf world 说:
2018年12月22日 15:37

Thank you for sharing. Thanks to this article I can learn more things. Expand knowledge. Thank you


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter