How to get all running processes in Linux?

Linux OS Topics
Post Reply
User avatar
Saman
Lieutenant Colonel
Lieutenant Colonel
Posts: 828
Joined: Fri Jul 31, 2009 10:32 pm
Location: Mount Lavinia

How to get all running processes in Linux?

Post by Saman » Tue Jun 01, 2010 2:35 pm

You need to use the ps command. It provide information about the currently running processes, including their process identification numbers (PIDs). Both Linux and UNIX support ps command to display information about all running process. ps command gives a snapshot of the current processes. If you want a repetitive update of this status, use top command.

Code: Select all

ps aux | less
Extra options:

Code: Select all

A: select all processes
a: select all processes on a terminal, including those of other users
x: select processes without controlling ttys
Mysoogal
Captain
Captain
Posts: 223
Joined: Thu Dec 17, 2009 7:15 am
Location: Planet VPS

Re: How to get all running processes in Linux?

Post by Mysoogal » Fri Oct 01, 2010 11:45 pm

in ubuntu, you can just type
top


and will list all the PID and running programs

to shutdown any program running

copy PID number and type in terminal
kill 33565
, just as example :D
Post Reply

Return to “Linux”