ps
Report a snapshot of the current processes. Useful for finding PIDs (Process IDs) and checking process status.
Synopsis
ps [options]
Core Options
auxa = all processes, u = user oriented format, x = processes not attached to terminal.
-efStandard syntax to view every process.
--sortSort by specific column (e.g., --sort=-%mem).
Usage Examples
View All Processes
Standard way to see everything running on the system.
ps auxSearch for a Process
Find the PID of a python script.
ps aux | grep pythonSort by Memory Usage
Show top memory consumers.
ps aux --sort=-%mem | headSort by CPU Usage
Show top CPU consumers.
ps aux --sort=-%cpu | headTree View
Show process hierarchy.
ps êfBuilt for builders.