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
を実行するのと同じ結果になります。
