Pagina 1 di 1
Processi & kill
Inviato: lun 9 gen 2006, 13:11
da zenigata
Ciao a tutti!
Come posso visualizzare le autorizzazioni di ogni singolo processo di sistema?
Questo mi serve per capire quale utente potrebbe in caso effettuare il kill del processo oppure sapere chi è il "proprietario" del processo....
Devo usare ps? In caso, con quale opzione aggiuntiva?
Grazie mille!
Ciaoooo!
Inviato: lun 9 gen 2006, 13:39
da strummer
ps -aux
Inviato: lun 9 gen 2006, 14:05
da Paoletta
strummer ha scritto:ps -aux
senza trattino! inoltre c'è anche top
Inviato: lun 9 gen 2006, 14:23
da strummer
perchè senza trattino?
funziona uguale!
Inviato: lun 9 gen 2006, 14:32
da gallows
Poi c'è anche "lsof" che è parecchio fico.
Inviato: lun 9 gen 2006, 15:05
da Salvo
se leggi "man ps" puoi vedere che "ps -aux" è diverso da "ps aux"
Inviato: lun 9 gen 2006, 15:23
da strummer
nel man del ps ho trovato:
" Le opzioni sulla riga di comando possono essere precedute opzionalmente da un '-', ma non e necessario."
però ho notato una differenza nel campo STAT del processo di amule
ciao
Inviato: lun 9 gen 2006, 15:56
da Salvo
Note that "ps -aux" is distinct from "ps aux". The POSIX and UNIX standards require that "ps -aux" print all processes owned by a user named "x", as
well as printing all processes that would be selected by the -a option. If the user named "x" does not exist, this ps may interpret the command as
"ps aux" instead and print a warning. This behavior is intended to aid in transitioning old scripts and habits. It is fragile, subject to change, and
thus should not be relied upon.
Inviato: lun 9 gen 2006, 17:17
da Paoletta
se provo a fare ps -aux l'output è:
Codice: Seleziona tutto
Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html
seguita poi dall'elenco dei processi
Inviato: lun 9 gen 2006, 17:39
da strummer
ah si?? ...mah strano?!
a me funzionano tutti e due e senza warning........ bho!!!
ciao