ps
Snapshot of running processes. Use custom columns and sorting for quick diagnosis.
Synopsis
ps [options]
Core Options
auxShow all processes (BSD style).
-efShow full format (SysV style).
-oCustom output columns.
-p PIDShow specific PID.
--sortSort by a column (e.g., -%cpu).
Usage Examples
List All
Show all processes with user and CPU usage.
ps auxFull Format
Show processes with PPID and start time.
ps -efCustom Columns
Show PID, CPU, MEM, and command.
ps -o pid,ppid,%cpu,%mem,cmd -p 1234Sort by CPU
Top CPU consumers.
ps aux --sort=-%cpu | headBuilt for builders.