
Note that the path to the timezone file ( /usr/share/zoneinfo/America/New_York) is constructed from the TZ value you obtained earlier. $ sudo ln -s /usr/share/zoneinfo/America/New_York /etc/localtime To change the timezone for all users system-wide on your Linux, use the following commands. Then re-login or execute ~/.bashrc to activate the change. Add the following in ~/.bashrc as follows. If you want to change timezone for a specific user only, you can define TZ environment variable using the TZ value you obtained earlier. Make a note of this value, and proceed next. Tzselect will display your timezone in Posix TZ format (e.g., America/New_York). Go through timezone selection menu to identify your zone. The first step to change the timezone of your Linux system is to obtain a timezone value ( TZ value) of your region.įor that, you can use tzselect command, which allows you to view and choose installed timezone files. You can easily find out the current timezone of your Linux system with: $ date Thus you need to change the timezone separately yourself.

NTP handles time data in UTC, and actual local time is calculated by adding the local time zone offset.

Note that configuring NTP is not a solution for an incorrect timezone as NTP itself does not handle timezones. If the default timezone of your Linux system is not correct, you need to correct it to get accurate local time.

Question: The current timezone of my Linux box is inaccurate, and I want to change the timezone of the system.
