Listing Running Processes (ps)
Concept & Overview
Think of your operating system as a busy office where every employee (or running program) is assigned a unique name tag called a Process ID (PID). In Linux, we call these active programs processes, and we list them using the ps command.
- Running ps by itself only shows programs running inside your current terminal window.
- Running ps aux acts like a master office registry, listing every single active program running across the entire system, who started it, and how much CPU and memory it is using.
Why this matters: If you run ps without aux, you will only see processes running in your current terminal window (usually just bash and ps itself). You won't see background services, system processes, or programs run by other users. The aux options reveal all running processes system-wide.
ps aux to list all running processes on the laptop, and notice columns like PID, %CPU, and %MEM.Command Syntax Reference
| Command / Syntax | Description |
|---|---|
ps aux | List all running processes on the system |
Verification Objectives
These conditions will be automatically verified when you run commands inside the interactive terminal simulator:
- ○Run the "ps aux" command
Ready to complete Quest 60?
Test your skills live in the browser terminal with an emulated Linux filesystem, real-time command evaluation, and instant step-by-step hints.