This is a short list of commands that I commonly use to install and update the server that runs this blog.
Upgrading
I tend to upgrade all software every couple of weeks and this lists helps me remember the individual steps.
Upgrade packages
sudo apt-get update
sudo apt-get upgradeCheck if we need to reboot
ls /var/run/reboot-requiredReboot
sudo shutdown -r nowInstalling
When installing a new server, I usually set up some Netherlands/Dutch specific things.
Set time zone
timedatectl set-timezone Europe/AmsterdamInstall locales
sudo locale-gen nl_NL
sudo locale-gen nl_NL.UTF-8
sudo update-localeMisc
This is one of the things I regularly use on my working machine.
List programs using port 80
lsof -i -P -n | grep LISTEN | grep 80