reboot【コマンド】
コマンドだよ
UNIX系で使えるよ
コンピュータを再起動するよ
スポンサーリンク
簡単に書くよ
reboot【コマンド】とは
コンピュータさんに対する命令文(コマンド)のひとつ
であり
コンピュータを再起動するときに使うコマンド
です。
詳しく書くよ
「reboot」コマンドは
コンピュータを再起動するときに使うコマンド
です。
UNIX系(LinuxとかMacとか)で使えます。
書き方は
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. |
| --reboot | コンピュータの電源を切る 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
を実行するのと同じ結果になります。
基本的な使い方は、それだけです。
オプションは必要に応じて勉強してください。
一言でまとめるよ
まぁ「reboot」ってコマンドが出てきたら「コンピュータを再起動するときに使うんだな~」と お考えください。
おまけ
■訳してみるよ
「re(リ)」という接頭辞が付くと「再び」とか「後ろへ」とか「反対に」のような意味になります。
「boot(ブート)」の意味は「(コンピュータの)起動」とか「ブーツ」とか「長靴」とかです。
何となく くっつけると
再び起動
となります。
■検索してみる?






