Process Management

ps

Report a snapshot of current active processes.

COMMAND SYNTAX
$ ps [options]

Common Options & Flags

Option / FlagDescription
auxShow all running processes for all users with BSD syntax
-efShow full format process listing with standard syntax
-u USERList processes for specified user

Practical Command Examples

$ ps aux | grep node

Find running Node.js process IDs (PIDs).

$ ps -ef | grep python

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.