shutdown
雙陽網(wǎng)站建設(shè)公司創(chuàng)新互聯(lián)公司,雙陽網(wǎng)站設(shè)計(jì)制作,有大型網(wǎng)站制作公司豐富經(jīng)驗(yàn)。已為雙陽成百上千提供企業(yè)網(wǎng)站建設(shè)服務(wù)。企業(yè)網(wǎng)站搭建\成都外貿(mào)網(wǎng)站建設(shè)公司要多少錢,請(qǐng)找那個(gè)售后服務(wù)好的雙陽做網(wǎng)站的公司定做!
功能說明:系統(tǒng)關(guān)機(jī)命令
語法:shutdown [-t sec] [-arkhncfFHP] time [warning-message]
包名稱:SysVinit
相關(guān)命令:halt,reboot
補(bǔ)充說明:本命令可以關(guān)閉所有的程序,并依用戶的需要,進(jìn)行重新開機(jī)或關(guān)機(jī)的操作。Shutdown命令可以指定系統(tǒng)在特定時(shí)間關(guān)機(jī),但僅限于當(dāng)日。若需指定在特定日期關(guān)機(jī),則需搭配at命令執(zhí)行。
參數(shù):
-a
Use /etc/shutdown.allow.
-t sec
Tell init(8) to wait sec seconds between sending processes the warning and the kill signal, before changing to another runlevel.
-k
Don't really shutdown; only send the warning messages to everybody.
-r
Reboot after shutdown.
-h
Halt or poweroff after shutdown.
-H
Halt action is to halt or drop into boot monitor on systems that support it.
-P
Halt action is to turn off the power.
-n
[DEPRECATED] Don't call init(8) to do the shutdown but do it ourself. The use of this option is discouraged, and its results are not always what you'd expect.
-f
Skip fsck on reboot.
-F
Force fsck on reboot.
-c
Cancel an already running shutdown. With this option it is of course not possible to give the time argument, but you can enter a explanatory message on the command line that will be sent to all users.
time
When to shutdown.
warning-message
Message to send to all users.
范例:
1)立即關(guān)閉系統(tǒng):
# shutdown -h now
2)執(zhí)定在21:10將系統(tǒng)重新開機(jī):
# shutdown -r 21:10
3)指定10分鐘后關(guān)機(jī),并發(fā)送警告信息:
# shutdown +10 “conputer will shut down”
4)取消關(guān)機(jī):
# shutdown -c
Linux常用的有3中進(jìn)入終端界面方法,分別如下:
1、按快捷鍵“Ctrl+Alt+T”即可打開終端窗口
2、或者按“Ctrl+Alt+F1-F6”均可進(jìn)入終端(模擬終端,不顯示桌面)
3、直接搜索“終端”并進(jìn)入
注意事項(xiàng):
如果采用方法2的F1-F6的方法,返回圖形界面只要按“Ctrl+Alt+F7即可”。
1、使用快捷鍵:Ctrl加Alt加T,此時(shí)終端為桌面版終端命令窗口。
2、使用搜索框:在搜索框內(nèi)搜索終端并進(jìn)入。
3、使用快捷鍵:Ctrl+加Alt加F1到F6都可以,此時(shí)打開的是全文字終端,圖形界面將會(huì)被關(guān)閉。
注意事項(xiàng):如果采用了F1到F6的方法,返回圖形界面只要按Ctrl加Alt加F7即可。