1.top命令用于实时显示进程的动态
[root@dsrw ~]# top
top - 15:48:16 up 4:20, 1 user, load average: 0.03, 0.01, 0.00
Tasks: 320 total, 3 running, 317 sleeping, 0 stopped, 0 zombie
%Cpu(s): 1.5 us, 0.0 sy, 0.0 ni, 97.0 id, 0.0 wa, 1.5 hi, 0.0 si, 0.0 st
MiB Mem : 1966.1 total, 146.4 free, 919.5 used, 900.1 buff/cache
MiB Swap: 2048.0 total, 1593.5 free, 454.5 used. 872.6 avail Mem
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
2119 root 20 0 2962624 127424 44924 S 3.0 6.3 2:22.63 gnome-sh+
9 root 20 0 0 0 0 S 1.5 0.0 0:00.95 ksoftirq+
1 root 20 0 245044 8512 5196 S 0.0 0.4 0:05.83 systemd
2.free命令用于显示内存状态
[root@dsrw ~]# free
total used free shared buff/cache available
Mem: 2013272 945348 144996 8656 922928 889864
Swap: 2097148 465424 1631724
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END
请登录后查看评论内容