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
2022-01-25 12:47:56 -03:00

20 lines
330 B
Markdown

# swapoff
> Disables device or file for swapping.
> More information: <https://manned.org/swapoff>.
- Disable a given swap partition:
`swapoff {{/dev/sdb7}}`
- Disable a given swap file:
`swapoff {{path/to/file}}`
- Disable all swap areas:
`swapoff -a`
- Disable swap by label of a device or file:
`swapoff -L {{swap1}}`