TimeZone
CEST => UTC
Some time Linux admin need to configure timezone for Linux host,reason may requirement from application or database team or sometime wrong timezone configuration by Linux admin.
So, Lets see how to configure timezone from CEST to UTC.
Procedure:
Step 1: Before changing timezone please note previous timezone details by using following command.
#date
root@linuxhost:/root : date
Thu Jul 18 16:30:38 CEST 2019
root@linuxhost:/root : cd /etc
root@sedcacoi0060:/etc : ls -lrt /etc/localtime
lrwxrwxrwx 1 root root 33 Jul 3 08:57 localtime -> /usr/share/zoneinfo/Europe/Berlin
Step2 :
Now here we need to change time zone to UTC. Before changing this setting first note previous setting in notepad file.
Step 3:
Excute following command to change timezone to UTC.
#rm /etc/localtime
#ln -sf /usr/share/zoneinfo/UTC /etc/localtime
Step 4:
Confirm change is done or not by using following command.
#ls -lrt /etc/localtime
lrwxrwxrwx 1 root root 23 May 6 12:05 /etc/localtime -> /usr/share/zoneinfo/UTC
Also using date command admin can confirm that timezone changed from CEST to UTC.
#date
Thu Jul 18 02:40:24 UTC 2019
Thanks !!!
CEST => UTC
Some time Linux admin need to configure timezone for Linux host,reason may requirement from application or database team or sometime wrong timezone configuration by Linux admin.
So, Lets see how to configure timezone from CEST to UTC.
Procedure:
Step 1: Before changing timezone please note previous timezone details by using following command.
#date
root@linuxhost:/root : date
Thu Jul 18 16:30:38 CEST 2019
root@linuxhost:/root : cd /etc
root@sedcacoi0060:/etc : ls -lrt /etc/localtime
lrwxrwxrwx 1 root root 33 Jul 3 08:57 localtime -> /usr/share/zoneinfo/Europe/Berlin
Step2 :
Now here we need to change time zone to UTC. Before changing this setting first note previous setting in notepad file.
Step 3:
Excute following command to change timezone to UTC.
#rm /etc/localtime
#ln -sf /usr/share/zoneinfo/UTC /etc/localtime
Step 4:
Confirm change is done or not by using following command.
#ls -lrt /etc/localtime
lrwxrwxrwx 1 root root 23 May 6 12:05 /etc/localtime -> /usr/share/zoneinfo/UTC
Also using date command admin can confirm that timezone changed from CEST to UTC.
#date
Thu Jul 18 02:40:24 UTC 2019
Thanks !!!
No comments:
Post a Comment