mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 23:24:55 +02:00
swapoff: add page (#2003)
This commit is contained in:
parent
b78c5184a6
commit
3d5fb28ceb
1 changed files with 19 additions and 0 deletions
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}}`
|
Loading…
Add table
Reference in a new issue