28.05.2013 Views

LOA HackLab - Autistici

LOA HackLab - Autistici

LOA HackLab - Autistici

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

70 C5 Puntiamo più in alto<br />

$ ps -AH o user,pid,pcpu,rss,cmd<br />

USER PID %CPU RSS CMD<br />

root 1 0.0 64 init [2]<br />

root 2 0.0 0 [kflushd]<br />

root 3 0.0 0 [kupdate]<br />

root 4 0.0 0 [kpiod]<br />

root 5 0.0 0 [kswapd]<br />

daemon 84 0.0 0 [portmap]<br />

root 152 0.0 208 /sbin/syslogd<br />

root 154 0.0 0 [klogd]<br />

root 180 0.0 632 /usr/sbin/named<br />

root 189 0.0 0 [rpc.statd]<br />

root 196 0.0 0 [lockd]<br />

root 197 0.0 0 [rpciod]<br />

root 220 0.0 0 [inetd]<br />

daemon 283 0.0 52 /usr/sbin/atd<br />

root 286 0.0 160 /usr/sbin/cron<br />

root 326 0.0 0 [getty]<br />

root 327 0.0 0 [getty]<br />

root 328 0.0 0 [getty]<br />

tx0 435 0.0 548 -bash<br />

tx0 500 0.1 2976 /usr/bin/vim -o corsoUnix.tex shell.tex<br />

tx0 553 0.0 804 ps -AH o user,pid,pcpu,rss,cmd<br />

tx0 542 0.1 1216 -bash<br />

$<br />

Abbiamo omesso il tempo impiegato dai processi e la tty alla quale i processi sono<br />

collegati, mentre abbiamo aggiunto la percentuale di cpu usata e il nome dell’utente<br />

proprietario del processo e la dimensione residente dei processi (RSS). Inoltre abbiamo<br />

richiesto la command line completa anziché il solo nome dei processi.<br />

In conclusione il miglior consiglio che vi possiamo dare è consultare la man page di ps<br />

e fare un buon numero di sperimentazioni in materia.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!