sudo fake-hwclock save|load [force]
boot timeWhen the systems boots, thefake-hwclock will set the system clock to the time it was last saved!.This means that syslog entries and files modified (or accessed) will be timestamped with an old time/date, until the system clock is
The default cron job
|
save | system clock to file with time later than fake-hwclock's release date.With force saves any time.
|
load | Slew the system clock forward to the time in the file. With force move the system clock backwards or forwards.
|
| file to store the time | /etc/fake-hwclock.data UTC
| |||||
run on startup and shutdown |
$FORCE is usd by /lib/systemd/system/fake-hwclock.service
Set the file used by fake-hwclock $FILE
> sudo fake-hwclock load Current system time: 2021-10-06 17:46:43 UTC fake-hwclock saved clock information is in the past: 2021-10-06 17:17:0 To set system time to this saved clock anyway, use "force" $? = 0