“ps辅助"有效,但“ps -aux"没有 [英] "ps aux" works but "ps -aux" doesn't

查看:23
本文介绍了“ps辅助"有效,但“ps -aux"没有的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这似乎是一个愚蠢的问题,但我一直无法找到明确的答案.

本网站声明破折号在

中是可选的

ps 辅助

但是,ps aux 可以工作,但 ps -aux 会出现错误 no user named 'x'.有什么想法可能是这里的问题吗?运行 Mac 10.8.2.谢谢

解决方案

man ps

会给你这个:

<块引用>

 最大的变化在于 -u 选项的解释,现在显示属于指定用户名的进程.因此,ps-aux" 将失败(除非您想了解用户x").作为一个conve-但是,ps aux"仍然像在 Tiger 中一样工作.

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 but ps -aux brings up the error no 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辅助"有效,但“ps -aux"没有的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆