Quantcast
Channel: History Linux
Viewing all articles
Browse latest Browse all 25

How I can change the time zone of a node on Redhat

$
0
0
HowI canchangethe time zoneof a node onRedhat.


Open consola.

The file containingthe configuration islocated in /etc/localtime.Makea copyof the file andcopy theconfiguration filetime zonethat is yours.The configuration filesare located in /usr/share/zoneinfo

In my casemy time zoneisMadridSpain.
[root@vic ~]# ls -la /usr/share/zoneinfo/Europe/Madrid
-rw-r--r-- 1 root root 2593 jun 26 03:43 /usr/share/zoneinfo/Europe/Madrid
Make a copy.
[root@vic ~]# cp /etc/localtime /etc/localtime_bk
Configure new zone.
[root@vic ~]# cp /usr/share/zoneinfo/Europe/Madrid /etc/localtime
cp: overwrite /etc/localtime'? (y/n) Y

Problem solved.

Viewing all articles
Browse latest Browse all 25

Trending Articles