Get the App
SLTechnology News&Howtos  ›  Servers  › 

Use the clock command of linux to adjust the RTC time

Shulou Source: shulou.com Published: 2022-06-02 13:48:56 10月03日 Update

This article mainly introduces the use of linux clock command to adjust the RTC time, the article is very detailed, has a certain reference value, interested friends must read it!

The clock command adjusts the RTC time. RTC is the built-in hardware time of the computer. Executing this instruction can display the present time, adjust the time of the hardware clock, set the system time to the same time as the hardware clock, or save the system time back to the hardware clock.

Syntax format: clock [parameters]

Common parameters:

Reference example

Displays the current hardware clock time:

[root@linuxcool ~] # clock Thursday, December 12, 2019, 15:11:07-0.578708 seconds

Displays the utc hardware clock time:

[root@linuxcool] # clock-- UTC on Thursday, December 12, 2019, 15:12:30-0.442566 seconds

Synchronization time:

[root@linuxcool ~] # clock-the above is all the contents of adjusting RTC time using linux's clock command, thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

Tags: Time hardware clock adjustment command content parameter week system reference consistency value function interest example buddy buddy commonly used instruction moment Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno vpn MariaDB MySQL OPPO Reno Xiaomi