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:
parent
57827f2844
commit
04ba54c6e7
1 changed files with 9 additions and 1 deletions
|
@ -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}}`
|
||||
|
|
Loading…
Add table
Reference in a new issue