ps手册页中的这一段是什么意思?

时间:2013-05-19 14:16:44

标签: unix ps

我无法理解以下描述:

   a               Lift the BSD-style "only yourself" restriction, which is
                   imposed upon the set of all processes when some BSD-style
                   (without "-") options are used or when the ps personality
                   setting is BSD-like. The set of processes selected in this
                   manner is in addition to the set of processes selected by
                   other means. An alternate description is that this option
                   causes ps to list all processes with a terminal (tty), or
                   to list all processes when used together with the x
                   option.

我唯一能理解的是另一种描述是xxxx 。什么解除BSD风格的“只有你自己”限制和其他句子意味着什么?

1 个答案:

答案 0 :(得分:1)

默认情况下,BSD版本为ps(并且,通过扩展,Linux ps,当它被视为BSD ps时,通过传递BSD样式选项或设置PS_PERSONALITYCMD_ENV bsd环境变量仅列出运行ps的用户拥有的进程。

a参数解除了该限制,并且无论其所有者如何都会显示进程。