⌘K
Options (3)
-u, --userbooleanList all processes of the current user in extra full format
Example:
ps {{[-u|--user]}} $(id {{[-u|--user]}}) -F-o, --formatbooleanGet the parent PID of a process
Example:
ps {{[-o|--format]}} ppid= {{[-p|--pid]}} {{pid}}-p, --pidbooleanGet the parent PID of a process
Example:
ps {{[-o|--format]}} ppid= {{[-p|--pid]}} {{pid}}Examples (7)
List all running processes
ps auxList all running processes including the full command string
ps auxwwSearch for a process that matches a string (the brackets will prevent `grep` from matching itself)
ps aux | grep [s]tringList all processes of the current user in extra full format
ps [-u|--user] $(id [-u|--user]) -FList all processes of the current user as a tree
ps [-u|--user] $(id [-u|--user]) fGet the parent PID of a process
ps [-o|--format] ppid= [-p|--pid] pidSort processes by memory consumption
ps --sort sizemade by @shridhargupta | data from tldr-pages