macos - "ps aux"有效,但 "ps -aux"无效

标签 macos unix terminal command

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

This website指出破折号是可选的

ps aux

然而,ps aux有效但 ps -aux出现错误 no user named 'x' .任何想法可能是什么问题?运行 Mac 10.8.2。谢谢

最佳答案

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.

关于macos - "ps aux"有效,但 "ps -aux"无效,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15102576/

相关文章:

objective-c - 将事件保存到 CalCalendar 是否只存储指向 CalEvent 的指针,而不是副本?

swift - 如何在命令行程序中的 Swift 3 中执行 "say"?

linux - 如何使用 iptables 允许从特定 IP 地址访问特定端口

linux - 向每列添加多个值

c - 为什么 printf 在 macOS 上会破坏信号处理程序,但在 ubuntu 上却不会?

c++ - 在 windows 和 mac 上运行的 Opengl cpp 代码?

xcode - 如果不让 - 在 Swift 中

linux - 如何使用没有管道的三通

terminal - 在 Rust 中,如何捕获带有颜色的过程输出?

macos - 使用 PPK 和 SSH 时,Mac 终端不断要求输入密码