Skip to content

Commit

Permalink
feat(linux): update datetime set
Browse files Browse the repository at this point in the history
  • Loading branch information
miaoyc666 committed Oct 31, 2024
1 parent 9e7be66 commit 9f53bb6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Linux/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,16 @@ ls -t | tail -n +2 | xargs echo
### 四、系统篇
#### 1.更改时区
```bash
# 查看时区
timedatectl
# 修改时区为上海
sudo timedatectl set-timezone Asia/Shanghai
```

#### 2.同步ntp时间
```bash
ntpdate ntp1.aliyun.com
# ntp服务器可换为其他
ntpdate time.windows.com
```

#### 3.修改日期时间
Expand Down

0 comments on commit 9f53bb6

Please sign in to comment.