2013-02-27 41 views
11

这可能看起来像一个愚蠢的问题,但我一直没能找到明确的答案。“PS辅助”的作品,但“ps -aux”不

This website指出,短跑是

ps aux 

然而,ps aux作品,但ps -aux带来了错误no user named 'x'可选。任何想法可能在这里的问题?运行Mac 10.8.2。由于

+0

这个问题应该重新打开;检查过程存在肯定是一种“编程工具”。 – 2014-03-14 20:13:48

回答

11
man ps 

会给你这样的:

The biggest change is in the interpretation of the -u option, which now 
displays processes belonging to the specified username(s). Thus, "ps 
-aux" will fail (unless you want to know about user "x"). As a conve- 
nience, however, "ps aux" still works as it did in Tiger. 
+0

bah谢谢,在UNIX命令方面我还是个新手 – Steve 2013-02-27 01:27:46

8

早在一天(从20世纪70年代末),基本上有两个品种的UNIX,从贝尔AT & T版实验室和加州大学伯克利分校的BSD版本。 ps的选项在两个版本中是不同的。 OS X现在大部分符合遵循ps的AT & T选项的现代UNIX标准。但是由于BSD ps不需要领先的' - '选项,并且很多人习惯于输入'ps aux',所以苹果公司决定以原始的BSD解释离开该序列。