Co robi HWCLOCK użycie. Konsola information in /etc/adjtime , which can be used to adjust the clock.

Czy przydatne?

Polecenie hwclock

Wykonanie, użycie: System administration command. Read or set the hardware clock. This command maintains change information in /etc/adjtime, which can be used to adjust the clock based on how much it drifts over time. hwclock replaces the clock command. The single-letter options are included for compatibility with the older command

Opcje wykonania hwclock w konsoli

You may specify only one of the following options:

-a, --adjust

Adjust the hardware clock based on information in /etc/adjtime and set the system clock to the new time.

--getepoch

Print the kernel's hardware clock epoch value, then exit.

-r, --show

Print the current time stored in the hardware clock.

-s, --hctosys

Set the system time in accordance with the hardware clock.

--setepoch, --epoch=year

Set the hardware clock's epoch to year.

--set --date=date

Set the hardware clock to the specified date, a string appropriate for use with the date command.

-v, --version

Print version and exit.

-w, --systohc

Set the hardware clock in accordance with the system time.

The following may be used with the above options.

--debug

Print information about what hwclock is doing.

--localtime

The hardware clock is stored in local time.

--noadjfile

Disable /etc/adjtime facilities.

--test

Do not actually change anything. This is good for checking syntax.

-u, --utc

The hardware clock is stored in Universal Coordinated Time.

Przykłady hwclock działanie w Słownik polecenie H

Przykład HWCLOCK użycie :
Jak użyć Display specified file or input in hexadecimal, octal, decimal, or ASCII format. Option flags are used to specify the display format co znaczy.
Przykład HWCLOCK użycie :
Jak użyć System administration command: turns off the computer. Insert a note in the file /var/log/wtmp ; if the system is in runlevel 0 or 6, stop all processes; otherwise, call shutdown -h krzyżówka.
Przykład HWCLOCK użycie :
Jak użyć user authentication files used by the Apache web server. The -c option is used if you wish to create the file, and will overwrite any existing files rather than update them. The three arguments are co to jest.
Przykład HWCLOCK użycie :
Jak użyć Set or display name of current host system. A privileged user can set the hostname with the nameofhost argument słownik.
Przykład HWCLOCK użycie :
Jak użyć Print the first few lines (default is 10) of one or more files . If files is missing or -, read from standard input. With more than one file, print a header for each file czym jest.