zoukankan      html  css  js  c++  java
  • linux修改系统日期与时间

    修改时区cp /usr/share/zoneinfo/UTC /etc/localtime

    [hayuk@localhost qinghua]$ date
    2012年 11月 02日 星期五 08:04:30 CST

    [hayuk@localhost qinghua]$ su - root
    口令:

    [root@localhost ~]# cp /usr/share/zoneinfo/UTC /etc/localtime
    cp:是否覆盖“/etc/localtime”? y
    [root@localhost ~]# date
    2012年 11月 02日 星期五 00:07:30 UTC

    修改系统日期与时间date -s "2012-11-03 10:25:25"

    [root@localhost ~]# date
    2012年 11月 02日 星期五 00:08:27 UTC

    [root@localhost ~]# date -s "2012-11-03 10:25:25"
    2012年 11月 03日 星期六 10:25:25 UTC
    [root@localhost ~]# date
    2012年 11月 03日 星期六 10:25:27 UTC

  • 相关阅读:
    单例 与 static
    ActiveMQ 核心概念
    Jconsole
    死锁
    document write & close
    java.nio.Buffer
    Java 线程控制(输出奇偶数)
    exist & in
    命运
    Super Jumping! Jumping! Jumping!
  • 原文地址:https://www.cnblogs.com/liangxiaxu/p/2752254.html
Copyright © 2011-2022 走看看