
Step 4 : Reboot your system for reflecting this time zone in all your applications. If you are located in a different time zone, you can change this setting by using the TZ. Now check your time by date command # date By default, the Linux shell uses the host servers time zone. This entry is for hardware clock.Ĭreate a symbolic link between /etc/localtime/ # ln -sf /usr/share/zoneinfo/Asia/Kolkata /etc/localtimeĪbove command create link of your time zone for system local timezone information.
Change timezone linux command update#
Step 2 : Update the /etc/sysconfig/clock file with the new time zone. So complete path for my timezone is /usr/share/zoneinfo/Asia/kolkata. We require to set indian time zone so search kolkata timezone in Asia directory. Step 1: List all zone info by the command # ls /usr/share/zoneinfoĪbove command show zoneinfo. You should see that your new time zone is returned by. We can verify that this change took effect by making use of the timedatectl command again.


sudo timedatectl set-timezone 'Australia/Hobart' 4. # dateĪbove command show time date with timezone UTC. timedatectl set-timezone 'TIMEZONE' For example, if we wanted to change our timezone to Australia/Hobart we would use the following command. First of all check timezone in linux server. But we need to change the time to local timezone for better understanding of time in log or in other file. Linux instances are set to the UTC (Coordinated Universal Time) time zone by default. To do so, use the ls command as follows: ls l / etc / localtime Change time zone Via GUI In order to change the time zone of your system via GUI, open the Settings utility in Date & Time view as follows.
