Afficher l'utilisation des process

Date 11/9/2009 18:10:00 | Sujet : Commandes Linux

La commande pour afficher les process sous Linux est bien connue de tous ou presque, c'est:

 

 

# ps -ef
UID        PID  PPID  C STIME TTY          TIME CMD
root         1     0  0 11:08 ?        00:00:00 init [3]
root         2     1  0 11:08 ?        00:00:00 [migration/0]
root         3     1  0 11:08 ?        00:00:00 [ksoftirqd/0]
root         4     1  0 11:08 ?        00:00:00 [watchdog/0]
root         5     1  0 11:08 ?        00:00:00 [migration/1]
root         6     1  0 11:08 ?        00:00:00 [ksoftirqd/1]
root         7     1  0 11:08 ?        00:00:00 [watchdog/1]
root         8     1  0 11:08 ?        00:00:00 [events/0]
root         9     1  0 11:08 ?        00:00:00 [events/1]
root        10     1  0 11:08 ?        00:00:00 [khelper]

 

 

 

 

 

 

 

 

 

 

Par contre ce n'est pas trop parlant.


La commande top est un peu mieux puisqu'elle ressemble à celle de windows.


top - 18:00:04 up  6:51,  1 user,  load average: 0.00, 0.00, 0.00
Tasks: 135 total,   1 running, 134 sleeping,   0 stopped,   0 zombie
Cpu(s):  1.5%us,  0.7%sy,  0.0%ni, 97.2%id,  0.3%wa,  0.0%hi,  0.3%si,  0.0%st
Mem:    904108k total,   684292k used,   219816k free,    69784k buffers
Swap:  1835000k total,        0k used,  1835000k free,   349444k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
    1 root      15   0  2072  664  576 S    0  0.1   0:00.48 init
    2 root      RT  -5     0    0    0 S    0  0.0   0:00.00 migration/0
    3 root      34  19     0    0    0 S    0  0.0   0:00.00 ksoftirqd/0
    4 root      RT  -5     0    0    0 S    0  0.0   0:00.00 watchdog/0
    5 root      RT  -5     0    0    0 S    0  0.0   0:00.00 migration/1
    6 root      34  19     0    0    0 S    0  0.0   0:00.00 ksoftirqd/1
    7 root      RT  -5     0    0    0 S    0  0.0   0:00.00 watchdog/1
    8 root      10  -5     0    0    0 S    0  0.0   0:00.00 events/0
    9 root      10  -5     0    0    0 S    0  0.0   0:00.00 events/1
   10 root      10  -5     0    0    0 S    0  0.0   0:00.00 khelper
   11 root      11  -5     0    0    0 S    0  0.0   0:00.00 kthread
   15 root      11  -5     0    0    0 S    0  0.0   0:00.00 kblockd/0
   16 root      10  -5     0    0    0 S    0  0.0   0:00.00 kblockd/1
   17 root      10  -5     0    0    0 S    0  0.0   0:00.00 kacpid
  124 root      15  -5     0    0    0 S    0  0.0   0:00.00 cqueue/0





Cet article provient de Asterisk AGMP
http://asterisk.agmp.org

L'adresse de cet article est :
http://asterisk.agmp.org/modules/news/article.php?storyid=10