Difference between revisions of "Swapoff"

From wikieduonline
Jump to navigation Jump to search
Tags: Mobile web edit, Mobile edit
 
(8 intermediate revisions by the same user not shown)
Line 2: Line 2:
 
https://linux.die.net/man/8/swapoff
 
https://linux.die.net/man/8/swapoff
  
== Related commands ==
+
==Examples==
* [[swapon]]
+
swapoff [[/dev/mapper/]]rhvh-swap
 +
[[swapoff -a]] (disable all swaps from [[/proc/swaps]])
 +
 
 +
 
 +
swapoff
 +
swapoff: bad usage
 +
Try 'swapoff --help' for more information.
 +
 
 +
== Help ==
 +
<pre>
 +
swapoff --help
 +
 
 +
Usage:
 +
swapoff [options] [<spec>]
 +
 
 +
Disable devices and files for paging and swapping.
 +
 
 +
Options:
 +
-a, --all              disable all swaps from /proc/swaps
 +
-v, --verbose          verbose mode
 +
 
 +
-h, --help            display this help
 +
-V, --version          display version
 +
 
 +
The <spec> parameter:
 +
-L <label>            LABEL of device to be used
 +
-U <uuid>              UUID of device to be used
 +
LABEL=<label>          LABEL of device to be used
 +
UUID=<uuid>            UUID of device to be used
 +
<device>              name of device to be used
 +
<file>                name of file to be used
  
 +
For more details see swapoff(8).
 +
</pre>
  
 +
== Related commands ==
 +
*<code> [[swapon]]</code>
  
 
== See also ==
 
== See also ==

Latest revision as of 07:24, 6 May 2021

wikipedia:swapoff command enable and disable devices and files for paging and swapping. In Ubuntu and Debian is included in the mount package. https://linux.die.net/man/8/swapoff

Examples[edit]

swapoff /dev/mapper/rhvh-swap
swapoff -a (disable all swaps from /proc/swaps)


swapoff
swapoff: bad usage
Try 'swapoff --help' for more information.

Help[edit]

swapoff --help

Usage:
 swapoff [options] [<spec>]

Disable devices and files for paging and swapping.

Options:
 -a, --all              disable all swaps from /proc/swaps
 -v, --verbose          verbose mode

 -h, --help             display this help
 -V, --version          display version

The <spec> parameter:
 -L <label>             LABEL of device to be used
 -U <uuid>              UUID of device to be used
 LABEL=<label>          LABEL of device to be used
 UUID=<uuid>            UUID of device to be used
 <device>               name of device to be used
 <file>                 name of file to be used

For more details see swapoff(8).

Related commands[edit]

See also[edit]

Advertising: