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>.
Install
- All systems
-
curl cmd.cat/swaplabel.sh
- Debian
-
apt-get install util-linux - Ubuntu
-
apt-get install util-linux -
Alpine
-
apk add util-linux - Arch Linux
-
pacman -S util-linux - Kali Linux
-
apt-get install util-linux - CentOS
-
yum install util-linux - Fedora
-
dnf install util-linux - Windows (WSL2)
-
sudo apt-get updatesudo apt-get install util-linux - OS X
-
brew install util-linux - Raspbian
-
apt-get install util-linux - Docker
-
docker run cmd.cat/swaplabel swaplabelpowered by Commando
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
© tl;dr; authors and contributors