How to Change / Set the System Timezone on Ubuntu 20.04
Table of Contents
Step 1. Open a Terminal Session
If you're using an Ubuntu laptop or desktop, you can press
Ctrl + Alt + T on your keyboard to open a new terminal window. If you're using a remote Ubuntu server, you can connect using SSH to open a new terminal session.
Ubuntu uses tz database timezones. You can use the following command to view timezones available on your system:
or consult Wikipedia's list of timezones to choose the timezone you want.
Now let's use the timezone name you selected in the previous step to set the timezone using the
timedatectl set-timezone command with
sudo (administrator privileges). If the command asks you for a password, you can enter your Ubuntu password.
For example, if you selected
Or if you selected
You can verify your change by running the
timedatectl command with no arguments and no
You should see output similar to the following:
You've now set the system timezone on your Ubuntu machine.