I. Time Zone
1. view the current time zone
Date-R
2. Modify the time zone
Method (1)
Tzselect
Method (2) Limited to RedHat Linux and centos
Timeconfig
Method (3) applicable to Debian
Dpkg-reconfigure tzdata
3. Copy the corresponding time zone file, replace the system time zone file, or create a link file.
CP/usr/share/zoneinfo/$ main Time Zone/$ Time Zone/etc/localtime
Available in China:
CP/usr/share/zoneinfo/Asia/Shanghai/etc/localtime
Ii. Time
1. view the time and date
Date
2. Set the time and date
Set the system date to June 10, 1996.
Data-s 06/22/96
Set the system time to 01:52:00 P.M..
Date-s 13:52:00
3. Write the current time and date to the BIOS to prevent failure after restart
Hwclock-W
Note:
For more detailed command instructions, see man.
Refer:
Http://www.bitscn.com/linux/system_manage/200604/6898.html
Http://www.hypexr.org/linux_date_time_help.php
Http://www.debianadmin.com/ntp-server-and-client-configuration-in-debian.html
Http://www.time.ac.cn/stime.asp