我需要一个命令来获取要在脚本上使用的 linux 系统平均负载的输出。
我所知道的命令uptime,但使用该命令我得到的所有的东西,我不想,如:12:09:31 up 20:57, 2 users, load average: 0.12, 0.10, 0.09。
uptime
12:09:31 up 20:57, 2 users, load average: 0.12, 0.10, 0.09
如何仅获得输出的平均负载?
像这样:(load average: 0.11例如)
load average: 0.11
谢谢你的帮助,对不起我可怜的英语。
linux load uptime
linux ×1
load ×1
uptime ×1