#!/usr/bin/bash
#Author: SHI
#Created Time: 2020/05/15
#Script Description: system information shell
PS3="请选择:"
select choice in cpu_load mem_util quit
do
case "$choice" in
cpu_load)
uptime
;;
mem_util)
free -m
;;
quit)
break
;;
*)
echo "error"
exit
esac
done
shell脚本_查看CPU、内存信息
最新推荐文章于 2023-11-14 11:02:49 发布