#!/bin/bash
# Script to automatically download and install software updates for Ubuntu Linux every 24 hours and notify user
echo "This script will automatically download and install software updates for Ubuntu Linux every 24 hours and notify user"
# Update apt source list
sudo apt-get update
# Install updates
sudo apt-get upgrade -y
# Create a cron job to run this script every 24 hours
(crontab -l 2>/dev/null; echo "0 0 * * * /path/to/script/update.sh") | crontab -
# Notify user
echo "Software updates for Ubuntu Linux have been successfully installed!" | mail -s "Ubuntu Software Updates" [email protected]