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

27 lines
1.5 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="shutdown">shutdown</h1>
<p>用来执行系统关机的命令</p>
<h2 id="补充说明">补充说明</h2>
<p><strong>shutdown命令</strong> 用来系统关机命令。shutdown指令可以关闭所有程序并依用户的需要进行重新开机或关机的动作。</p>
<h3 id="语法">语法</h3>
<pre><code class="language-bash">shutdown(选项)(参数)</code></pre>
<h3 id="选项">选项</h3>
<pre><code class="language-bash">-c当执行“shutdown -h 11:50”指令时只要按+键就可以中断关机的指令;
-f重新启动时不执行fsck
-F重新启动时执行fsck
-h将系统关机
-k只是送出信息给所有用户但不会实际关机
-n不调用init程序进行关机而由shutdown自己进行
-rshutdown之后重新启动
-t&lt;秒数&gt;:送出警告信息和删除信息之间要延迟多少秒。</code></pre>
<h3 id="参数">参数</h3>
<ul>
<li>[时间]设置多久时间后执行shutdown指令</li>
<li>[警告信息]:要传送给所有登入用户的信息。</li>
</ul>
<h3 id="实例">实例</h3>
<p>指定现在立即关机:</p>
<pre><code class="language-bash">shutdown -h now</code></pre>
<p>指定5分钟后关机同时送出警告信息给登入用户</p>
<pre><code class="language-bash">shutdown +5 &quot;System will shutdown after 5 minutes&quot;</code></pre>
<!-- Linux命令行搜索引擎https://jaywcjlove.github.io/linux-command/ -->