CentOS 7.x Change system timezone

From Notes_Wiki
Revision as of 16:18, 2 August 2017 by Saurabh (talk | contribs) (Created page with "<yambe:breadcrumb>CentOS_7.x_system_administration|CentOS 7.x system administration</yambe:breadcrumb> =CentOS 7.x Change system timezone= To set correct timezone in system o...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

<yambe:breadcrumb>CentOS_7.x_system_administration|CentOS 7.x system administration</yambe:breadcrumb>

CentOS 7.x Change system timezone

To set correct timezone in system one can use following steps:

    rm -f /etc/localtime
    ln -s /usr/share/zoneinfo/<desired-timezone> /etc/localtime

For example if desired timezone is Asia/Kolkata then use:

    rm -f /etc/localtime
    ln -s /usr/share/zoneinfo/Asia/Kolkata /etc/localtime