如何只为特定用户获取“ top”?


23

我如何top只为一个用户阅读bash?我不希望它为其他用户显示数据。

Answers:


30

来自man top

-u : Monitor by user as:     -u somebody
     Monitor only processes with an effective UID or user name matching
     that given.

因此,如果您运行top -u root,将仅获得root进程。

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.