Viewing processes: ps, pgrep, top
Updated July 3, 2026
A process is a running program with its own PID. You can look at processes with a few commands.
ps aux # every process on the system
ps -u student # just yours
pgrep -x sleep # PIDs of processes named exactly sleep
top # a live list, q to quitps gives a snapshot, top refreshes live, pgrep finds a PID by name to feed into kill.
Used in
You need this in the lesson Processes and jobs.