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/swapon.md

25 lines
357 B
Markdown
Raw Normal View History

2018-02-15 01:30:27 +05:30
# swapon
> Enables device or file for swapping.
> More information: <https://manned.org/swapon>.
2018-02-15 01:30:27 +05:30
- Get swap information:
`swapon -s`
- Enable a given swap partition:
`swapon {{/dev/sdb7}}`
- Enable a given swap file:
`swapon {{path/to/file}}`
- Enable all swap areas:
`swapon -a`
- Enable swap by label of a device or file:
`swapon -L {{swap1}}`