1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/linux/swapoff.md

378 B

swapoff

Disable devices and files for swapping. Note: path/to/file can either point to a regular file or a swap partition. More information: https://manned.org/swapoff.8.

  • Disable a given swap area:

swapoff {{path/to/file}}

  • Disable all swap areas in /proc/swaps:

swapoff {{[-a|--all]}}

  • Disable a swap partition by its label:

swapoff -L {{label}}