ps#
Process Status
Styles#
BSD Style (aux)#
Does not use a dash before options.
a: Show processes for all users.u: Display the process’s user/owner and detailed info, eg. CPU, Memory.x: Show processes not attached to a terminal TTY.w: Wide output. Use twice (-ww) for unlimited width.p: Select by process ID PID.
Dash Style (-ef)#
Standard UNIX options.
-e: Select all processes.-f: Full-format listing.-o: User-defined format.comm: Command name only.args: Command with all its arguments.- eg.
ps -ef -o pid,comm,args
-w: Wide output.-ww: Unlimited width.-p: Select by PID.