Linux-關機命令


關機命令

shutdown [OPTION]... TIME [MESSAGE]

shutdown 選項+時間+信息

常見的關機命令有

shutdown -a ===>使用/etc/shutdown.allow 來驗證身份

shutdown -t  ===>t表示time 后面一般會接時間(s秒),表示多久之后,在發送kill信號

shutdown -r  ===> r表示reboot,重啟

shutdown -h ===> h表示halted停機。

shutdown -c ===> c表示cancels ,取消shutdown操作

shutdown -h 20:30 'This system will shutdown,please save your file'

表示在20:30關閉系統並提示告訴所有用戶,這個系統將關閉,請保存你的文件。

1 [root@VM_0_3_centos ~]# shutdown -h 20:30 'This system will shutdown,please save your file.'
2 
3 Broadcast message from root@VM_0_3_centos
4     (/dev/pts/0) at 19:47 ...
5 
6 The system is going down for halt in 43 minutes!
7 This system will shutdown,please save your file. 

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM