swaplabel
linux
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 info →Options (2)
-L, --labelbooleanSet the label of a swap area
Example:
swaplabel {{[-L|--label]}} {{new_label}} {{path/to/file}}-U, --uuidbooleanSet the UUID of a swap area (you can generate a UUID using `uuidgen`)
Example:
swaplabel {{[-U|--uuid]}} {{new_uuid}} {{path/to/file}}made by @shridhargupta | data from tldr-pages