1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-08-04 00:15:32 +02:00

mkswap: update page (#16496)

This commit is contained in:
Lena 2025-05-15 13:40:48 +00:00 committed by GitHub
parent 57827f2844
commit 04ba54c6e7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -14,4 +14,12 @@
- Specify a label for the partition (to allow `swapon` to use the label):
`sudo mkswap {{[-L|--label]}} {{label}} {{/dev/sda1}}`
`sudo mkswap {{[-L|--label]}} {{label}} {{/dev/sdXY}}`
- Use the specified UUID:
`sudo mkswap {{[-U|--uuid]}} {{clear|random|time|UUID_value}}`
- Set up a swap file (for btrfs, see `tldr btrfs filesystem` instead):
`sudo mkswap {{[-s|--size]}} {{file_size}} {{[-F|--file]}} {{path/to/swapfile}}`