0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

[Linux][command] システムシャットダウン_shutdown, systemctl, init, telinit

Last updated at Posted at 2025-02-08

システムシャットダウン一覧

コマンド 説明
shutdown システムのシャットダウンスケジュール・ユーザーへの警告メッセージの送信
使用例:
- shutdown -h now:即座にシャットダウン
- shutdown -h +5 "システムは5分後にシャットダウンします":5分後にシャットダウンし、メッセージを表示
- shutdown -h 22:00:当日の22:00にシャットダウンをスケジュール
systemctl systemd システムでのサービスやシステムを管理
使用例:
- systemctl poweroff:即座にシャットダウン
- systemctl start poweroff.target:即座にシャットダウン
init ランレベルを変更することでシステムの状態を変更
使用例:
- init 0:シャットダウン
telinit ランレベルを変更することでシステムの状態を変更
使用例:
- telinit 0:シャットダウン

shutdownコマンド

$ shutdown [オプション] 時間 [メッセージ]
$ shutdown [オプション] +現在からの経過時間 [メッセージ]
オプション 英語の由来 説明
デフォルト システムをシャットダウンする(デフォルトでは -h オプション)
-h halt システムを停止する(シャットダウン)
-r reboot システムを再起動する
-k kick シャットダウンするが実際にはシステムを停止しない、警告のみを表示
-c cancel 進行中のシャットダウンまたは再起動をキャンセルする

Ping-t

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?