date 月日时分年.秒
date -s可以直接设置系统时间
比如将系统时间设定成1996年6月10日的命令如下。
#date -s 06/10/96
将系统时间设定成下午1点12分0秒的命令如下。
#date -s 13:12:00
时间同步
ntpdate asia.pool.ntp.org
转载于:https://blog.51cto.com/which/1301417
date 月日时分年.秒
date -s可以直接设置系统时间
比如将系统时间设定成1996年6月10日的命令如下。
#date -s 06/10/96
将系统时间设定成下午1点12分0秒的命令如下。
#date -s 13:12:00
时间同步
ntpdate asia.pool.ntp.org
转载于:https://blog.51cto.com/which/1301417