「分かりそう」で「分からない」でも「分かった」気になれるLinuxコマンド辞典イメージぴよ画像「分かりそう」で「分からない」でも「分かった」気になれるLinuxコマンド辞典

reboot

スポンサーリンク

何するコマンド?

コンピュータを再起動するときに使うコマンド



書き方

reboot [オプション]



オプション

オプション説明
--helpヘルプを表示する
Print a short help text and exit.
--haltシステムを停止する。コンピュータの電源を切れる状態にする
Halt the machine, regardless of which one of the three commands is invoked.
-pコンピュータの電源を切る
Power-off the machine, regardless of which one of the three commands is invoked.
--poweroffコンピュータの電源を切る
Power-off the machine, regardless of which one of the three commands is invoked.
--rebootコンピュータを再起動する
Reboot the machine, regardless of which one of the three commands is invoked.
-f強制的に終了する
Force immediate halt, power-off, reboot. Do not contact the init system.
--force強制的に終了する
Force immediate halt, power-off, reboot. Do not contact the init system.
-w/var/log/wtmp」に記録を残すけど、実際の終了処理はやらない
Only write wtmp shutdown entry, do not actually halt, power-off, reboot.
--wtmp-only「/var/log/wtmp」に記録を残すけど、実際の終了処理はやらない
Only write wtmp shutdown entry, do not actually halt, power-off, reboot.
-d「/var/log/wtmp」に記録を残さない
Do not write wtmp shutdown entry.
--no-wtmp「/var/log/wtmp」に記録を残さない
Do not write wtmp shutdown entry.
--no-wall終了前のメッセージを表示しない
Do not send wall message before halt, power-off, reboot.

補足事項

オプションを何も指定しないで

reboot

を実行すると、コンピュータが再起動されます。

shutdown」コマンドを使って

shutdown -r now

を実行するのと同じ結果になります。

スポンサーリンク


書籍画像