I'm looking for help creating a shortcut to open the terminal and run
sudo apt-get update -y && sudo apt-get dist-upgrade -y && sudo apt-get autoremove -y
I'd like to see the terminal and the progress the update is making if possible.
I know I can create a cron job or set up "Unattended-upgrades" but i'd like to execute the command myself and a desktop shortcut seems ideal.
So far I have created a blank file with this code:
[Desktop Entry]
Version=1.0
Name=Update
Comment=Test the terminal running a command inside it
Exec=bash 'sudo apt-get update -y && sudo apt-get dist-upgrade -y && sudo apt-get autoremove -y'
Icon=utilities-terminal
Terminal=True
Type=Application
Categories=Application;
All that seems to happen though is the cursor spins for a while and I don't know if it has actually run the command.
Thanks
sudo chmod +x /path/to/your/file