just copy paste the following alias command and execute it:-
$ alias fup='sudo apt-get -y update;sudo apt-get -y full-upgrade;sudo apt-get -y autoremove; sudo apt-get -y autoclean'
now, execute it as
it will automatically do all its jobs.
Now, you may need to use this frequently. So for that create a file name
.bash_aliases in your HOME directory and pase this following command mentioned above as alias like:-
$ touch ./.bash_aliases
now save the file and exit, after this edit your
.bashrc file to export your .bash_aliases file for everytime you need to run this command by.
$ gedit .bashrc
now paste the following code in the end of file.
if [ -f /home/abhyam/.bash_aliases ];then
now save the file and exit and so
now you can run the command
fup to fully update and upgrade your system anytime.
The benifit of creating that .bash_aliases file is you can also create custom aliases in that file for future help and that will automatically sourced each time you open a terminal.