centos 修改時間

來源:互聯網
上載者:User

標籤:linux 修改時間

當我們使用CentOS時候,發現bios系統時間不對,那這個時候我們怎麼修改了?
方法如下:


[[email protected] ~]# hwclock --show    //顯示當前bios 時間

2015年06月28日 星期日 12時55分28秒  -0.826052 seconds

[[email protected] ~]# date              //顯示目前時間

2015年 06月 30日 星期二 16:32:03 CST

[[email protected] ~]# hwclock --systohc //用目前時間來同步bios( --hctosys 表示用bios時間來同步)

[[email protected] ~]# hwclock --show

2015年06月30日 星期二 16時33分31秒  -1.040833 seconds

[[email protected] ~]# date

2015年 06月 30日 星期二 16:33:41 CST

[[email protected] ~]#


修改目前時間的方法如下:

[[email protected] ~]# date -s 06/18/15     //把日期修改為2015年6月18日

2015年 06月 18日 星期四 00:00:00 CST

[[email protected] ~]# date

2015年 06月 18日 星期四 00:00:11 CST  //注意:此時時間是 00:00:11

[[email protected] ~]# date -s 14:20:50    //把時間修改為14:20:50

2015年 06月 18日 星期四 14:20:50 CST

[[email protected] ~]#



centos 修改時間

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.