Difference between revisions of "Ps"

From Linuxintro
imported>ThorstenStaerk
imported>ThorstenStaerk
Line 13: Line 13:
 
= See also =
 
= See also =
 
* [http://man-wiki.net/index.php/ps ps' man page]
 
* [http://man-wiki.net/index.php/ps ps' man page]
[[Special:WhatLinksHere]]
+
[[Special:WhatLinksHere/Ps]]

Revision as of 04:26, 5 October 2010

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

See also

Special:WhatLinksHere/Ps