Swapoff

From wikieduonline
(Redirected from Swapoff -a)
Jump to navigation Jump to search

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: