1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 18:42:07 +02:00
tldr/pages/linux/swaplabel.md
Managor f1dd9de886
swaplabel: add page (#10462)
* swaplabel: add page

---------

Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>
2023-07-08 23:47:10 +05:30

17 lines
489 B
Markdown

# 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}}`