From c0c75c948e1db778cbcf2bb88552ff11909b95c5 Mon Sep 17 00:00:00 2001 From: ivuorinen Date: Fri, 16 May 2025 00:20:13 +0000 Subject: [PATCH] Update cheatsheets --- tldr/linux/mkswap | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tldr/linux/mkswap b/tldr/linux/mkswap index dab5386f..c502921f 100644 --- a/tldr/linux/mkswap +++ b/tldr/linux/mkswap @@ -19,4 +19,12 @@ source: https://github.com/tldr-pages/tldr.git - Specify a label for the partition (to allow `swapon` to use the label): -`sudo mkswap {{[-L|--label]}} {{label}} {{/dev/sda1}}` +`sudo mkswap {{[-L|--label]}} {{label}} {{/dev/sdXY}}` + +- Use the specified UUID: + +`sudo mkswap {{[-U|--uuid]}} {{clear|random|time|UUID_value}}` + +- Set up a swap file (for btrfs, see `tldr btrfs filesystem` instead): + +`sudo mkswap {{[-s|--size]}} {{file_size}} {{[-F|--file]}} {{path/to/swapfile}}`