博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
043-无限循环菜单
阅读量:6658 次
发布时间:2019-06-25

本文共 633 字,大约阅读时间需要 2 分钟。

hot3.png

#!/bin/bashwhile true doclearecho "---------------------"echo "1.Display CPU info"echo "2.Display system load:"echo "3.Display Mem and swap info:"echo "4.Display filesystem mount info:"echo "5.Exit Program:"echo "---------------------"read -p "Please select an iterm(1-5):" Usscase $Uss in  1)echo $(cat /proc/cpuinfo)read -p "Please Enter to continue:";;2)echo $(uptime)read -p "Please Enter to continue:";;3)echo $(free)read -p "Please Enter to continue:";;4)echo "$(df -h)"read -p "press Enter to continue:";;5)exit;;*)read -p "Please select 1-5, Press Enter to continue:"esacdone

 

转载于:https://my.oschina.net/u/3635512/blog/1535832

你可能感兴趣的文章
零基础却想做一个程序员,到底如何学习呢?
查看>>
PyCharm设置Python版本
查看>>
理解Activity的启动模式
查看>>
Spring概述
查看>>
突破技术管理,IT人中年危机变契机
查看>>
recyclerView 遇到IndexOutOfBoundsException 及解决
查看>>
微信支付教程系列之现金红包
查看>>
13.Django之模板初探(一)
查看>>
mysql主从服务器的搭建
查看>>
CentOS软RAID配置与维护(转载)
查看>>
php判断本周,上周与上上周的日期
查看>>
/etc/passwd shadow 每字段代表含义
查看>>
centos7上使用git命令把代码放到github上
查看>>
mybatis中resultMap与resultType的使用说明
查看>>
Base64
查看>>
防火墙简介
查看>>
win8.1 U盘\硬盘安装(支持UEFI平台,支持GPT分区安装)
查看>>
3、MySQL的数据类型介绍
查看>>
linux文件类型
查看>>
[ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
查看>>