mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-18 10:49:54 +00:00
Update cheatsheets
This commit is contained in:
22
linux/swaplabel
Normal file
22
linux/swaplabel
Normal file
@@ -0,0 +1,22 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# swaplabel
|
||||
|
||||
> Print or change the label or UUID of a swap area.
|
||||
> Note: `path/to/file` can either point to a regular file or a swap partition.
|
||||
> More information: <https://manned.org/swaplabel>.
|
||||
|
||||
- Display the current label and UUID of a swap area:
|
||||
|
||||
`swaplabel {{path/to/file}}`
|
||||
|
||||
- Set the label of a swap area:
|
||||
|
||||
`swaplabel --label {{new_label}} {{path/to/file}}`
|
||||
|
||||
- Set the UUID of a swap area (you can generate a UUID using `uuidgen`):
|
||||
|
||||
`swaplabel --uuid {{new_uuid}} {{path/to/file}}`
|
||||
Reference in New Issue
Block a user