Unix命令| PS

时间:2013-01-27 15:57:40

标签: linux shell unix

我在Shell Prompt上给出以下命令: $ ps -u 0

我无法理解同样的输出是什么。任何人都可以详细说明吗?

1 个答案:

答案 0 :(得分:2)

复制自男人ps:

   -u userlist     Select by effective user ID (EUID) or name.
                   This selects the processes whose effective user name or ID is in userlist. The
                   effective user ID describes the user whose file access permissions are used by the
                   process (see geteuid(2)). Identical to U and --user.

含义: 它打印用用户0(root)开始的所有进程
有关更多信息,请参阅man ps

编辑: 要查看所有正在运行的进程,而不仅仅是来自一个用户,您可以使用“ps ax”

相关问题