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

18 lines
976 B
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="poweroff">poweroff</h1>
<p>关闭Linux系统关闭记录会被写入到/var/log/wtmp日志文件中。</p>
<h2 id="补充说明">补充说明</h2>
<p><strong>grename命令</strong> 可以重命名卷组的名称。</p>
<h3 id="语法">语法</h3>
<pre><code class="language-bash">poweroff [选项]</code></pre>
<h3 id="选项">选项</h3>
<pre><code class="language-bash">-n 关闭之前不同步
-p 当被称为halt时关闭电源
-v 增加输出,包括消息
-q 降低输出错误唯一的消息
-w 并不实际关闭系统,只是写入/var/log/wtmp文件中
-f 强制关机不调用shutdown</code></pre>
<h3 id="例子">例子</h3>
<p>关闭Linux系统。</p>
<div class="sourceCode" id="cb3"><pre><code class="language-bash"><a class="sourceLine" id="cb3-1" data-line-number="1">[<span class="ex">root@localhost</span> ~]# poweroff</a></code></pre></div>
<!-- Linux命令行搜索引擎https://jaywcjlove.github.io/linux-command/ -->