Welcome to Server Circle. It's a friendly site and all levels of experience are welcome. Be aware that we use cookies for your login.
Server Circle - Ask questions about Servers and get answers from experts.
Beta (0.74 sec)
Writing the system clock time to the hardware clock

How do I write the system clock time to the hardware clock ?

I'd like to be able to do it manually and also enforce it at reboot time.

Thanks for your help.
Asked by:
TomPating
1355 points
 Report Abuse
 Share Page - Category: Linux Servers - Tags: Writing the system clock time to the hardware clock
 Enter your response
Please use Pastie.org to paste lengthy code or to fix formatting issues with code
  • Responses in reverse (3)

Best Answer

If you want to execute it on boot time,

check if /etc/rc.local exists, put your command in file /etc/rc.local

otherwise:

1)cd /etc/init.d

2)echo "hwclock> hclock

3)chmod 755 hclock

4)cd /etc/rc2.d

5)ln -s /etc/hclock s99clock

change step 5 if default runlenel is other than 2

Response by:
jalal
3623 points
hwclock is exactly what I was looking for ! Thank you !

Response by:
TomPating
1355 points
With the clock or hwclock command.

Response by:
s
3383 points


  • Related Questions
About Us : Contact Us : Etiquette : Terms : CDN Failover : ShorterURL : CDN Fallback : © 2013 Server Circle