Guest User

Untitled

a guest
Jun 9th, 2025
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.48 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. clear
  4.  
  5. # Set colors
  6. RED='\033[0;31m'
  7. GREEN='\033[0;32m'
  8. YELLOW='\033[0;33m'
  9. BLUE='\033[1;36m'
  10. NC='\033[0m'
  11. echo -e "${GREEN}
  12. ███ ███ █████ ███ ██ ██ ██ ██
  13. ████ ████ ██ ██ ████ ██ ██ ██ ██
  14. ██ ████ ██ ███████ ██ ██ ██ ██ ██ ██
  15. ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
  16. ██ ██ ██ ██ ██ ████ ██████ ███████${NC}"
  17. echo -e "${GREEN}====================${NC}"
  18.  
  19. # Display the name of the distribution
  20. os_name=$(cat /etc/*release | grep PRETTY_NAME | cut -d "=" -f 2 | tr -d '"')
  21. echo -e "${GREEN}os:${NC} $os_name"
  22.  
  23. # Display username
  24. username=$(whoami)
  25. echo -e "${GREEN}user:${NC} $username"
  26.  
  27. # Display hostname
  28. hostname=$(hostname)
  29. echo -e "${GREEN}host:${NC} $hostname"
  30.  
  31. # Display RAM
  32. memory_total=$(free -m | grep Mem: | awk '{print $2}')
  33. memory_used=$(free -m | grep Mem: | awk '{print $3}')
  34.  
  35. echo -e "${GREEN}ram:${NC} $memory_total mb, used: $memory_used mb"
  36.  
  37. # Display DE or WM
  38. desktop_env=$(echo $XDG_CURRENT_DESKTOP)
  39. echo -e "${GREEN}desktop:${NC} $desktop_env"
  40.  
  41. # Display system uptime
  42. uptime=$(uptime -p)
  43. echo -e "${GREEN}uptime:${NC} $uptime"
  44.  
  45. #Display init
  46. init=$(cut -d ' ' -f 1 /proc/1/comm)
  47. echo -e "${GREEN}init:${NC} $init"
  48.  
  49. echo -e "${GREEN}====================${NC}"
Advertisement
Add Comment
Please, Sign In to add comment