Created
April 21, 2018 14:07
-
-
Save atirut-w/8ec46a044effbf9b94f4e90aeced877d to your computer and use it in GitHub Desktop.
This file contains 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 | |
#This is a simple script that will give you a summary of your system | |
#You can use this to make your own software or a piece of code but pls credit me | |
#if you're going to publish it | |
# | |
#Made by Wattana Gaming | |
#Sample code by Tecmint.com | |
#Color sheet | |
white='\033[0m' | |
black='\033[30m' | |
green='\033[32m' | |
red='\033[31m' | |
yellow='\033[93m' | |
#Text presets | |
warning='\033[1;4;91m' | |
yellow_bold='\033[93;1m' | |
#Just a placeholder until i know how to decapitalize the shouting USER variable | |
#Greetings! | |
echo -e "Hello ${green}${USER}! ${white}" | |
echo -e "This is your system summary: \n" | |
#Some basic info | |
echo -e "${green}****Hostname information****${white} " | |
hostnamectl | |
#You already know what this echo does arent you? | |
echo "" | |
#Disk space usage | |
echo -e "${green}****Disk usage**** ${white} " | |
df -h | |
echo "" | |
#System uptime and load | |
echo -e "${green}****System uptime and load****${white} " | |
uptime | |
echo "" | |
echo -e "${warning}TOP 5 PROCESSES AS FAR AS MEMORY USAGE IS CONCERNED:${white}" | |
ps -eo %mem,%cpu,comm --sort=-%mem | head -n 6 | |
echo "" | |
echo "Info script by Wattana Gaming" | |
echo "Sample code by Tecmint.com" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment