İçeriğe geç

How to Change the Time Zone

Open the Terminal and enter the following command in order to list all the timezones of the specified zone:


$ timedatectl list-timezones | grep -i [zone]


We will use this command to list all the time zones of Europe:

$ timedatectl list-timezones | grep -i europe
Get a list of available time zones

In this example, we will be setting the time zone to Europe/Istanbul. First, let us unlink the system time with local time through the following command:

$ sudo unlink /etc/localtime

The next step is to use the following command to set a new time zone:


sudo ln -s /usr/share/zoneinfo/[Zone/TimeZone] /etc/localtime


sudo ln -s /usr/share/zoneinfo/Europe/Istanbul /etc/localtime

You can then verify the changed settings through one of the following commands:

Verify timezone change
$ timedatectl


$ ls -l /etc/localtime

How to Check the Current Time Zone

Open your Terminal application through Ubuntu Dash or through the Ctrl+Alt+T shortcut. Enter the following command in order to view information about your system’s time and time zone:

$ timedatectl
Get Current Time Zone on the Ubuntu Shell

You can also view this information by using the following command:

$ ls -l /etc/localtime
Get link target of /etc/localtime symlink


İlk Yorumu Siz Yapın

Bir cevap yazın

E-posta hesabınız yayımlanmayacak. Gerekli alanlar * ile işaretlenmişlerdir