Por razões históricas, as opções de ps
são uma bagunça emaranhada e inconsistente. No OS X Lion, qualquer um deles deve funcionar:
ps -ax
ps -e
ps aux # this displays in a different format
Eu não tenho uma caixa do Ubuntu para testar, mas de acordo com a página de manual , ps -aux
não é o caminho certo para fazer isso:
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.