mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-02 16:43:08 +00:00
Update cheatsheets
This commit is contained in:
@@ -19,4 +19,12 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- 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}}`
|
||||
|
||||
Reference in New Issue
Block a user