swaplabel Command Examples

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.

swaplabel {{path/to/file}}

swaplabel --label {{new_label}} {{path/to/file}}

swaplabel --uuid {{new_uuid}} {{path/to/file}}