摘要: #!/bin/bash # 获取CPU使用率 cpu_usage() { echo "CPU Usage:" top -bn1 | grep "Cpu(s)" | awk '{print "User: " $2 "%, System: " $4 "%, Idle: " $8 "%"}' } # 获取 阅读全文
posted @ 2024-09-30 16:06 太阳的阳ฅ 阅读(7) 评论(0) 推荐(0) 编辑