Linux系統(tǒng)顯示系統(tǒng)日期及關(guān)機(jī)重啟等命令
Linux教程
2022-09-16 16:28
7393
-
date顯示系統(tǒng)日期
cal 2007 #顯示2007年的日歷表
date 041217002007.00 #設(shè)置日期和時間 - 月日時分年.秒
clock -w #將時間修改保存到 BIOS
-
關(guān)機(jī)【系統(tǒng)關(guān)機(jī)、重啟以及登錄】
shutdown -h now #關(guān)閉系統(tǒng)(1)
init 0 #關(guān)閉系統(tǒng)(2)
telinit 0 #關(guān)閉系統(tǒng)(3)
shutdown -h hours:minutes & #按預(yù)定時間關(guān)閉系統(tǒng)
shutdown -c #取消按預(yù)定時間關(guān)閉系統(tǒng)
shutdown -r now #重啟(1)
reboot #重啟(2)
logout #注銷