mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 14:04:59 +02:00
commit
c6204fd559
1 changed files with 15 additions and 0 deletions
15
pages/linux/hwclock.md
Normal file
15
pages/linux/hwclock.md
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
# hwclock
|
||||||
|
|
||||||
|
> Used for reading or changing the hardware clock. Usually requires root.
|
||||||
|
|
||||||
|
- Display the current time as reported by the hardware clock:
|
||||||
|
|
||||||
|
`hwclock`
|
||||||
|
|
||||||
|
- Write the current software clock time to the hardware clock (sometimes used during system setup):
|
||||||
|
|
||||||
|
`hwclock --systohc`
|
||||||
|
|
||||||
|
- Write the current hardware clock time to the software clock:
|
||||||
|
|
||||||
|
`hwclock --hctosys`
|
Loading…
Add table
Reference in a new issue