Skip to content

Instantly share code, notes, and snippets.

@aiwhj
Created April 26, 2018 06:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aiwhj/7e4cba00e221e5d8625ff57661e0fedf to your computer and use it in GitHub Desktop.
Save aiwhj/7e4cba00e221e5d8625ff57661e0fedf to your computer and use it in GitHub Desktop.
Linux 同步时间

选择时区

/usr/bin/tzselect

更新时区,添加

TZ='Asia/Shanghai'; export TZ 到用户 .profile

查看时区

date -R

同步时间,后跟 NTP 服务器,比如 s1b.time.edu.cn 清华大学

ntpdate -u

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment