• First verify your time by typing in:
o #timedatectl
• Set NTP or Disable
o #timedatectl set-ntp yes
o #timedatectl set-ntp no
• Set Timezones
o #timedatectl set-timezone UTC
o #timedatectl set-local-rtc 1(YOUR_LOCAL_TIMEZONE)
• Change the Clock
o #timedatectl set-time HH:MM:SS
o #timedatectl set-time YYYY-MM-DD
• List Timezones
o #timedatectl list-timezones
o #timedatectl list-timezones | grep keyword(Time-Zone)
• Set Hardware Clock to Sync with UTC
o #timdatectl set-local-rtc 0
• Display the Hardware Clock (Older Ubuntu Versions)
o #sudo hwclock -r
o #sudo hwclock --show
o #sudo hwclock --show --verbose
• Display the date and change the date/time (Older Ubuntu Versions)
o #date (display)
o #sudo date -s YY-MM-DD HH:MM:SS
No comments:
Post a Comment