uTools-Manuals/docs/linux/reboot.html
2019-04-21 11:50:48 +08:00

17 lines
1.0 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<h1 id="reboot">reboot</h1>
<p>重新启动正在运行的Linux操作系统</p>
<h2 id="补充说明">补充说明</h2>
<p><strong>reboot命令</strong> 用来重新启动正在运行的Linux操作系统。</p>
<h3 id="语法">语法</h3>
<pre><code class="language-bash">reboot(选项)</code></pre>
<h3 id="选项">选项</h3>
<pre><code class="language-bash">-d重新开机时不把数据写入记录文件/var/tmp/wtmp。本参数具有“-n”参数效果
-f强制重新开机不调用shutdown指令的功能
-i在重开机之前先关闭所有网络界面
-n重开机之前不检查是否有未结束的程序
-w仅做测试并不真正将系统重新开机只会把重开机的数据写入/var/log目录下的wtmp记录文件。</code></pre>
<h3 id="实例">实例</h3>
<pre><code class="language-bash">reboot //重开机。
reboot -w //做个重开机的模拟(只有纪录并不会真的重开机)。</code></pre>
<!-- Linux命令行搜索引擎https://jaywcjlove.github.io/linux-command/ -->