From 726b272e1287d016d5722e5c73b686d94cd20823 Mon Sep 17 00:00:00 2001 From: Shashank Shekhar Date: Thu, 15 Feb 2018 01:30:27 +0530 Subject: [PATCH] swapon: add page (#1996) --- pages/linux/swapon.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 pages/linux/swapon.md diff --git a/pages/linux/swapon.md b/pages/linux/swapon.md new file mode 100644 index 0000000000..89cd4448a2 --- /dev/null +++ b/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}}`