Advertisement
Guest User

Command_runner_toolbar

a guest
Mar 24th, 2025
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.48 KB | Source Code | 0 0
  1. #!/bin/bash
  2.  
  3. # Get system information
  4. UPTIME=$(awk '{print int($1/3600) ":" int(($1%3600)/60)}' /proc/uptime)
  5. RAM_USED=$(free -h | awk '/Mem:/ {print $3 "/" $2}')
  6. CPU_USAGE=$(top -bn1 | grep 'Cpu(s)' | awk '{print 100 - $8"%"}')
  7. DISK_USAGE=$(df -h / | awk 'NR==2 {print $3 "/" $2 " used"}')
  8. CPU_TEMP=$(exec sensors | grep 'temp1' | awk 'NR==2{print $2}')
  9. # Display results
  10. echo "⌚️$UPTIME  📝️: $RAM_USED  🧠️: $CPU_USAGE  💾️: $DISK_USAGE  🌡️: ${CPU_TEMP//+}"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement