2013-02-27 39 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解釋離開該序列。