You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
685 B
25 lines
685 B
2 years ago
|
#! /bin/bash
|
||
|
echo "OS Type:" $(uname -o)
|
||
|
echo "|"
|
||
|
echo "OS Name:" $(cat /etc/os-release | grep ^VERSION= | cut -f2 -d\")
|
||
|
echo "|"
|
||
|
echo "OS Version:" $(cat /etc/os-release | grep ^NAME= | cut -f2 -d\")
|
||
|
echo "|"
|
||
|
echo "Architecture:" $(uname -m)
|
||
|
echo "|"
|
||
|
echo "Kernel Release:" $(uname -r)
|
||
|
echo "|"
|
||
|
echo "Load Average: $(cat /proc/loadavg | cut -f 1-3 -d ' ')"
|
||
|
echo "|"
|
||
|
echo "System Uptime:" $(uptime -p | cut -f 2- -d " ")
|
||
|
echo "|"
|
||
|
echo "Hostname:" $HOSTNAME
|
||
|
echo "|"
|
||
|
echo "External IP:" $(wget http://ipinfo.io/ip -qO -)
|
||
|
echo "|"
|
||
|
echo -e "Logged In users:\n$(who)"
|
||
|
echo "|"
|
||
|
echo -e "Memory Usages(Mo):\n$(free -m | grep -v +)"
|
||
|
echo "|"
|
||
|
echo -e "Disk Usages:\n$(df -h| grep '/dev/md2')"
|