Posted By

micmath on 01/10/07


Tagged


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

basicmagic
jamesming


Update Linux Date


 / Published in: Bash
 

Obviously, use a time server close to where you are. The first line updates the System Time, the second sets the Hardware Clock to the current System Time.

  1. /usr/sbin/ntpdate ntp5.warwick.ac.uk
  2. hwclock --systohc

Report this snippet  

You need to login to post a comment.