What is the modern equivalent of "ps aux" on macOS Sierra?
To replicate ps aux
(BSD style) in the AT&T version of ps, you have to use
ps -Ao user,pid,%cpu,%mem,vsz,rss,tt,stat,start,time,command
This command is compatible with scripts that expect the same output as ps aux
.
The only difference is the sort order; ps aux
sorts all processes by their start time whereas ps -Ao
sorts them by PID.
ps -jef
is a shorter command, but it will output different headers.:
- USER
- PID
- PPID
- PGID
- SESS
- JOBC
- STAT
- TT
- TIME
- COMMAND
- UID
- C
- STIME
- TTY