tldr/pages/linux/swapoff.md

18 lines
367 B
Markdown
Raw Normal View History

2018-02-17 12:27:28 +00:00
# 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>.
2018-02-17 12:27:28 +00:00
- Disable a given swap area:
2018-02-17 12:27:28 +00:00
`swapoff {{path/to/file}}`
- Disable all swap areas in `/proc/swaps`:
2018-02-17 12:27:28 +00:00
`swapoff --all`
2018-02-17 12:27:28 +00:00
- Disable a swap partition by its label:
2018-02-17 12:27:28 +00:00
`swapoff -L {{label}}`