我正在寻找一种方式来记录和图形显示cpu和RAM使用linux进程随着时间的推移。由于找不到简单的工具,所以(我尝试过zabbix和munin,但是安装失败),所以我开始编写一个shell脚本。脚本文件通过awk解析top命令的输出,并登录到csv文件中。它
#!/bin/sh
#A script to log the cpu and memory usage of <e
假设我在文本文件中有如下(cat cmdlist.txt)命令列表:-lshwawk现在,我想分别通过whatis cut、whatis lshw等获取有关该命令的简单信息cut (1) - remove sections from each line of filestop(1) - display Linux processes
awk