How can I see what process are running and how to I kill them? (command line).
How can I see what process are running and how to I kill them? (command line).
|
Hi again ;)
ps -<options> To see processes, see man ps for a lot of options. ps -ef and ps -aux are used a lot. kill <pid> to kill a process. Pid being the process id. Again the manpage thingie. |
'ps' with various options - a,u,x are useful.
'kill $PID' or 'killall $NAME' |
To kill all the processes of a particular type:
ps -ef|grep <unique text that identifies the processes>|grep -v grep|awk '{print $2}'|xargs kill So, if you wanted to kill all the mozilla processes on a box you would use ps -ef|grep mozilla|grep -v grep|awk '{print $2}'|xargs kill Of course, you can add more greps to this to make it less general. Like, ps -ef|grep someUsersName|grep mozilla|blah,blah,blah. |
top
man top ;) |
All times are GMT -5. The time now is 06:42 PM. |