This tool is recommended for remote ssh text based sessions. OR type setup and select time zone configuration. Type the redhat-config-date command at the command line to start the time and date properties tool, run: redhat-config-date. rootthaiserv timedatectl Local time: Wed 06:51:45 +07 Universal time: Tue 2017-10. If you are using Fedora / RHEL / Cent OS Linux. In this tutorial, you have learned about setting or changing the time zone on a Linux system. rootthaiserv timedatectl set-timezone Asia/Bangkok. You can again run “timedatectl” command to confirm the time zone is updated correctly. The system will automatically adjust the new time based on the new time zone set on the system. Then change the symbolic link of file to the correct time zone configuration file: sudo ln -s /usr/share/zoneinfo/America/Los_Angeles /etc/localtime You just need to search for the correct time zone files under /usr/share/zoneinfo directory.įirst rename of remove the current file: sudo mv /etc/localtime /etc/localtime-old You can also change the system time by changing the symbolic link of /etc/localtime file on Linux systems. Method 2 – Using /etc/localtime Symlink Red Hat Enterprise Linux 7 offers three command line tools that can be used to configure and.In Details, you’ll fine Date & Time in the left sidebar. Scroll down a little and look for Details in the left sidebar: Go to Settings -> Details. Press the super key (Windows key) and search for Settings: Applications Menu Settings. sudo timedatectl set-timezone "America/Los_Angeles" Method 2: Change Ubuntu timezone via GUI.
Change timezone linux server how to#
See also How to Install Apache Httpd Server on RHEL 6. Next, use the following command to set a new time zone to the Linux system. They allow the kernel to convert UTC UNIX time into appropriate local dates and times. timedatectl list-timezonesįind out the correct time zone for your system in the above result. You can list all the available timezones with the following command. Use of timedatectl command is the proffered way to set or change the time zone on a Linux system. Method 1 – Using timedatectl command (Recommended).You can choose one of the below methods to change the Linux system time zone via the command line. There you can find all the available time zone. The Linux keeps time zone relegated files are available under /usr/share/zoneinfo directory. RTC in local TZ: no Set or Change Time Zone in Linux