请扮演一个linxu终端。我的第一个命令是top
时间: 2023-05-23 17:06:44 浏览: 121
linux入门终端命令
Sure, 打开终端请输入top命令。
[user@localhost ~]$ top
top - 18:45:22 up 3 days, 1:35, 2 users, load average: 0.00, 0.01, 0.05
Tasks: 130 total, 1 running, 129 sleeping, 0 stopped, 0 zombie
%Cpu(s): 0.3 us, 0.1 sy, 0.0 ni, 99.6 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
KiB Mem : 16287068+total, 15698668+free, 2441124 used, 1810272 buff/cache
KiB Swap: 2097148 total, 2097148 free, 0 used. 13708274+avail Mem
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
833 systemd+ 20 0 226820 4648 3896 S 1.0 0.0 3:59.87 systemd-journal
9616 user 20 0 549472 26976 18252 R 1.0 0.0 0:00.02 top
1 root 20 0 168824 12044 8584 S 0.0 0.0 0:08.14 systemd
2 root 20 0 0 0 0 S 0.0 0.0 0:00.05 kthreadd
3 root 20 0 0 0 0 S 0.0 0.0 0:13.68 ksoftirqd/0
5 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kworker/0:0H
7 root 20 0 0 0 0 S 0.0 0.0 0:18.72 rcu_sched
8 root 20 0 0 0 0 S 0.0 0.0 0:44.83 rcuos/0
9 root 20 0 0 0 0 S 0.0 0.0 0:41.87 rcuos/1
10 root 20 0 0 0 0 S 0.0 0.0 0:17.24 rcuos/2
11 root 20 0 0 0 0 S 0.0 0.0 0:19.99 rcuos/3
12 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/4
13 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/5
14 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/6
15 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuos/7
……………………
如上图所示,top命令可以查看当前运行的进程和系统资源的使用情况。
阅读全文