System Grab Bag

View all TLDR pages from Linux (or from all pages)

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

License and Disclaimer

The content on this page is copyright © 2014—present the tldr-pages team and contributors.
This page is used with permission under Creative Commons Attribution 4.0 International License.

While we do attempt to make sure content is accurate, there isn't a warranty of any kind.