“ps aux”工作,但“ps-aux”没有 [英] "ps aux" works but "ps -aux" doesn't
本文介绍了“ps aux”工作,但“ps-aux”没有的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
这可能看起来像一个愚蠢的问题,但我找不到一个明确的答案。
此网站表示
中的破折号是可选的。 ps aux
但是, ps aux
可以工作,但 ps -aux
显示错误没有用户命名为'x'
。任何想法什么问题可能在这里?运行Mac 10.8.2。感谢
解决方案
man ps
pre>
会为您提供:
最大的变化是解释-u选项,现在
显示属于指定用户名的进程。因此,ps
-aux将失败(除非你想知道用户x)。然而,作为一个传递,然而,ps辅助仍然工作,它在虎。
This might seem like a silly question but I haven't been able to find a clear answer.
This website states that the dash is optional in
ps aux
However,
ps aux
works butps -aux
brings up the errorno user named 'x'
. Any ideas what the issue may be here? Running Mac 10.8.2. Thanks解决方案man ps
will give you this:
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.
这篇关于“ps aux”工作,但“ps-aux”没有的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文