From 3d5fb28ceb48e7d9f98e966612edf3b9e08c9dd1 Mon Sep 17 00:00:00 2001 From: Shashank Shekhar Date: Sat, 17 Feb 2018 17:57:28 +0530 Subject: [PATCH] swapoff: add page (#2003) --- pages/linux/swapoff.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 pages/linux/swapoff.md diff --git a/pages/linux/swapoff.md b/pages/linux/swapoff.md new file mode 100644 index 0000000000..cc84c76705 --- /dev/null +++ b/pages/linux/swapoff.md @@ -0,0 +1,19 @@ +# swapoff + +> Disables device or file for swapping. + +- Disable a given swap partition: + +`swapoff {{/dev/sdb7}}` + +- Disable a given swap file: + +`swapoff {{path/to/file}}` + +- Disable all swap areas: + +`swapoff -a` + +- Disable swap by label of a device or file: + +`swapoff -L {{swap1}}`