From cd60bb2ba6b90057feacda2cf7bb3807f648cede Mon Sep 17 00:00:00 2001 From: Managor <42655600+Managor@users.noreply.github.com> Date: Sat, 28 Jun 2025 12:47:56 +0300 Subject: [PATCH] linux/g*: add option placeholders and mnemonics (#16999) --- pages/linux/gdebi.md | 8 ++++---- pages/linux/gnome-screenshot.md | 12 ++++++------ pages/linux/growpart.md | 2 +- pages/linux/grub-bios-setup.md | 4 ++-- pages/linux/gummy.md | 10 +++++----- pages/linux/gzexe.md | 2 +- 6 files changed, 19 insertions(+), 19 deletions(-) diff --git a/pages/linux/gdebi.md b/pages/linux/gdebi.md index c965572c35..67e746ab93 100644 --- a/pages/linux/gdebi.md +++ b/pages/linux/gdebi.md @@ -1,7 +1,7 @@ # gdebi > Easily install `.deb` files. -> More information: . +> More information: . - Install local `.deb` packages resolving and installing its dependencies: @@ -9,15 +9,15 @@ - Do not show progress information: -`gdebi {{path/to/package.deb}} --quiet` +`gdebi {{path/to/package.deb}} {{[-q|--quiet]}}` - Set an APT configuration option: -`gdebi {{path/to/package.deb}} --option={{APT_OPTS}}` +`gdebi {{path/to/package.deb}} {{[-o|--option]}} {{APT_OPTS}}` - Use alternative root dir: -`gdebi {{path/to/package.deb}} --root={{path/to/root_dir}}` +`gdebi {{path/to/package.deb}} --root {{path/to/root_dir}}` - Display version: diff --git a/pages/linux/gnome-screenshot.md b/pages/linux/gnome-screenshot.md index aaed14a7c0..14d6d272e6 100644 --- a/pages/linux/gnome-screenshot.md +++ b/pages/linux/gnome-screenshot.md @@ -9,27 +9,27 @@ - Take a screenshot and save it to the named file location: -`gnome-screenshot --file {{path/to/file}}` +`gnome-screenshot {{[-f|--file]}} {{path/to/file}}` - Take a screenshot and save it to the clipboard: -`gnome-screenshot --clipboard` +`gnome-screenshot {{[-c|--clipboard]}}` - Take a screenshot after the specified number of seconds: -`gnome-screenshot --delay {{5}}` +`gnome-screenshot {{[-d|--delay]}} {{5}}` - Launch the GNOME Screenshot GUI: -`gnome-screenshot --interactive` +`gnome-screenshot {{[-i|--interactive]}}` - Take a screenshot of the current window and save it to the specified file location: -`gnome-screenshot --window --file {{path/to/file}}` +`gnome-screenshot {{[-w|--window]}} {{[-f|--file]}} {{path/to/file}}` - Take a screenshot after the specified number of seconds and save it to the clipboard: -`gnome-screenshot --delay {{10}} --clipboard` +`gnome-screenshot {{[-d|--delay]}} {{10}} {{[-c|--clipboard]}}` - Display the version: diff --git a/pages/linux/growpart.md b/pages/linux/growpart.md index 169d9bee41..4a9756999f 100644 --- a/pages/linux/growpart.md +++ b/pages/linux/growpart.md @@ -9,4 +9,4 @@ - Show what modifications would be made when growing partition `n` in a disk image: -`growpart --dry-run {{/path/to/disk.img}} {{n}}` +`growpart {{[-N|--dry-run]}} {{/path/to/disk.img}} {{n}}` diff --git a/pages/linux/grub-bios-setup.md b/pages/linux/grub-bios-setup.md index d91ee25164..e387b8f544 100644 --- a/pages/linux/grub-bios-setup.md +++ b/pages/linux/grub-bios-setup.md @@ -10,8 +10,8 @@ - Install even if problems are detected: -`grub-bios-setup --force {{/dev/sdX}}` +`grub-bios-setup {{[-f|--force]}} {{/dev/sdX}}` - Install GRUB in a specific directory: -`grub-bios-setup --directory={{/boot/grub}} {{/dev/sdX}}` +`grub-bios-setup {{[-d|--directory]}} {{/boot/grub}} {{/dev/sdX}}` diff --git a/pages/linux/gummy.md b/pages/linux/gummy.md index 94ae4d7f0d..56388fd169 100644 --- a/pages/linux/gummy.md +++ b/pages/linux/gummy.md @@ -5,7 +5,7 @@ - Set the screen temperature to 3000K: -`gummy --temperature {{3000}}` +`gummy {{[-t|--temperature]}} {{3000}}` - Set the screen backlight to 50%: @@ -13,16 +13,16 @@ - Set the screen pixel brightness to 45%: -`gummy --brightness {{45}}` +`gummy {{[-b|--brightness]}} {{45}}` - Increase current screen pixel brightness by 10%: -`gummy --brightness {{+10}}` +`gummy {{[-b|--brightness]}} {{+10}}` - Decrease current screen pixel brightness by 10%: -`gummy --brightness {{-10}}` +`gummy {{[-b|--brightness]}} {{-10}}` - Set the temperature and pixel brightness for the second screen: -`gummy --screen {{1}} --temperature {{3800}} --brightness {{65}}` +`gummy {{[-s|--screen]}} {{1}} {{[-t|--temperature]}} {{3800}} {{[-b|--brightness]}} {{65}}` diff --git a/pages/linux/gzexe.md b/pages/linux/gzexe.md index 25dc92e9b4..3e22aa2955 100644 --- a/pages/linux/gzexe.md +++ b/pages/linux/gzexe.md @@ -8,6 +8,6 @@ `gzexe {{path/to/executable}}` -- Decompress a compressed executable in-place (i.e. convert the shell script back to an uncompressed binary): +- [d]ecompress a compressed executable in-place (i.e. convert the shell script back to an uncompressed binary): `gzexe -d {{path/to/compressed_executable}}`