I made this script for easy and quick run a update, upgrade and clean my Ubuntu through terminal. Enjoy and colaborate!
Obs.: This should work with any Linux distro.
- Create/Open the Bash_Aliases file with: sudo gedit .bash_aliases
- Create and alias for the script with: alias update='sudo ./update-and-clean.sh' *
- Give the script permission to run with chmod u+x update-and-clean.sh
- Close and open the terminal to load the .bash_aliases file e run with 'update'
You can use any alias, like "updateandclean='X'" or put the file in any directory. In this example, my file is on my user home folder.
You can also rename as ".update-and-clean.sh" (with dot at the beggining) to hide it inside the directory.