We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Linux的时间分为System Clock(系统时间)和Real Time Clock (硬件时间,简称RTC)。
查看系统时间的命令:#date
#date
设置系统时间的命令:#date –set(月/日/年 时:分:秒)
#date –set(月/日/年 时:分:秒)
例:#date –set "10/11/10 10:15"
#date –set "10/11/10 10:15"
查看硬件时间的命令:# hwclock
# hwclock
设置硬件时间的命令:# hwclock –set –date = (月/日/年 时:分:秒)
# hwclock –set –date = (月/日/年 时:分:秒)
上述提到的是手动设置时间到一个时间点,可能与当前网络的时间有误差。
# sudo apt-get install ntpdate
# ntpdate cn.pool.ntp.org
# hwclock --systohc
The text was updated successfully, but these errors were encountered:
markdown?
Sorry, something went wrong.
No branches or pull requests
ubuntu设置系统时间与网络时间同步
Linux的时间分为System Clock(系统时间)和Real Time Clock (硬件时间,简称RTC)。
查看系统时间的命令:
#date
设置系统时间的命令:
#date –set(月/日/年 时:分:秒)
例:
#date –set "10/11/10 10:15"
查看硬件时间的命令:
# hwclock
设置硬件时间的命令:
# hwclock –set –date = (月/日/年 时:分:秒)
上述提到的是手动设置时间到一个时间点,可能与当前网络的时间有误差。
与时间服务器上的时间同步的方法
The text was updated successfully, but these errors were encountered: