/etc/sysconfig/clock
This profile can be used to set how the user chooses how to display the time. If the hardware clock is local time, UTC is set to 0, and the environment variable TZ is not set. If the hardware clock is UTC time, set the UTC to 1 and set the environment variable TZ (or profile/etc/tz) as the time zone information, such as "Asia/shanghai". Hwclock View Hardware clock: [[email protected]]$ hwclock–r/etc/localtime The system time zone of Linux is obtained by symbolic connection/etc/localtime. You can set the time zone by using the Tzset command, or you can set the time zone to Shanghai in Asia by using the command "Ln–s/etc/localtime/usr/share/zoneinfo/asia/shanghai". or execute Cp/usr/share/zoneinfo/asia/shanghai/etc/localtime directly if the system time is only synchronized through the NTP server, you can use the command ntpdate. The libraries used by Ntpdate include: Libcap.so.1 =/lib/libcap.so.1, libc.so.6 =/lib/tls/libc.so.6,/lib/ld-linux.so.2. View current time zone
Date–r
BusyBox's NTPD
Ntpd-p Ntp_server_addr-qnn
Hwclock–w
NTPD vs Ntpdate
Ntpdate directly adjusts the time to the specified server;
NTPD on the one hand can be the server, on the other hand gradually adjust the local time to align the superior server time.
Linux Time Management