Inspecting Processes

Viewing Processes

CommandPurpose
ps auxSnapshot of all processes (BSD style)
ps -efSnapshot (System V style)
top / htopLive, interactive view
pgrep -a nginxFind PIDs by name
pstreeProcess hierarchy
uptimeLoad averages

Load average shows demand over 1, 5, 15 minutes. A value roughly equal to your CPU count means fully loaded.

$ ps -ef | head -2
UID   PID  PPID  C STIME TTY   TIME     CMD
root    1     0  0 09:00 ?     00:00:02 /sbin/init
Exam tip: PID 1 is init/systemd. Every process has a parent (PPID); orphans are re-parented to PID 1.