Time adjustment in Debian

xiaoxiao2021-03-06  43

First, you can use two ways to adjust the time in Debian:

1.Date -s mm / dd / yy or date -s mm / dd / yyyy

Date -S hh: mm: ss

2.DATE -S

YYYY / MM / DD HH: MM: SS

The first of these should be all popular Linux versions (at least redhat also applied)

Second, use the DATE command to modify the system time, you need to write the modified system time into the CMOS to prevent the time loss of the modified time from the next startup system, different from the redhat's clock command, Debian uses the hwclock command, The location is / sbin / hwclock (HW is the abbreviation of Hardware? Checking Man, it should be).

HWCLOCK -W

If you want to use the network pair, NTPDATE kits can be used (NTP refers to NTP protocol)

NTPDATE -S TIMESERVER

references:

Modify time under Debian

转载请注明原文地址:https://www.9cbs.com/read-58904.html

New Post(0)