顯示具有 Time 標籤的文章。 顯示所有文章
顯示具有 Time 標籤的文章。 顯示所有文章

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