How to Change Time Zone on Linux

Today's TipsMake will show you how to change the time zone on your Linux computer. You can change the time zone on any Linux distribution using the command line or command line menu depending on the Linux version. If you are using Mint, Ubuntu or another distribution with a simple user interface and settings menu, you can also change the time zone right here.

By command line

How to Change Time Zone on Linux Picture 1How to Change Time Zone on Linux Picture 1

Open Terminal. Select Terminal from the list of programs on Linux or press the key combination Ctrl+ Alt+ T.

How to Change Time Zone on Linux Picture 2How to Change Time Zone on Linux Picture 2

Check current time zone. Type dateinto Terminal then press ↵ Enter. Terminal will display the date in the format Thứ Tháng Ngày Giờ Múi giờ Năm(English abbreviation).

For example, in the line Wed Mar 7 07:38:23 EDT 2017"EDT" is the abbreviation for the current time zone (Eastern Daylight Time: summer time in the Eastern United States).

How to Change Time Zone on Linux Picture 3How to Change Time Zone on Linux Picture 3

Check available time zones. Type cd /usr/share/zoneinfoand tap ↵ Enter, then tap tzselectthen tap ↵ Enterto display the list of places.

The directory /usr/share/zoneinfomay vary depending on the Linux version.

How to Change Time Zone on Linux Picture 4How to Change Time Zone on Linux Picture 4

Select a continent or ocean. Enter a number that represents an option related to your general location, then tap ↵ Enter.

How to Change Time Zone on Linux Picture 5How to Change Time Zone on Linux Picture 5

Select country. Enter the number representing the option in the list on the screen, then press ↵ Enter.

How to Change Time Zone on Linux Picture 6How to Change Time Zone on Linux Picture 6

Select time zone. Enter the number representing the regional time zone you want to select and press ↵ Enter.

If your city is not on the list, choose another city in the same time zone as you.

How to Change Time Zone on Linux Picture 7How to Change Time Zone on Linux Picture 7

Confirm local time. On the next command line, confirm the local time is correct by pressing 1 then ↵ Enter.

If the time is not correct, enter it 2, press ↵ Enter, then select a new continent and repeat the process.

How to Change Time Zone on Linux Picture 8How to Change Time Zone on Linux Picture 8

Confirm that the time zone is set. Execute the command dateagain and check if this time zone corresponds to the time you just changed. If you see the new time appear, it means you have successfully changed the time zone on your computer.

How to Change Time Zone on Linux Picture 9How to Change Time Zone on Linux Picture 9

Set up your clock to sync with an internet time server if you prefer. Most modern distributions come with the Network Time Protocol (NTP) pre-installed. If your Linux distribution doesn't have it then install this NTP server package. Use the following commands to install depending on your Linux distribution:

Ubuntu/Mint/Debian :sudo apt install ntpdate

CentOS :sudo yum install ntpdate
sudo /sbin/chkconfig ntpd on

Fedora/RedHat :sudo yum install ntpdate
sudo chkconfig ntpd on

Enter after the installation command, remember to replace the server link with the link to the website.ntpdate server link && hwclock –w

Using the time zone selection menu

How to Change Time Zone on Linux Picture 10How to Change Time Zone on Linux Picture 10

Open Terminal. Select Terminal from the list of programs on Linux or press the key combination Ctrl+ Alt+ T.

How to Change Time Zone on Linux Picture 11How to Change Time Zone on Linux Picture 11

Enter the command to open the time zone menu. Depending on the Linux distribution, this command will be different:

Ubuntu and Mint - sudo dpkg-reconfigure tzdatafollowed by admin/user password.

Redhat -redhat-config-date

CentOS and Fedora -system-config-date

' FreeBSD and Slackware -tzselect

How to Change Time Zone on Linux Picture 12How to Change Time Zone on Linux Picture 12

Select geographical region. Use the arrow keys to select the geographic region to which the country belongs, then press ↵ Enter.

How to Change Time Zone on Linux Picture 13How to Change Time Zone on Linux Picture 13

Select city/region. Select the city or region that corresponds to your time zone then tap ↵ Enter. The time zone will be changed on the system.

Using the graphical user interface on Ubuntu

How to Change Time Zone on Linux Picture 14How to Change Time Zone on Linux Picture 14

Click the "system menu" icon. The option has a downward-facing triangle in the upper right corner of the screen. A drop-down menu will appear.

How to Change Time Zone on Linux Picture 15How to Change Time Zone on Linux Picture 15

Click the wrench and screwdriver "settings" icon in the lower left corner of the drop-down menu. The Ubuntu Control Center will open.

How to Change Time Zone on Linux Picture 16How to Change Time Zone on Linux Picture 16

Scroll down and click Details . Options are at the bottom of the bar on the left side of the window.

You need to make sure the mouse pointer is on the left bar when scrolling.

How to Change Time Zone on Linux Picture 17How to Change Time Zone on Linux Picture 17

Click Date & Time . This tab is on the left side of the window.

How to Change Time Zone on Linux Picture 18How to Change Time Zone on Linux Picture 18

Turn off Automatic Time Zone. Click the blue "Automatic Time Zone" switch in the middle of the page to turn it off.

If the "Automatic Time Zone" switch is gray, skip this step.

How to Change Time Zone on Linux Picture 19How to Change Time Zone on Linux Picture 19

Click Time Zone near the bottom of the window. The Time Zone menu opens.

How to Change Time Zone on Linux Picture 20How to Change Time Zone on Linux Picture 20

Select time zone. Click your approximate location on the world map to select it. The time will change to match the time zone of the region you select.

How to Change Time Zone on Linux Picture 21How to Change Time Zone on Linux Picture 21

Close the window to save the settings. The appropriate time zone will be updated.

Using the Mint graphical user interface

How to Change Time Zone on Linux Picture 22How to Change Time Zone on Linux Picture 22

Open Menu. Click Menu in the lower left corner of the screen.

How to Change Time Zone on Linux Picture 23How to Change Time Zone on Linux Picture 23

Click the two gray gear-shaped system settings icon. Options are on the left side of the Menu window.

How to Change Time Zone on Linux Picture 24How to Change Time Zone on Linux Picture 24

Click Date & Time, which is in the "Preferences" group of options.

How to Change Time Zone on Linux Picture 25How to Change Time Zone on Linux Picture 25

Click Unlock on the right side of the window.

How to Change Time Zone on Linux Picture 26How to Change Time Zone on Linux Picture 26

Enter the user password when prompted. Enter the password you use to log into your computer.

How to Change Time Zone on Linux Picture 27How to Change Time Zone on Linux Picture 27

Click Authenticate . It's at the bottom of the pop-up dialog box. The Date & Time menu will be unlocked.

How to Change Time Zone on Linux Picture 28How to Change Time Zone on Linux Picture 28

Select time zone. Click the vertical bar on the map to select a time zone. The clock on the right side of the page will change immediately to reflect the time of the selected time zone.

How to Change Time Zone on Linux Picture 29How to Change Time Zone on Linux Picture 29

Click Lock on the right side of the window to save your time zone settings. The Date & Time menu will be locked.

5 ★ | 1 Vote