How do I count how many processes are running in Linux?

Originally published at: https://www.cyberciti.biz/faq/how-do-i-count-how-many-processes-are-running-in-linux/

How do I see how many processes are running in Linux? How can count all running processes in Linux?

Here’s a way to get a sorted list of number of processes per user
ps kuser -eouser= | uniq -c | sort -k1,1n