#! /bin/bash#the Scripts would return the system Infomation#returnhostnameand version infomation//returns host name and system version informationEcho-E"\e[31;43m/////HOSTNAME infomation *****\e[0m"hostnameuname-RCat/proc/versionEcho ""#File system disk space usage//file system disk free spaceEcho-E"\e[31;43m***** File System Disk Space usage infomation *****\e[0m"DF-hEcho ""#Idie TimeSystem and use of memory//System Idle and in-use memoryEcho-E"\e[31;43m***** Idie System and use of memory infomation *****\e[0m" FreeEcho ""#system Start Time //System Boot TimeEcho-E"\e[31;43m***** System start time infomation *****\e[0m"UptimeEcho ""#User logged on//logged-on userEcho-E"\e[31;43m***** User logged on infomation *****\e[0m"W.H.O.Echo ""#Use memory up to five processes//use up to five processes in memoryEcho-E"\e[31;43m***** use memory up to five processes infomation *****\e[0m"PS-eo%mem,%cpu,comm--Sort=-%mem |Head-N6Echo ""Echo-E"\e[1;32mdone.\e[0m"
View Linux Basic System Information