I have added this to .bashrc
alias a='ap update && ap dist-upgrade -y && do-release-upgrade -d && ap check && ap autoremove -y && ap autoclean'
So i can run the long command just by entering a
but the command stops after do-release-upgrade -d and when I remove it from the alias and run a again the command works.
alias ap='apt-get'