Created
March 9, 2020 12:09
-
-
Save Alumniminium/284348299b1bb62c59c0ea5b3ad1d19e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "\x1B[01;91m888 888 " | |
echo "888 888 " | |
echo "888 888 " | |
echo "88888b. .d88b. 888d888 .d8888b 888888 " | |
echo "888 '88bd8P Y8b888P' 88K 888 " | |
echo "888 88888888888888 'Y8888b.888 " | |
echo "888 888Y8b. 888 d8b X88Y88b. " | |
echo "888 888 'Y8888 888 Y8P 88888P' 'Y888" | |
echo "\x1B[01;96m======================== OS INFO ========================" | |
echo " \x1B[01;94mHostname: \x1B[01;95m"`hostname` | |
echo " \x1B[01;94mOS: \x1B[01;95m"`cat /etc/os-release | grep PRETTY_NAME | awk -F '=' '{print $2}'` | |
echo " \x1B[01;94mKernel: \x1B[01;95m"`uname -r` | |
echo "" | |
echo "\x1B[01;96m======================== HW INFO ========================" | |
echo " \x1B[01;94mCPU Cores: \x1B[01;95m"`grep -c 'processor' /proc/cpuinfo` | |
echo " \x1B[01;94mMemory: \x1B[01;95m"`free -mht| awk '/Mem/{print " \t\tTotal: " $2 "\tFree: " $6}'` | |
echo " \x1B[01;94mSwap: \x1B[01;95m"`free -mht| awk '/Swap/{print " \t\t\tTotal: " $2 "\tFree: " $4}'` | |
echo " \x1B[01;94mDisk Used: \x1B[01;95m"`df -h /dev/vda2 | grep '/dev' | awk -F ' ' '{print $5}'` | |
echo "" | |
echo " type 'screen -RR' if you want a screen session" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment