RTC stands for real-time clock, also known as hardware clock. But users with a desktop environment such as XFCE need to log out and log back in to see the changes on the taskbar. Your system’s clock will be updated immediately, as you can find out by entering date command in the terminal. It will create a symbolic link pointing /etc/localtime file to your specific time zone file. So the final command will be sudo ln -sf /usr/share/zoneinfo/ your-geographic-area/ your-city /etc/localtime Now press the space key and enter /etc/localtime. A list of City will appear.Įnter the name of the city corresponding to your time zone. First, open a terminal and type this command: sudo ln -sf /usr/share/zoneinfo/ĭon’t press Enter yet, press Tab key instead.Ī list of geographic areas will appear, now enter the name of your area after sudo ln -sf /usr/share/zoneinfo/. This method works on all Linux distributions. A Distro-Agnostic Way to Change Time Zone Settings I live in China, so I selected Shanghai.Īfter you hit the OK button, your system clock will be immediately changed to your time zone clock. Next, select the city or region corresponding to your time zone. It will open up a dialog in the terminal to let your select your geographic area. On Debian-based Linux distros, including Debian, Ubuntu, Linux Mint, Elementary OS, etc, you can change your time zone settings with this command. Change Time Zone on Debian-based Linux Distros So I need to change time zone settings from UTC to CST (China Standard Time). dateĪs you can see, my system time zone is set to UTC ( Universal Time Coordinated). Check Time Zone SettingsĬheck the current time zone settings. In this tutorial, we will look at how to change your time zone settings in Linux and how to use NTP to sync the Linux system clock to your time zone.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |