swaplabel: add page (#10462)

* swaplabel: add page

---------

Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>
pull/23/head
Managor 2023-07-08 21:17:10 +03:00 committed by GitHub
parent 513629e52b
commit f1dd9de886
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 17 additions and 0 deletions

17
pages/linux/swaplabel.md Normal file
View File

@ -0,0 +1,17 @@
# 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}}`