What does ps do?
ps shows the running processes. ps aux lists every process of every user with its CPU and memory use.
ps [options]
Most useful options
| Option | What it does |
|---|---|
| aux | all processes, all users, with details |
| -ef | full list (System V style) |
| --forest | show parent/child tree |
ps examples
In security work
Look for odd process names, processes run from /tmp, or reverse shells (bash -i) during incident response.
Questions about ps
How do I find the PID of a program?
ps aux | grep name, or pgrep name.