Skip to content

ps

Show processes (and Services)

Often used:

Bash
ps aux

Bash
ps aux | grep tomcat

List with memory usage:

Bash
ps -o pid,user,%mem,command ax | sort -b -k3 -r

List memory usage - list 20

Bash
ps -o pid,user,%mem,command ax | sort -b -k3 -r | head -n20 | sort -bnr -k3