mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-15 00:48:39 +00:00
Update cheatsheets
This commit is contained in:
33
linux/timedatectl
Normal file
33
linux/timedatectl
Normal file
@@ -0,0 +1,33 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# timedatectl
|
||||
|
||||
> Control the system time and date.
|
||||
> More information: <https://manned.org/timedatectl>.
|
||||
|
||||
- Check the current system clock time:
|
||||
|
||||
`timedatectl`
|
||||
|
||||
- Set the local time of the system clock directly:
|
||||
|
||||
`timedatectl set-time "{{yyyy-MM-dd hh:mm:ss}}"`
|
||||
|
||||
- List available timezones:
|
||||
|
||||
`timedatectl list-timezones`
|
||||
|
||||
- Set the system timezone:
|
||||
|
||||
`timedatectl set-timezone {{timezone}}`
|
||||
|
||||
- Enable Network Time Protocol (NTP) synchronization:
|
||||
|
||||
`timedatectl set-ntp on`
|
||||
|
||||
- Change the hardware clock time standard to localtime:
|
||||
|
||||
`timedatectl set-local-rtc 1`
|
||||
Reference in New Issue
Block a user