ps

Report a snapshot of the current processes. Useful for finding PIDs (Process IDs) and checking process status.

Synopsis

ps [options]

Core Options

aux

a = all processes, u = user oriented format, x = processes not attached to terminal.

-ef

Standard syntax to view every process.

--sort

Sort by specific column (e.g., --sort=-%mem).

Usage Examples

View All Processes

Standard way to see everything running on the system.

ps aux

Search for a Process

Find the PID of a python script.

ps aux | grep python

Sort by Memory Usage

Show top memory consumers.

ps aux --sort=-%mem | head

Sort by CPU Usage

Show top CPU consumers.

ps aux --sort=-%cpu | head

Tree View

Show process hierarchy.

ps êf
Built for builders.