Linux 查看硬件时间、设置时区、同步时间
文章目录
# 查看硬件时间
hwclock -l# 查看系统的各个时间和日期
timedatectl status
# 查看系统可用时区
timedatectl list-timezones
# 设置系统时区
timedatectl set-timezoe ZONE# 从时钟服务器(NTP)同步系统时间
chronyc makestep# 查看硬件时间
hwclock -l# 查看系统的各个时间和日期
timedatectl status
# 查看系统可用时区
timedatectl list-timezones
# 设置系统时区
timedatectl set-timezoe ZONE# 从时钟服务器(NTP)同步系统时间
chronyc makestep
评论
登录后参与技术讨论,分享你的经验与见解。
登录 / 注册暂无评论