Saturday, November 29, 2014

Setting the time

To set the time, first determine what is the hardware time:
hwclock -r
To set the time and date:
date -s "2 OCT 2006 18:00:00"
To set the time only:
date +%T -s "10:13:13"
To set the hardware time using the system time:
hwclock -w

No comments:

Post a Comment