리눅스 시간 맞추기
맥이나 윈도우는 얼마나 편해 ㅠ.ㅠ
시간 한번 맞추기가 이렇게 힘들어서야 원...
커맨드만 복사해 놔야지.. 링크가 고장날지도 모르니...
[root@Zeus ~]# date
Fri Aug 3 08:05:03 UTC 2007
[root@Zeus ~]# hwclock --show
Fri 03 Aug 2007 05:39:07 PM UTC -0.870183 seconds
[root@Zeus ~]# echo $TZ
Fri Aug 3 08:05:03 UTC 2007
[root@Zeus ~]# hwclock --show
Fri 03 Aug 2007 05:39:07 PM UTC -0.870183 seconds
[root@Zeus ~]# echo $TZ
[root@Zeus ~]# export env TZ=KST-09:00:00
[root@Zeus ~]# date
Fri Aug 3 17:05:45 KST 2007
[root@Zeus ~]# date
Fri Aug 3 18:05:21 KST 2007
[root@Zeus ~]# hwclock --show
Fri 03 Aug 2007 06:39:45 PM KST -0.540050 seconds
[root@Zeus ~]# rdate -s time.bora.net
[root@Zeus ~]# hwclock --systohc
[root@Zeus ~]# date
Fri Aug 3 18:06:56 KST 2007
[root@Zeus ~]# hwclock --show
Fri 03 Aug 2007 06:07:01 PM KST -0.211481 seconds
Fri Aug 3 18:05:21 KST 2007
[root@Zeus ~]# hwclock --show
Fri 03 Aug 2007 06:39:45 PM KST -0.540050 seconds
[root@Zeus ~]# rdate -s time.bora.net
[root@Zeus ~]# hwclock --systohc
[root@Zeus ~]# date
Fri Aug 3 18:06:56 KST 2007
[root@Zeus ~]# hwclock --show
Fri 03 Aug 2007 06:07:01 PM KST -0.211481 seconds
export env TZ=KST-09:00:00
rdate -s time.bora.net
hwclock --systohc
rdate -s time.bora.net
hwclock --systohc