0% found this document useful (0 votes)
22 views1 page

Hwclock Linux

The document discusses several options for manipulating the hardware clock and system time on a Linux system: - --show reads the hardware clock and prints the current local time. - --set sets the hardware clock to the time specified with the --date option. - --hctosys sets the system time from the hardware clock and sets the kernel timezone. - --systohc sets the hardware clock to the current system time. - --adjust adds or subtracts time from the hardware clock to account for drift since the last adjustment.

Uploaded by

Santosh Kodte
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
22 views1 page

Hwclock Linux

The document discusses several options for manipulating the hardware clock and system time on a Linux system: - --show reads the hardware clock and prints the current local time. - --set sets the hardware clock to the time specified with the --date option. - --hctosys sets the system time from the hardware clock and sets the kernel timezone. - --systohc sets the hardware clock to the current system time. - --adjust adds or subtracts time from the hardware clock to account for drift since the last adjustment.

Uploaded by

Santosh Kodte
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 1

--show Read the Hardware Clock and print the time on Standard Output.

The time shown is always in local time, even if you keep your Hardware Clock in Coordinated Universal Time. See the --utc option. --set Set the Hardware Clock to the time given by the --date option. --hctosys Set the System Time from the Hardware Clock. Also set the kernel's timezone value to the local timezone as indicated by the TZ environment variable and/or /usr/share/zoneinfo, as tzset(3) would interpret them. The obsolete tz_dsttime field of the kernel's timezone value is set to DST_NONE. (For details on what this field used to mean, see settimeofday(2).) This is a good option to use in one of the system startup scripts. --systohc Set the Hardware Clock to the current System Time. --adjust Add or subtract time from the Hardware Clock to account for systematic drift since the last time the clock was set or adjusted. See discussion below.

You might also like