Linuxコマンド | その他 | shutdown システム終了
shutdownコマンド
shutdownコマンドは、システムを終了するときに一般的に使用します。
使用方法
shutdown [オプション] 時間 [メッセージ]
オプション
-t n:-tオプションの後にn秒を指定し、警告メッセージを送った後、n秒後にkillシグナルを送ります。-h: shutdown時にhaltを実行します。-r: システム終了を完了した後、再起動処理を実行します。-c: すでに予約されているshutdownをキャンセルします。-k: すべての動作を通常どおり実行しますが、システムを終了する時刻になっても何もしません。“just kidding"の意味です。
すぐに終了する
[kimkc@localhost home]$ shutdown now
==== AUTHENTICATING FOR org.freedesktop.login1.power-off ===
Authentication is required for powering off the system.
Authenticating as: root
Password: