Privacy Policy
© 2025 linux101.dev

ps Command Cheatsheet

The ps (process status) command displays a snapshot of the currently running processes. It's a fundamental tool for monitoring and troubleshooting.

Common Usage

CommandDescription
psShows a snapshot of your own processes (in the current terminal).
ps auxDisplays all running processes on the system in a detailed, user-oriented format.
  • a: shows processes for all users.
  • u: shows a user-oriented format.
  • x: shows processes without a controlling terminal.
ps -efDisplays all processes in a full-format listing, which is a common alternative to ps aux.
  • -e: selects all processes.
  • -f: shows a full format listing.

Filtering and Combining

You can combine ps with other commands to filter results and find specific processes.

# Find a specific process by name (e.g., 'nginx')
ps aux | grep nginx

# Find a process by its PID
ps -p [PID]

# View process tree to see parent-child relationships
ps -ef --forest