How to List Running Processes in Linux (ps aux)

ps aux lists every running process on the system along with its resource usage, owner, and process ID.

Published October 1, 2026

ps aux prints a snapshot of every running process with its user, PID, CPU and memory use. Pipe it to grep to find a specific program.

How it works

a shows processes for all users, u gives a user-oriented format, x includes processes without a terminal.

For a live view use top or htop.

Try it

ps aux | grep nginx
root 812 0.0 0.1 nginx: master process
www 813 0.0 0.2 nginx: worker process

Practical examples

Find a process

ps aux | grep [n]ginx

Sort by memory

ps aux --sort=-%mem | head

Process tree

ps -ef --forest

By PID

ps -p 812 -o pid,ppid,cmd,%cpu,%mem

Common mistakes

  • Matching the grep process itself (use [n]ginx).
  • Reading %CPU as current load (it is average since start).
  • Killing the wrong PID.

Key takeaways

  • ps aux = all processes, snapshot.
  • Filter with grep.
  • Use top for live data.

FAQ

ps aux vs ps -ef?

Same information in BSD vs System V style.

How do I kill by name?

pkill name.

More Linux articles