Linux ps command

Listeaza procesele ce in comanda de start a lor cuprind cuvantul polipo:
ps -C polipo -o pid,pcpu,pmem,rss,state,stat,start,time,nlwp,args
ps -C stunnel -o pid,pcpu,pmem,rss,state,stat,start,time,nlwp,args
ps -C java -o pid,pcpu,pmem,rss,state,stat,start,time,nlwp,cmd
ps -C httpd -o pid,pcpu,pmem,rss,state,stat,start,time,nlwp,cmd
ps -C php-cgi -o pid,pcpu,pmem,rss,state,stat,start,time,nlwp,cmd
Listeaza procesele userului plex:
ps -u plex -o pid,pcpu,pmem,rss,state,stat,start,time,nlwp,args
Listeaza toate procesele:
ps ax -o pid,pcpu,pmem,rss,state,stat,start,time,nlwp,args
Listeaza consumul de memorie:
ps ax --sort=rss,pcpu -o rss,pmem,pcpu,pid,comm,args

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.