So I have an alias that I use for performing updates that cleans up old kernels and stuff. Problem is that it doesn't notify me immediately if a reboot is required afterwards. What can I use to figure this out so that I can at least print a message to the screen?
alias update='sudo apt-get update;sudo apt-get dist-upgrade;sudo apt autoremove;'
[ -f /var/run/reboot-required ]
). Also BTW, you should write a function or a script, since they're much more flexible than aliases. – wjandrea Jun 13 '17 at 17:14