Melihat Proses Yang Sedang Berjalan di Linux
Untuk melihat proses yang berjalan di sistem operasi linux bisa menggunakan perintah berikut di terminal.
$top
lalu tekan enter
akan muncul tampilan seperti berikut
top - 08:22:57 up 5:22, 1 user, load average: 0.08, 0.19, 0.18
Tasks: 149 total, 1 running, 148 sleeping, 0 stopped, 0 zombie
%Cpu(s): 0.2 us, 0.2 sy, 0.0 ni, 90.5 id, 9.2 wa, 0.0 hi, 0.0 si, 0.0 st
MiB Mem : 1983.1 total, 260.3 free, 431.0 used, 1291.8 buff/cache
MiB Swap: 2048.0 total, 2046.5 free, 1.5 used. 1217.6 avail Mem
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
739 redis 20 0 51700 4624 3320 S 0.3 0.2 0:46.06 redis-server
1055 root 20 0 23388 9632 6396 S 0.3 0.5 0:08.16 litespeed
1 root 20 0 103132 11676 8376 S 0.0 0.6 0:05.47 systemd
2 root 20 0 0 0 0 S 0.0 0.0 0:00.00 kthreadd
3 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 rcu_gp
4 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 rcu_par_gp
6 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 kworker/0:0H-kblockd
8 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 mm_percpu_wq
9 root 20 0 0 0 0 S 0.0 0.0 0:00.41 ksoftirqd/0
10 root 20 0 0 0 0 I 0.0 0.0 0:12.39 rcu_sched
11 root rt 0 0 0 0 S 0.0 0.0 0:00.11 migration/0
12 root -51 0 0 0 0 S 0.0 0.0 0:00.00 idle_inject/0
14 root 20 0 0 0 0 S 0.0 0.0 0:00.00 cpuhp/0
15 root 20 0 0 0 0 S 0.0 0.0 0:00.00 cpuhp/1
16 root -51 0 0 0 0 S 0.0 0.0 0:00.00 idle_inject/1
17 root rt 0 0 0 0 S 0.0 0.0 0:00.19 migration/1
18 root 20 0 0 0 0 S 0.0 0.0 0:00.35 ksoftirqd/1
20 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 kworker/1:0H-kblockd
21 root 20 0 0 0 0 S 0.0 0.0 0:00.00 kdevtmpfs
22 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 netns
23 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcu_tasks_kthre
24 root 20 0 0 0 0 S 0.0 0.0 0:00.00 kauditd
25 root 20 0 0 0 0 S 0.0 0.0 0:00.01 khungtaskd
26 root 20 0 0 0 0 S 0.0 0.0 0:00.00 oom_reaper
27 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 writeback
28 root 20 0 0 0 0 S 0.0 0.0 0:00.00 kcompactd0
29 root 25 5 0 0 0 S 0.0 0.0 0:00.00 ksmd
30 root 39 19 0 0 0 S 0.0 0.0 0:00.00 khugepaged
77 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 kintegrityd
78 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 kblockd
79 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 blkcg_punt_bio
80 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 tpm_dev_wq
81 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 ata_sff
82 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 md
83 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 edac-poller