命令行修改linux时间

下面4个都可以:
date -s "20120827 15:04:00"
或者
date -s "2012-08-27 15:04:00"
或者
date -s "15:04:00 2012-08-27"

或者
date -s "15:04:00 20120827"
posted @ 2012-11-28 11:48  byfei  阅读(181)  评论(0编辑  收藏  举报