Table of Contents
This updated guide examines How to Change the Timezone in Linux and organizes the essential facts, background, and practical takeaways in clear American English.
Method 1of 4:
Using the Command Line
Open Terminal. Select the Terminal program from your Linux programs, or pressCtrl+Alt+Ton your keyboard.
Check your current time zone. Typedateinto Terminal and press?Enter. The terminal will display the date inWeekday Month Day Time TimeZone Yearformat.- For example, you might see something like
Wed Mar 7 07:38:23 EDT 2017wherein "EDT" refers to the current time zone (Eastern Daylight Time).
- For example, you might see something like
Check available time zones. Type incd /usr/share/zoneinfoand press?Enter, then type intzselectand press?Enterto display a list of locations.
- The/usr/share/zoneinfodirectory may vary depending on your Linux distribution.
Select a continent or ocean. Type in a selection number that pertains to your general location, then press?Enter.
Select a country. Type in a selection number from the on-screen list and press?Enter.
Select a time zone. Type in a selection number to select the preferred time zone region and press?Enter.
- If your city is not listed in the time zone list, pick a different city from your same time zone.
Confirm the local time. In the following prompt, confirm that the local time is correct by typing 1 and then pressing?Enter.
- If the time isn't correct, type in2and press?Enter, then select a new continent and repeat the process.
Verify that your time zone has been set. Run thedatecommand again and check that the time zone corresponds to the one you just changed to. If you see you new time zone listed, you have successfully changed your computer's time zone.
Set your clock to stay synced with internet time servers if you like. Most modern distributions have NTP already installed. If your Linux distribution does not, you will need to install the NTP server package. Use the following commands to install it, 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
- Enterntpdate server link && hwclock –wafter the installation command, making sure to enter the link to the website in place of server link .
Method 2of 4:
Using the Timezone Selection Menu
Open Terminal. Select the Terminal program from your Linux programs, or pressCtrl+Alt+Ton your keyboard.
Enter the time zone menu command. Depending on your Linux distribution, this command will vary:
- Ubuntu and Mint -sudo dpkg-reconfigure tzdatafollowed by the admin/user password.
- Redhat -redhat-config-date
- CentOS and Fedora -system-config-date
- ' FreeBSD and Slackware -tzselect
Select your geographic area. Use the arrow keys to select the geographic area the country is found in, then press?Enter.
Select your city/region. Select the city or region corresponding to your time zone, then press?Enter. This will change the time zone on your system.[1]
Method 3of 4:
Using the Graphical User Interface in Ubuntu
Click the "System Menu" icon
. It's a downward-facing triangle in the upper-right corner of the screen. A drop-down menu will appear.[2]
Click the "Settings" icon. This wrench-and-screwdriver-shaped icon is in the lower-left corner of the drop-down menu. Doing so opens the Ubuntu Control Center.
Scroll down and clickDetails. It's at the bottom of the sidebar that's on the left side of the window.
- Make sure that your mouse is over the left-hand sidebar when scrolling.
ClickDate & Time. You'll find this tab on the left side of the window.
Turn off Automatic Time Zone. Click the blue "Automatic Time Zone" switch in the middle of the page to do so.
- If the "Automatic Time Zone" switch is grey, skip this step.
ClickTime Zone. It's near the bottom of the window. Doing so opens the Time Zone menu.
Select a time zone. Click your approximate location on the world map to do so. You should see the time change to match the selected area's time zone.
Close the window. This will save your settings and update your time zone accordingly.
Method 4of 4:
Using the Graphical User Interface in Mint
Open the Menu. Click Menu in the bottom-left corner of the screen.
Click the System Settings icon. It's made of two grey cogs. You'll find it on the left side of the Menu window.
ClickDate & Time. It's in the "Preferences" group of options.
ClickUnlock. You'll find this on the right side of the window.
Enter your user password when prompted. Type in the password that you use to log into your computer.
ClickAuthenticate. It's at the bottom of the prompt. Doing so unlocks the Date & Time menu.
Select a time zone. Click a vertical slice of the map to pick that time zone. You should see the clock on the right side of the page immediately change to reflect the selected time zone's time.
ClickLock. It's on the right side of the window. Doing so saves your time zone preferences and locks the Date & Time menu.
FAQ
What is How to Change the Timezone in Linux about?
It provides a structured overview of time, explains the main context, and highlights practical takeaways for readers.
Why does this topic matter?
Understanding the main concepts helps readers evaluate the issue, avoid common mistakes, and make better-informed decisions.
How should readers use this information?
Use the guidance as a practical starting point, confirm details that may have changed, and follow current product, safety, or security recommendations.
Reader Comments 0
Sign in with email or Google to join the discussion.