Swapoff
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
swapoff /dev/mapper/rhvh-swap swapoff -a
swapoff swapoff: bad usage Try 'swapoff --help' for more information.
Help
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
See also
- 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: