JerryJee

记录生活点滴.

Linux修改服务器时间

Posted on 三月 29th, 2011 by Jerry Jee

修改linux的时间可以使用date指令

在命令行输入:

date
显示当前时间 11月 27日 10:03:16 CST 2008

date -s
按字符串方式修改时间
可以只修改日期,不修改时间,输入: date -s 2008-11-27
只修改时间,输入:date -s 10:03:00
同时修改日期时间,注意要加双引号,日期与时间之间有一空格,输入:date -s “2008-11-27 10:03:00″

修改完后,记得输入:hwclock -w
把系统时间写入CMOS

Popularity: 1%

Tags: ,

This entry was posted on 星期二, 三月 29th, 2011 at 00:34 and is filed under Linux. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

Leave a Response

You must be logged in to post a comment.