2015年4月9日 星期四

Linux: Change The System/Hardware Date & Time Zone

# Search the "Area/City" in /user/share/zoneinfo
Ubuntu:
  $ sudo echo "Asia/Taipei" > /etc/timezone

CentOS:
  $ sudo echo "ZONE=\"Asia/Taipei\"" > /etc/sysconfig/clock

$ sudo cp /usr/share/zoneinfo/Asia/Taipei /etc/localtime


# Set Date
$ sudo date 040911112015.00

# Set Hardware Clock
$ sudo hwclock -w

沒有留言:

張貼留言