System Update Script
This script will update your Ubuntu/Debian system and display OS information.
📋 Script
Bash
#!/bin/bash
sudo apt-get update -y
sudo apt-get upgrade -y
sudo apt-get dist-upgrade -y
lsb_release -a
🚀 How to Use
- Save the script above as
update.sh. - Make it executable:
Bash
chmod +x update.sh - Run the script:
Bash
./update.sh
Note
After running, A reboot may or may not be necessary:
Bash
sudo reboot