From f1dd9de886d8711cc4e2f2aa87b312690685628f Mon Sep 17 00:00:00 2001 From: Managor <42655600+Managor@users.noreply.github.com> Date: Sat, 8 Jul 2023 21:17:10 +0300 Subject: [PATCH] swaplabel: add page (#10462) * swaplabel: add page --------- Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com> --- pages/linux/swaplabel.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 pages/linux/swaplabel.md diff --git a/pages/linux/swaplabel.md b/pages/linux/swaplabel.md new file mode 100644 index 000000000..f5272a340 --- /dev/null +++ b/pages/linux/swaplabel.md @@ -0,0 +1,17 @@ +# 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: . + +- 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}}`