mirror of
https://github.com/fofolee/uTools-Manuals.git
synced 2026-03-05 21:26:19 +08:00
语法高亮,滚动条美化,设置页面调整
This commit is contained in:
@@ -3,9 +3,9 @@
|
||||
<h2 id="补充说明">补充说明</h2>
|
||||
<p><strong>swapon命令</strong> 用于激活Linux系统中交换空间,Linux系统的内存管理必须使用交换区来建立虚拟内存。</p>
|
||||
<h3 id="语法">语法</h3>
|
||||
<pre><code>swapon(选项)(参数)</code></pre>
|
||||
<pre><code class="language-bash">swapon(选项)(参数)</code></pre>
|
||||
<h3 id="选项">选项</h3>
|
||||
<pre><code>-a:将/etc/fstab文件中所有设置为swap的设备,启动为交换区;
|
||||
<pre><code class="language-bash">-a:将/etc/fstab文件中所有设置为swap的设备,启动为交换区;
|
||||
-h:显示帮助;
|
||||
-p<优先顺序>:指定交换区的优先顺序;
|
||||
-s:显示交换区的使用状况;
|
||||
@@ -13,7 +13,7 @@
|
||||
<h3 id="参数">参数</h3>
|
||||
<p>交换空间:指定需要激活的交换空间,可以是交换文件和交换分区,如果是交换分区则指定交换分区对应的设备文件。</p>
|
||||
<h3 id="实例">实例</h3>
|
||||
<pre><code>mkswap -c /dev/hdb4 (-c是检查有无坏块)
|
||||
<pre><code class="language-bash">mkswap -c /dev/hdb4 (-c是检查有无坏块)
|
||||
swapon -v /dev/hdb4
|
||||
swapon -s
|
||||
Filename type Size Used Priority
|
||||
|
||||
Reference in New Issue
Block a user