Ps
From Linuxintro
Revision as of 04:26, 5 October 2010 by imported>ThorstenStaerk (→See also)
ps is a command to list all processes. You can invoke it like this:
ps ps -A ps -ef ps -auxf
Usecases
- Show all running processes:
ps auxf | grep -E "^[^ ]+ +[^ ]+ +[^ ]+ +[^ ]+ +[^ ]+ +[^ ]+ +[^ ]+ +R"
- Show the top cpu-consuming processes:
ps -eo pcpu,pid,user,args | sort -k 1 -r | head -10