ps
Report a snapshot of current active processes.
Common Options & Flags
| Option / Flag | Description |
|---|---|
| aux | Show all running processes for all users with BSD syntax |
| -ef | Show full format process listing with standard syntax |
| -u USER | List processes for specified user |
Practical Command Examples
Find running Node.js process IDs (PIDs).
List Python processes with full path and parent PID.
Production Real-World Use Case
Finding rogue processes consuming system resources or verifying background server execution.
Common Mistakes
- ✕Not recognizing that grep itself will appear in ps aux | grep output.
Security Considerations
Inspect processes running as root to prevent privilege escalation exploits.