Table of Contents
This tip is about the how to Set the Time Zone in Linux. So read this free guide, How to Set the Time Zone in Linux step by step. If you have query related to same article you may contact us.
How to Set the Time Zone in Linux – Guide
A time zone is a geographic region with the same standard time. Typically, the time zone is set during the OS installation, but it can easily be changed later. Using the correct time zone is essential for many system-related tasks and processes. For example, the cron daemon uses the system timezone to run cron jobs. The time zone is also used for timestamps. On the Linux system, the time zone points to the local time of the region or county. When the time zone is set in Linux, the time is automatically set according to the region or country. It is always recommended to set the correct time zone according to the geographic location of the system.
How to Set the timezone in Linux
Check the current time zone
You can view a system’s current timezone by simply typing the ‘date’ command in the terminal.
The above command shows that this system is running in UTC timezone. You can also refer to the timedatectl command to view the details output of current system time, time zone and many other details.
Set or change timezone in Linux
Linux keeps relegated timezone files available in the /usr/share/zoneinfo directory. There you can find all available time zones. You can choose one of the methods below to change your Linux system timezone via the command line.
Using the timedatectl command (recommended)
Using /etc/localtime Symlink
Final note
I hope you like the guide How to Set the Time Zone in Linux. In case if you have any query regards this article you may ask us. Also, please share your love by sharing this article with your friends.