How to set the Timezone on Ubuntu

change timezone ubuntu 18.04 20.04 22.04

Ubuntu is a popular Linux distribution that is widely used by many users around the world. One of the important settings that you may want to change on your Ubuntu system is the timezone. In this article, we will show you how to set the timezone on Ubuntu.

What is the Timezone?

The timezone is the time zone that your region follows. It determines the local time and also the time difference between different time zones. The timezone is an important setting that affects how your computer keeps time and also how your computer displays the time.

How to Set the Timezone on Ubuntu

To set the timezone on Ubuntu, you can use the timedatectl command. The timedatectl command is a simple and easy-to-use command-line utility that allows you to manage the timezone settings on your Ubuntu system.

Here are the steps to set the timezone on Ubuntu:

  1. Open a terminal window on your Ubuntu system.
  2. List Available Timezones

Ubuntu comes with a list of available timezones, and you can see a list of them by running the following command:

$ timedatectl list-timezones
  1. Type the following command to set the timezone:
$ timedatectl set-timezone <timezone>

Replace <timezone> with the timezone that you want to set. For example, if you want to set the timezone to Africa/Casablanca, you would type:

$ timedatectl set-timezone Africa/Casablanca
  1. Press Enter to confirm the change.
  2. Type the following command to verify the timezone:
$ timedatectl info

This command will display the current timezone and other relevant information about the timezone settings on your Ubuntu system.

Conclusion

Setting the timezone on Ubuntu is a simple process that can be done using the timedatectl command. Whether you are travelling to a different time zone or just want to change the timezone for other reasons, you can easily set the timezone on your Ubuntu system using the steps outlined above.

LEAVE A COMMENT