2019-04-21 11:50:48 +08:00

17 lines
861 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="sum">sum</h1>
<p>计算文件的校验码和显示块数</p>
<h2 id="补充说明">补充说明</h2>
<p><strong>sum命令</strong> 用于计算并显示指定文件的校验和与文件所占用的磁盘块数。</p>
<h3 id="语法">语法</h3>
<pre><code class="language-bash">sum(选项)(参数)</code></pre>
<h3 id="选项">选项</h3>
<pre><code class="language-bash">-r使用BSD的校验和算法块大小为1k
-s使用system V的校验和算法块大小为512字节。</code></pre>
<h3 id="参数">参数</h3>
<p>文件列表:需要计算和与磁盘块数的文件列表。</p>
<h3 id="实例">实例</h3>
<p>计算文件校验码:</p>
<pre><code class="language-bash">[root@localhost ~]# sum insert.sql
00827 12</code></pre>
<!-- Linux命令行搜索引擎https://jaywcjlove.github.io/linux-command/ -->