Difference between revisions of "CentOS 7.x Change system timezone"
From Notes_Wiki
m |
m |
||
Line 1: | Line 1: | ||
[[Main Page|Home]] > [[CentOS]] > [[CentOS 7.x]] > [[CentOS 7.x system administration|System Administration]] > [[CentOS 7.x Change system timezone]] | |||
'''There is newer article on this at [[CentOS 8.x Change system timezone]]''' | '''There is newer article on this at [[CentOS 8.x Change system timezone]]''' | ||
Line 15: | Line 14: | ||
ln -s /usr/share/zoneinfo/Asia/Kolkata /etc/localtime | ln -s /usr/share/zoneinfo/Asia/Kolkata /etc/localtime | ||
</pre> | </pre> | ||
[[Main Page|Home]] > [[CentOS]] > [[CentOS 7.x]] > [[CentOS 7.x system administration|System Administration]] > [[CentOS 7.x Change system timezone]] |
Latest revision as of 06:40, 25 August 2022
Home > CentOS > CentOS 7.x > System Administration > CentOS 7.x Change system timezone
There is newer article on this at CentOS 8.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
Home > CentOS > CentOS 7.x > System Administration > CentOS 7.x Change system timezone