Hello everyone!

We have been investing plenty of personal time and energy for many years to share our knowledge with you all. However, we now need your help to keep this blog running. All you have to do is just click one of the adverts on the site, otherwise it will sadly be taken down due to hosting etc. costs. Thank you.

You want to list all running processes and the details then you can use example below.


Top command


inanzzz$ top

Processes: 277 total, 2 running, 14 stuck, 261 sleeping, 1154 threads 10:05:29
Load Avg: 1.41, 1.42, 1.42 CPU usage: 8.80% user, 6.42% sys, 84.76% idle
SharedLibs: 12M resident, 12M data, 0B linkedit. MemRegions: 92798 total, 3171M resident, 68M private, 1458M shared.
PhysMem: 5926M used (1675M wired), 10G unused.
VM: 707G vsize, 1063M framework vsize, 32763508(0) swapins, 34121836(0) swapouts.
Networks: packets: 26225324/30G in, 16810622/2649M out. Disks: 4214577/203G read, 5759781/303G written.

PID COMMAND %CPU TIME #TH #WQ #PORT MEM PURG CMPRS PGRP PPID STATE BOOSTS %CPU_ME
46022 top 3.0 00:05.91 1 0 17 3044K 0B 0B 46022 46018 sleeping *0[1] 0.00000
46018 bash 0.0 00:00.02 1 0 15 652K 0B 0B 46018 46017 sleeping *0[1] 0.00000
46017 login 0.0 00:00.15 2 0 27 1068K 0B 0B 46017 20904 sleeping *0[9] 0.00000
46015 Google Chrom 0.0 00:00.81 11 1 88 30M 0B 0B 20899 20899 stuck *0[26] 0.00000
45996 netbiosd 0.0 00:00.08 2 1 40 2136K 0B 0B 45996 1 sleeping *0[1] 0.00000
45965 ocspd 0.0 00:00.10 5 0 61 1860K 0B 132K 45965 1 sleeping *0[1] 0.00000
45956 top 4.1 00:29.70 1/1 0 26 3012K 0B 480K 45956 41864 running *0[1] 0.00000
45954 Google Chrom 0.9 00:08.79 9 0 53 9640K 0B 10M 20899 20899 sleeping *0[7] 0.00000
45953 Google Chrom 0.5 00:08.41 12 0 97 25M+ 0B 25M 20899 20899 sleeping *0[36] 0.00000
45878 Robomongo 4.6 00:31.90 4 0 151 13M 0B 33M 45878 1 sleeping *0[123] 0.00000
45874 mongod 0.0 00:00.33 13 0 28 4096B 0B 25M 45874 41864 sleeping *0[1] 0.00000
45872 Google Chrom 0.1 00:15.43 9 0 94 10M 0B 53M 20899 20899 sleeping *0[37] 0.00000
45864 Google Chrom 0.0 00:12.83 9 0 94 3748K 0B 45M 20899 20899 sleeping *0[36] 0.00000
45863 Google Chrom 0.0 00:01.81 9 0 94 3372K 0B 56M 20899 20899 sleeping *0[36] 0.00000
45771 Google Chrom 0.5 01:03.12 9 0 94 13M+ 0B 76M 20899 20899 sleeping *0[37] 0.00000
45732 Google Chrom 0.5 01:54.37 13 0 98 49M- 0B 61M- 20899 20899 sleeping *0[38] 0.00000
45616 httpd 0.0 00:00.00 1 0 12 4096B 0B 824K 44912 44912 sleeping *0[1] 0.00000
45584 mdworker 0.0 00:02.95 4 0 63 5496K 0B 13M 45584 1 sleeping *0[1] 0.00000
45583 mdworker 0.0 00:02.27 4 0 59 6032K 0B 7820K 45583 1 sleeping *0[1] 0.00000
45572 mdworker 0.0 00:02.36 4 0 59 6532K 0B 7872K 45572 1 sleeping *0[1] 0.00000
45571 mdworker 0.0 00:02.79 4 0 59 9688K 0B 4592K 45571 1 sleeping *0[1] 0.00000
45376 MySQLWorkben 0.3 00:23.18 13 0 212 4672K 0B 89M 45376 1 sleeping *0[215] 0.00000
44921 httpd 0.0 00:04.35 1 0 12 4096B 0B 10M 44912 44912 sleeping *0[1] 0.00000
44920 httpd 0.0 00:02.43 1 0 12 4096B 0B 10M 44912 44912 sleeping *0[1] 0.00000
44919 httpd 0.0 00:02.65 1 0 12 4096B 0B 10M 44912 44912 sleeping *0[1] 0.00000
44918 httpd 0.0 00:03.17 1 0 12 4096B 0B 10M 44912 44912 sleeping *0[1] 0.00000
44917 httpd 0.0 00:03.56 1 0 12 4096B 0B 10M 44912 44912 sleeping *0[1] 0.00000
44916 httpd 0.0 00:04.96 1 0 12 4096B 0B 11M 44912 44912 sleeping *0[1] 0.00000