分页: 1 / 1

[问题]ps -aux 和 ps aux有何区别?

发表于 : 2007-09-01 10:43
askme
如题,一直没搞明白。
谢谢!

发表于 : 2007-09-01 12:12
BigSnake.NET
看上去没区别

发表于 : 2007-09-01 12:39
lisir

代码: 全选

man ps
Note that "ps -aux" is distinct from "ps aux". The POSIX and UNIX standards require that "ps -aux" print all
processes owned by a user named "x", as well as printing all processes that would be selected by the -a option. If
the user named "x" does not exist, this ps may interpret the command as "ps aux" instead and print a warning. This
behavior is intended to aid in transitioning old scripts and habits. It is fragile, subject to change, and thus
should not be relied upon.