swapoff: add page (#2003)
This commit is contained in:

committed by
Owen Voke

parent
b78c5184a6
commit
3d5fb28ceb
19
pages/linux/swapoff.md
Normal file
19
pages/linux/swapoff.md
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
# swapoff
|
||||||
|
|
||||||
|
> Disables device or file for swapping.
|
||||||
|
|
||||||
|
- 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}}`
|
Reference in New Issue
Block a user