Linux Command to view and modify the time zone and time 1. view and modify the Linux Time Zone 1. view and modify the linux Time Zone 1. view the current time zone date-R 2, method 1: tzselect Method 2: Only applicable to RedHat Linux and CentOStimeconfig method 3: Applicable to Debiandpkg-reconfigure tzdata 3. Copy the corresponding time zone file and replace the system time zone file; you can also create a link file cp/usr/share/zoneinfo/$ main Time Zone/$ Time Zone/etc/localtime in China: cp/usr/share/zoneinfo/Asia/Shanghai/etc/localtime 2. view and modify linux time 1. view the time and date 2. Set the time and date to set the system date the command date-s June 10, 1996/96 in December 06/22 sets the system time to 01:52:00 P.M.. The command d Ate-s 13:52:00 3. write the current time and date to the BIOS, avoid Failure after restart hwclock-w III. Scheduled synchronization time *****/usr/sbin/ntpdate 210.72.145.44>/dev/null 2> & 1 Linux for clock viewing and setting the Commands include date, hwclock, and clock. Among them, clock and hwclock use similar, just use one line, but clock commands not only support x86 hardware system, but also support Alpha hardware system. View Linux system time: date modify Linux system time: date-s (followed by Time) view Linux hardware time: java code hwclock # Or clock # Or hwclock-show # Or clock-show to modify Linux hardware time: C code hwclock-set-date # Or clock-set-date synchronizes the system time with the hardware clock. Use the following code: C code hwclock-hctosys # Or clock-hctosys, synchronize the hardware clock with the system time: C code hwclock-systohc # Or clock-systohc enables the system to synchronize the hardware time every ten minutes. C code [hqw @ localhost root] $ vi/etc/crontab SHELL =/bin/bash PATH =/sbin:/bin:/usr/sbin: /usr/bin MAILTO = root HOME =/# run-parts 01 ***** root run-parts/etc/cron. hourly 02 4 *** root run-parts/etc/cron. daily 22 4 ** 0 root run-parts/etc/cron. weekly 42 4 1 ** root run-parts/etc/cron. monthly */10 * root hwclock -- hctosys # Add this row and run hwclock -- hctosys every 10 minutes.