Ubuntu系统设置时区时间

1. 查看当前时间

date -R

2. 设置时区

timedatectl set-timezone Asia/Shanghai

3. 设置时间

先设置日期,再设置时间

date -s MM/DD/YY
date -s hh:mm:ss
hwclock --systohc  # 写入bios

  

 

posted @ 2023-01-13 12:01  梦过长亭  阅读(129)  评论(0编辑  收藏  举报