Change TimeZone in your Linux Server quickly:
In any Red Hat based (RHEL/CentOS/Fedora) Server, change time zone to PST/PDT quickly:
# mv /etc/localtime /etc/localtime.old && ln -s /usr/share/zoneinfo/PST8PDT /etc/localtime
or set zone to IST:
# mv /etc/localtime /etc/localtime.old && ln -s /usr/share/zoneinfo/Calcutta /etc/localtime
or Set the TZ environment variable for quick display time according to preferred Time Zone:
# export TZ=America/Los_Angeles
and then view the output of date command.
or If you have the utility rdate, update the current system time by executing
# rdate -s pool.ntp.org
or You can execute ‘system-config-date’ for setting up date/time and time zone:
# system-config-date