My server administration cheat sheet

This is a short list of commands that I commonly use to install and update the server that runs this blog.


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 upgrade

Check if we need to reboot

ls /var/run/reboot-required


sudo shutdown -r now


When installing a new server, I usually set up some Netherlands/Dutch specific things.

Set time zone

timedatectl set-timezone Europe/Amsterdam

Install locales

sudo locale-gen nl_NL
sudo locale-gen nl_NL.UTF-8
sudo update-locale


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

Comments (0)

Got a question? Liked the article or got a suggestion? Leave a comment to let us know.