mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-26 14:53:07 +00:00
Update cheatsheets
This commit is contained in:
22
linux/swapoff
Normal file
22
linux/swapoff
Normal file
@@ -0,0 +1,22 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# 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>.
|
||||
|
||||
- Disable a given swap area:
|
||||
|
||||
`swapoff {{path/to/file}}`
|
||||
|
||||
- Disable all swap areas in `/proc/swaps`:
|
||||
|
||||
`swapoff --all`
|
||||
|
||||
- Disable a swap partition by its label:
|
||||
|
||||
`swapoff -L {{label}}`
|
||||
Reference in New Issue
Block a user