Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- clear
- # Set colors
- RED='\033[0;31m'
- GREEN='\033[0;32m'
- YELLOW='\033[0;33m'
- BLUE='\033[1;36m'
- NC='\033[0m'
- echo -e "${GREEN}
- ███ ███ █████ ███ ██ ██ ██ ██
- ████ ████ ██ ██ ████ ██ ██ ██ ██
- ██ ████ ██ ███████ ██ ██ ██ ██ ██ ██
- ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
- ██ ██ ██ ██ ██ ████ ██████ ███████${NC}"
- echo -e "${GREEN}====================${NC}"
- # Display the name of the distribution
- os_name=$(cat /etc/*release | grep PRETTY_NAME | cut -d "=" -f 2 | tr -d '"')
- echo -e "${GREEN}os:${NC} $os_name"
- # Display username
- username=$(whoami)
- echo -e "${GREEN}user:${NC} $username"
- # Display hostname
- hostname=$(hostname)
- echo -e "${GREEN}host:${NC} $hostname"
- # Display RAM
- memory_total=$(free -m | grep Mem: | awk '{print $2}')
- memory_used=$(free -m | grep Mem: | awk '{print $3}')
- echo -e "${GREEN}ram:${NC} $memory_total mb, used: $memory_used mb"
- # Display DE or WM
- desktop_env=$(echo $XDG_CURRENT_DESKTOP)
- echo -e "${GREEN}desktop:${NC} $desktop_env"
- # Display system uptime
- uptime=$(uptime -p)
- echo -e "${GREEN}uptime:${NC} $uptime"
- #Display init
- init=$(cut -d ' ' -f 1 /proc/1/comm)
- echo -e "${GREEN}init:${NC} $init"
- echo -e "${GREEN}====================${NC}"
Advertisement
Add Comment
Please, Sign In to add comment