M
M
mihzas2015-03-03 10:58:39
linux
mihzas, 2015-03-03 10:58:39

How to synchronize time in linux?

Synchronized system time and hardware:
hwclock --set --date='mm/dd/yyyy hh:mm:ss'
hwclock -systohc
Everything works, but if you set the time hwclock --set --date='mm/dd/yyyy hh:mm:ss', already after synchronization, it sets the time after the system is rebooted.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
V
Valentine, 2015-03-06
@mihzas

There is a very advanced ntp and a chrony client and server. I liked it much more than the default ntpd, I recommend it.

O
oia, 2015-03-03
@oia

ntpd

A
Alexey Cheremisin, 2015-03-03
@leahch

ntpdate

J
jcmvbkbc, 2015-03-03
@jcmvbkbc

Synchronized system time and hardware:
hwclock --set --date='mm/dd/yyyy hh:mm:ss'
hwclock -systohc

The second command synchronizes the hardware clock with the system time. The first one simply sets the hardware clock to the specified time without changing the system time in any way.
It's not clear what you wanted to say. Try to reformulate.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question