Viewing
bash
ps aux # every process (BSD style: %CPU %MEM STAT)
ps aux --sort=-%cpu | head # top by CPU
ps aux --sort=-%mem | head # top by memory
ps -ef # every process (UNIX style, with PPID)
ps -eo pid,ppid,user,stat,%cpu,%mem,etime,comm --sort=-%cpu | head # custom columns
ps -p 1234 -o pid,etime,rss,cmd # a specific process
pgrep -a nginx # PIDs by name (+ command line)
pstree -p # the process tree, with PIDs
top # interactively (P=by CPU, M=by memory, k=kill, 1=per-core)
htop # nicer, if installed