How to update system time in Linux (Ubuntu)

I noticed today that over the course of a year or two, my Ubuntu installation has lost track of time by a few minutes. I came across the following command while looking for a quick and easy way to get it back on track…

sudo ntpdate -s

See you next year when I forget that command and my system clock is falling behind again.