Processo - listar e matar

Listar processos

 

ps e

 

3623  ?        0:00 firefox

3223  ?        0:00 gsmedit

3445  pts/1    0:00 apdt

 

 

liste os processos com diretorio

 

ps -ef

 

junior    3623  0.0  0.6 943596 24780 ?        Sl   15:00   0:00 /opt/google/chr

junior    3657  0.0  0.6 941824 24144 ?        Sl   15:00   0:00 /opt/google/chr

junior    3683  1.4  3.9 1073140 157600 ?      Sl   15:00   0:07 /opt/google/chr

 

 

Primeiro liste os processos

 

ps aux

 

junior    3623  0.0  0.6 943596 24780 ?        Sl   15:00   0:00 /opt/google/chr

junior    3657  0.0  0.6 941824 24144 ?        Sl   15:00   0:00 /opt/google/chr

junior    3683  1.4  3.9 1073140 157600 ?      Sl   15:00   0:07 /opt/google/chr

root      3716  0.0  0.0      0     0 ?        S    15:00   0:00 [kworker/5:0]

root      3751  0.0  0.0      0     0 ?        S    15:01   0:00 [kworker/1:0]

root      3760  0.0  0.0      0     0 ?        S    15:02   0:00 [kworker/0:1]

root      3770  0.0  0.0      0     0 ?        S    15:03   0:00 [kworker/3:1]

root      3811  0.0  0.0      0     0 ?        S    15:04   0:00 [kworker/2:0]

root      3829  0.0  0.0      0     0 ?        S    15:06   0:00 [kworker/1:2]

root      3959  0.0  0.0      0     0 ?        S    15:07   0:00 android

junior    3962  0.0  0.0 116300  1948 pts/1    Ss   15:07   0:00 bash

root      3983  0.0  0.0 106680   464 ?        S    15:08   0:00 sleep 60

junior    3995  0.0  0.0 113392  1128 pts/1    R+   15:08   0:00 ps aux

 

para filtrar

 

ps aux | grep droid

 

root      3959  0.0  0.0      0     0 ?        S    15:07   0:00 android

 

escolha o nid e mate

 

kill -9 3959

 

processos e memoria consumida

 

top

 

roda processo

 

// rodar processo
firefox
 
// parar processo
ctrl+z
 
// listar processo
jobs
 
// rodar em background
bg 1
 
// rodar em foreground
fg 1
 
// já rodar em background
gedit &