Q:

Create a destop shortcut to run sudo apt-get update -y

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

A:

I would create a file called update.sh then right click on the file and go to properties.  In there you will see a property called "Allow executing file as program" Check that tick box and save.  Now upon double clicking on the file it will now ask you to open it in the terminal and I believe your problem will now be solved. 
Goodluck

