Linux

Show running processes in Linux

List all processes:

ps -A

or

ps -e

 

List all processes:

top

 

List all processes:

ps aux

or

ps aux | less

a: list all processes, including other users
u: list processes executed by valid user
x: list background processes
 

List all processes for specific username:

ps -U <username>

 

List all processes for specific group:

ps -G <group_name>

 

List processes except those running as root:

ps -U root -u root -N

 

List processes as a tree:

pstree

 

Find specific process:

ps aux | grep <process_name>

 

Save the output to a file:

ps aux > <filename>