Update Linux Date


/ Published in: Bash
Save to your folder(s)

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.


Copy this code and paste it in your HTML
  1. /usr/sbin/ntpdate ntp5.warwick.ac.uk
  2. hwclock --systohc

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.