• Home
  • About
  • Archives
Skip to content

Pario TechnoBlob

A chronological documentation test project, nothing serious, really!

  • Home
  • About
  • Archives

List processes in a hierarchy

Posted on 9. June 200714. November 2007 by Hans-Henry Jakobsen
ps -e -o pid,args --forest

List processes by % cpu usage

ps -e -o pcpu,cpu,nice,state,cputime,args --sort pcpu | sed '/^ 0.0 /d'

List processes by mem usage

ps -e -orss=,args= | sort -b -k1,1n | pr -TW$COLUMNS

List info for particular process IDs

ps -p 1,2

Share this:

  • Twitter
  • Facebook
Posted in: Linux, ScriptingTagged: bash, sed, sort

Post navigation

Previous: Text manipulation using sed
Next: A-Z index of the linux Bash
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy

Search

Apache apt-get awk backup basename bash CentOS convert csv Database dd Debian esxi5 Etch EXIF Fedora find Gentoo grep howto html imagemagick iptables iso jhead JPG mount MySQL Nikon nmap perl PHP Postfix RedHat rename rhel5 sed sftp SMTP sort ssh Ubuntu VMware Wordpress Zimbra

  • Backup
  • Linux
  • Misc
  • Network
  • Photo etc
  • Scripting
  • Security
  • Virtualization
  • Web
  • Windows
Resume X WordPress Theme by Wp Theme Space