我在 Shell 提示符下发出以下命令: $ps-u 0
我无法理解其输出是什么。谁能详细说明一下吗?
最佳答案
从 man 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”
关于linux - Unix 命令 |附注,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14549139/