How to Update Timezone in Linux

While setting up Linux in your system, did you select a wrong timezone? Did you move to a new region and want to change the timezone on your Linux device? Here are four simple ways to change timezone in Linux OS. Use the one suitable for your Linux distribution.

Way 1: Changing Timezone from the selection menu

1.    Open the ‘Terminal’ program in your device. You can use ‘Ctrl + Alt + T’ shortcut to open it.

2.    Enter the timezone command for Linux distribution.

These are the following commands, use according to the distribution you’re using:

•    In Ubuntu and Mint: “sudo dpkg-reconfigure tzdata.”

•    In CentOS and Fedora: “system-config-date”.

•    In Redhat: “redhat-config-date.”

•    In Slackware and FreeBSD: “tzselect.”

3.    Press ‘Enter’.

4.    Select the geographical area of your country with the navigation key.

5.    Then press ‘Enter.’

6.    Now, select your ‘Country or region’ from the ‘Time zone:’ box.

7.    Press ‘Enter’.

The selected timezone applies to your system.

Way 2: Changing Timezone with commands

1.    Open the ‘Terminal’ program in your device. You can use ‘Ctrl + Alt + T’ shortcut to open it.

2.    Enter the command “date” and press ‘Enter’ to view the current time and date of your system.

3.    Then enter “cd/usr/share/zoneinfo” and press ‘Enter’. The command may vary with the distribution you’re using.

4.    Enter “tzselect” and press ‘Enter’ to view the location list.

5.    Enter the number of your continent or ocean from the list and press ‘Enter.’

6.    Then enter the number of your country or region from the list and press ‘Enter.’

7.    Enter “1” and press ‘Enter’ to view the local time. To change the timezone, type “2” and press ‘Enter.’

8.    After setting your time and date, enter the “date” command again to verify your timezone.

The selected timezone applies to your system and updates the date and time.

Way 3: Changing Timezone from the Graphical User Interface in Ubuntu

1.    Click on the ‘Downward facing arrow’ at the upper right corner to open system’s menu.

2.    Click on the ‘Settings’ (Screwdriver and wrench) icon at the bottom of the system menu. This opens the ‘Control Center’ of Ubuntu.

3.    Scroll down in the sidebar located at the left side.

4.    Click on ‘Details’ at the bottom of the menu.

5.    Now, select ‘Date & Time’ from the details menu.

6.    Click the button of the ‘Automatic Time Zone’ and disable (grey button) feature, ignore this step if already disabled.

7.    On the same screen, click on ‘Time Zone’ near the bottom. This opens a world map on your screen.

8.    Click on your ‘Country.’

9.    Alternatively, click the ‘Search City’ bar at the top to find your city.

10.    After selecting your time zone, close the world map.

Closing the window will save your selected timezone and it will get applied to your system.

Way 4: Changing Timezone from the Graphical User Interface in Mint

1.    Click the ‘Menu’ button at the lower left corner.

2.    At the left of the menu, click on the ‘Settings’ icon.

3.    Under Preferences, click on ‘Date & Time’ on the System Settings window.

4.    Then click the large ‘Unlock’ button.

5.    Enter the password you use for login if prompted.

6.    Click the ‘Authenticate’ button on the prompt. This opens a world map on your screen.

7.    Now, click the vertical sliding bar on the map and select your region.

8.    After selecting your time zone, click the ‘Lock’ button.

Clicking the ‘Lock’ button will save your selected timezone and locks the date and time settings.

norton.com/setup | mcafee.com/activate | office.com/setup | mcafee.com/activate |  mcafee.com/activatenorton.com/setup | mcafee.com/activate | mcafee.com/activate | office.com/setup


0 Comments

Curated for You

Popular

Top Contributors more

Latest blog