Difference between revisions of "Swapoff"
Jump to navigation
Jump to search
Tags: Mobile web edit, Mobile edit |
|||
(10 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <code>[[swapoff]]</code> command enable and disable devices and files for [[paging]] and [[swapping]]. In [[Ubuntu]] and [[Debian]] is included in the <code>[[mount]]</code> package. | + | <code>[[wikipedia:swapoff]]</code> command enable and disable devices and files for [[paging]] and [[swapping]]. In [[Ubuntu]] and [[Debian]] is included in the <code>[[mount]]</code> package. |
https://linux.die.net/man/8/swapoff | https://linux.die.net/man/8/swapoff | ||
+ | ==Examples== | ||
+ | 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
Contents
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]
- Swap,
swapon
,swapoff
,mkswap
,swaplabel
,free
,sar -r
,sar -S
,sar -W
,vmstat
,vm.swappiness
,/proc/swaps
,/etc/fstab
, Add a swap disk,systemd.swap
- File systems:
mount
,umount
,findmnt
,find
,swapon
,swapoff
,UUID, blkid
, mount options:/etc/fstab
,udisksctl mount
,guestmount
,/proc/mounts
,fstrim
,systemd-mount
,defaults
Advertising: