用python 的paramiko获取linux的 top信息 命令为: top -b -n 1 -b为 批处理模式,-n为刷新的次数 发现信息显示不全,最后man top,加一个参数w后,完全显示 top -b -n 1 -w 512 如果需要显示完整的COMMAND命令,使用top -c参数