瀏覽代碼

swapon: add page (#1996)

Shashank Shekhar 7 年之前
父節點
當前提交
726b272e12
共有 1 個文件被更改,包括 23 次插入0 次删除
  1. 23 0
      pages/linux/swapon.md

+ 23 - 0
pages/linux/swapon.md

@@ -0,0 +1,23 @@
+# swapon
+
+> Enables device or file for swapping.
+
+- Get swap information:
+
+`swapon -s`
+
+- Enable a given swap partition:
+
+`swapon {{/dev/sdb7}}`
+
+- Enable a given swap file:
+
+`swapon {{path/to/file}}`
+
+- Enable all swap areas:
+
+`swapon -a`
+
+- Enable swap by label of a device or file:
+
+`swapon -L {{swap1}}`