読者です 読者をやめる 読者になる 読者になる

AKAI TSUKI

System development or Technical something

タイムゾーン設定変更

[root@localhost ~]# date
Fri Nov 15 16:53:43 UTC 2013
[root@localhost ~]# cat /etc/localtime
TZif2UTCTZif2UTC
UTC0
[root@localhost ~]# strings /etc/localtime
TZif2
TZif2
UTC0
[root@localhost ~]# cp -p /etc/localtime localtime.org
[root@localhost ~]# ls -l
total 24
-rw-------. 1 root root 1252 Apr 27  2013 anaconda-ks.cfg
-rw-r--r--. 1 root root 8526 Apr 27  2013 install.log
-rw-r--r--. 1 root root 3314 Apr 27  2013 install.log.syslog
-rw-r--r--  1 root root  118 Apr 27  2013 localtime.org
[root@localhost ~]# cp -p /usr/share/zoneinfo/Asia/Tokyo /etc/localtime
cp: overwrite `/etc/localtime'? y
[root@localhost ~]# strings /etc/localtime
TZif2
TZif2
JST-9
[root@localhost ~]# date
Sat Nov 16 02:04:49 JST 2013
[root@localhost ~]#