In this short guide we will show you how to change timezone on Ubuntu 20.04 Focal Fossa Linux server/desktop by using both the graphical user interface (GUI) and the Linux command line.
In this tutorial you will learn:
- How to change timezone from command line
- How to change timezone using GUI
Software Requirements and Conventions Used
Category | Requirements, Conventions or Software Version Used |
---|---|
System | Installed or upgraded Ubuntu 20.04 Focal Fossa |
Software | N/A |
Other | Privileged access to your Linux system as root or via the sudo command. |
Conventions |
# – requires given linux commands to be executed with root privileges either directly as a root user or by use of sudo command$ – requires given linux commands to be executed as a regular non-privileged user |
Change timezone on Ubuntu 20.04 step by step instructions
Change Timezone from command line
- Check your current time zone settings:
$ timedatectl Local time: Thu 2019-12-05 23:22:43 UTC Universal time: Thu 2019-12-05 23:22:43 UTC RTC time: Thu 2019-12-05 23:22:43 Time zone: Etc/UTC (UTC, +0000) System clock synchronized: no NTP service: inactive RTC in local TZ: no
- List available time zones. Te following command will list all available time zones on you Ubuntu 20.04 Server/Desktop system:
$ timedatectl list-timezones
Use the
grep
command to narrow down the search. In the example below this command will produce a list of all available time zones inAustralia
:$ timedatectl list-timezones | grep Australia Australia/Adelaide Australia/Brisbane Australia/Broken_Hill Australia/Currie Australia/Darwin Australia/Eucla Australia/Hobart Australia/Lindeman Australia/Lord_Howe Australia/Melbourne Australia/Perth Australia/Sydney
- Set time zone:
$ sudo timedatectl set-timezone Australia/Sydney
- All done. Confirm the correct time zone settings:
$ timedatectl Local time: Fri 2019-12-06 10:26:13 AEDT Universal time: Thu 2019-12-05 23:26:13 UTC RTC time: Thu 2019-12-05 23:26:13 Time zone: Australia/Sydney (AEDT, +1100) System clock synchronized: no NTP service: inactive RTC in local TZ: no