CentOS7 命令

  • top

M:按照内存使用率排序

  PID USER      PR  NI    VIRT    RES    SHR S %CPU %MEM     TIME+ COMMAND
26657 mysql     20   0 1414464 406584  16760 S  0.0 21.6   0:09.74 mysqld
 1781 root      20   0 2072456  67188   3484 S  0.0  3.6  64:43.85 java
22817 root      20   0  705252  47664   1996 S  0.0  2.5   2:13.09 dockerd
 2327 root      20   0  491420  25344   1460 S  0.0  1.3  13:44.57 containerd

E:改变内存显示单位

top - 21:48:02 up 11 days, 12:14,  1 user,  load average: 0.02, 0.04, 0.05
Tasks:  69 total,   2 running,  67 sleeping,   0 stopped,   0 zombie
%Cpu(s):  0.7 us,  0.0 sy,  0.0 ni, 99.3 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
GiB Mem :    1.796 total,    0.518 free,    0.580 used,    0.698 buff/cache
GiB Swap:    0.000 total,    0.000 free,    0.000 used.    1.030 avail Mem

e:改变下面信息单位:

  PID USER      PR  NI    VIRT    RES    SHR S %CPU %MEM     TIME+ COMMAND
26657 mysql     20   0 1414464 406584  16760 S  0.3 21.6   0:09.87 mysqld
 1781 root      20   0 2072456  67188   3484 S  0.0  3.6  64:44.08 java
22817 root      20   0  705252  47664   1996 S  0.0  2.5   2:13.09 dockerd
 2327 root      20   0  491420  25344   1460 S  0.0  1.3  13:44.63 containerd
  682 root      20   0  112876  12604    128 S  0.0  0.7   0:00.00 dhclient

你可能感兴趣的:(CentOS7 命令)