Jom belajar Linux

Semak Berapa Lama Server Telah Digunakan / Uptime

Untuk semak berapa lama server Linux telah dijalankan atau uptime, gunakan command berikut;

uptime

Contoh output

13:00:55 up 140 days, 10:21,  1 user,  load average: 0.05, 0.01, 0.00

Ataupun,

top
top - 12:58:55 up 140 days, 10:19,  1 user,  load average: 0.00, 0.00, 0.00
Tasks:  73 total,   2 running,  71 sleeping,   0 stopped,   0 zombie
%Cpu(s):  0.0 us,  0.3 sy,  0.0 ni, 99.7 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
KiB Mem:   1034128 total,   752976 used,   281152 free,   156232 buffers
KiB Swap:        0 total,        0 used,        0 free,   533180 cached

  PID USER      PR  NI  VIRT  RES  SHR S  %CPU %MEM    TIME+  COMMAND
 2659 proxy     20   0 38928  13m 3480 S   0.3  1.3 140:44.81 squid3
    1 root      20   0  2296  740  636 S   0.0  0.1   2:58.37 init
    2 root      20   0     0    0    0 S   0.0  0.0   0:00.00 kthreadd
    3 root      20   0     0    0    0 S   0.0  0.0   2:18.46 ksoftirqd/0
    5 root      20   0     0    0    0 S   0.0  0.0   0:00.00 kworker/u:0
    6 root      rt   0     0    0    0 S   0.0  0.0   0:00.00 migration/0
    7 root      rt   0     0    0    0 S   0.0  0.0   1:54.06 watchdog/0
    8 root       0 -20     0    0    0 S   0.0  0.0   0:00.00 cpuset
    9 root       0 -20     0    0    0 S   0.0  0.0   0:00.00 khelper
   10 root      20   0     0    0    0 S   0.0  0.0   0:00.00 kdevtmpfs
   11 root       0 -20     0    0    0 S   0.0  0.0   0:00.00 netns
   12 root      20   0     0    0    0 S   0.0  0.0   0:29.15 sync_supers
   13 root      20   0     0    0    0 S   0.0  0.0   0:00.67 bdi-default
   14 root       0 -20     0    0    0 S   0.0  0.0   0:00.00 kintegrityd
   15 root       0 -20     0    0    0 S   0.0  0.0   0:00.00 kblockd
   17 root      20   0     0    0    0 S   0.0  0.0   0:02.89 khungtaskd
   18 root      20   0     0    0    0 S   0.0  0.0   0:00.03 kswapd0

150 comments

Jom belajar Linux

Recent Posts

Kategori