ps

Snapshot of running processes. Use custom columns and sorting for quick diagnosis.

Synopsis

ps [options]

Core Options

aux

Show all processes (BSD style).

-ef

Show full format (SysV style).

-o

Custom output columns.

-p PID

Show specific PID.

--sort

Sort by a column (e.g., -%cpu).

Usage Examples

List All

Show all processes with user and CPU usage.

ps aux

Full Format

Show processes with PPID and start time.

ps -ef

Custom Columns

Show PID, CPU, MEM, and command.

ps -o pid,ppid,%cpu,%mem,cmd -p 1234

Sort by CPU

Top CPU consumers.

ps aux --sort=-%cpu | head
Built for builders.