linux系统监控shell脚本
代码如下,实现了Linux系统的一些常见的监控变量,分享给大家@.·.@ #=============================# #Filename=system_monitor.sh #Author:foxsir #Date:2016-02-15 #=============================# #!/bin/sh clear if [[ $# -eq 0 ]] then #Define Variable Reset_terminal Reset_terminal=$(tput sgr0) #Check OS Type OS=$(uname -o) echo -e '\E[36m' "Operating System Type :" $Reset_terminal $OS #Check OS Realease Version And Name OS_name=$(cat /etc/issue | grep "Server") echo -e '\E[36m' "Operating System Realease Version :" $Reset_terminal $OS_name #Check Architecture Architecture=$(uname -m) echo -e '\E[36m' "Operating System