Please consider this code:
alias fast='echo "password" | sudo -S apt-get update && sudo -S apt-get upgrade'
I have not yet had a problem using it but is it possible that if the first step, apt-get update
takes a very long time, the password would lapse by the time the apt-get upgrade
commands finally runs?