From d185573d5df76d1d4ef74ca002f4d7418d0bf0bf Mon Sep 17 00:00:00 2001 From: ivuorinen Date: Sat, 11 Oct 2025 00:18:10 +0000 Subject: [PATCH] Update cheatsheets --- tldr/gh-preview | 14 ++++++++++++ tldr/linux/evince | 29 +++++++++++++++++++++++++ tldr/linux/grub-mount | 41 ++++++++++++++++++++++++++++++++++++ tldr/linux/lsmem | 21 ++++++++++++++++++ tldr/linux/modprobe | 2 +- tldr/linux/pvchange | 37 ++++++++++++++++++++++++++++++++ tldr/linux/systemctl-default | 17 +++++++++++++++ tldr/mvn-compile | 25 ++++++++++++++++++++++ tldr/pulumi-up | 8 +++++++ 9 files changed, 193 insertions(+), 1 deletion(-) create mode 100644 tldr/gh-preview create mode 100644 tldr/linux/evince create mode 100644 tldr/linux/grub-mount create mode 100644 tldr/linux/lsmem create mode 100644 tldr/linux/pvchange create mode 100644 tldr/linux/systemctl-default create mode 100644 tldr/mvn-compile diff --git a/tldr/gh-preview b/tldr/gh-preview new file mode 100644 index 00000000..745030db --- /dev/null +++ b/tldr/gh-preview @@ -0,0 +1,14 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# gh preview + +> Preview GitHub CLI programs for testing and development purposes. +> These commands are unstable and may change at any time. +> More information: . + +- Run a specific preview command: + +`gh preview {{command}}` diff --git a/tldr/linux/evince b/tldr/linux/evince new file mode 100644 index 00000000..3f48b273 --- /dev/null +++ b/tldr/linux/evince @@ -0,0 +1,29 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# evince + +> View documents. +> More information: . + +- Open a PDF file: + +`evince {{path/to/file.pdf}}` + +- Open multiple documents: + +`evince {{file1.pdf file2.pdf ...}}` + +- Open in fullscreen mode: + +`evince {{[-f|--fullscreen]}} {{path/to/file.pdf}}` + +- Open in presentation mode: + +`evince {{[-s|--presentation]}} {{path/to/file.pdf}}` + +- Open a specific page number: + +`evince {{[-i|--page-index]}} {{5}} {{path/to/file.pdf}}` diff --git a/tldr/linux/grub-mount b/tldr/linux/grub-mount new file mode 100644 index 00000000..312ebc69 --- /dev/null +++ b/tldr/linux/grub-mount @@ -0,0 +1,41 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# grub-mount + +> Mount a file system or file system image read-only using GRUB's file system drivers. +> More information: . + +- Mount a block device or file system image to a mount point: + +`grub-mount {{/dev/sdXY}} {{/mnt}}` + +- Mount an entire disk image's second partition, `-r` specifies the partition number in the image: + +`grub-mount {{[-r|--root]}} {{2}} {{disk.img}} {{/mnt}}` + +- Mount an encrypted device and prompt for a passphrase: + +`grub-mount {{[-C|--crypto]}} {{/dev/sdXY}} {{/mnt}}` + +- Load a ZFS encryption key from a file: + +`grub-mount {{[-K|--zfs-key]}} {{/path/to/zfs.key}} {{/dev/sdX}} {{/mnt}}` + +- Show debugging output for a matching category: + +`grub-mount {{[-d|--debug]}} {{string}} {{image}} {{/mnt}}` + +- Enable verbose output: + +`grub-mount {{[-v|--verbose]}} {{image}} {{/mnt}}` + +- Display help: + +`grub-mount {{[-?|--help]}}` + +- Display version: + +`grub-mount --version` diff --git a/tldr/linux/lsmem b/tldr/linux/lsmem new file mode 100644 index 00000000..a8f35aba --- /dev/null +++ b/tldr/linux/lsmem @@ -0,0 +1,21 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# lsmem + +> List the characteristics of the system's memory, including size and type of memory modules. +> More information: . + +- List memory information: + +`lsmem` + +- List memory information in JSON format: + +`lsmem {{[-J|--json]}}` + +- List memory information with size in bytes: + +`lsmem {{[-b|--bytes]}}` diff --git a/tldr/linux/modprobe b/tldr/linux/modprobe index 4edeeb6b..73d82714 100644 --- a/tldr/linux/modprobe +++ b/tldr/linux/modprobe @@ -23,7 +23,7 @@ source: https://github.com/tldr-pages/tldr.git - Remove a module and those that depend on it from the kernel: -`sudo modprobe --remove-dependencies {{module_name}}` +`sudo modprobe {{[-r|--remove]}} --remove-holders {{module_name}}` - Show a kernel module's dependencies: diff --git a/tldr/linux/pvchange b/tldr/linux/pvchange new file mode 100644 index 00000000..8a55f57e --- /dev/null +++ b/tldr/linux/pvchange @@ -0,0 +1,37 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# pvchange + +> Change attributes of physical volume(s). +> More information: . + +- Allow allocation on a physical volume: + +`pvchange {{[-x|--allocatable]}} y {{/dev/sdXN}}` + +- Disallow allocation on a physical volume: + +`pvchange {{[-x|--allocatable]}} n {{/dev/sdXN}}` + +- Ignore metadata areas on a physical volume: + +`pvchange --metadataignore y {{/dev/sdXN}}` + +- Stop ignoring metadata areas on a physical volume: + +`pvchange --metadataignore n {{/dev/sdXN}}` + +- Add a tag to a physical volume: + +`pvchange --addtag {{tag}} {{/dev/sdXN}}` + +- Generate a new UUID for a physical volume (use with care): + +`pvchange --uuid {{/dev/sdXN}}` + +- Change all visible physical volumes (combine with other options such as allocatable): + +`pvchange {{[-a|--all]}} {{[-x|--allocatable]}} y` diff --git a/tldr/linux/systemctl-default b/tldr/linux/systemctl-default new file mode 100644 index 00000000..187d0156 --- /dev/null +++ b/tldr/linux/systemctl-default @@ -0,0 +1,17 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# systemctl default + +> Enter system default mode. +> More information: . + +- Enter default mode as a blocking operation: + +`systemctl default` + +- Enter default mode as asynchronous operation: + +`systemctl default --no-block` diff --git a/tldr/mvn-compile b/tldr/mvn-compile new file mode 100644 index 00000000..cf1c5b40 --- /dev/null +++ b/tldr/mvn-compile @@ -0,0 +1,25 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# mvn compile + +> Compile a Maven project's source code. +> More information: . + +- Compile the project's source code: + +`mvn compile` + +- Clean compiled files and recompile: + +`mvn clean compile` + +- Compile a specific module in a multi-module project: + +`mvn compile {{[-pl|--projects]}} {{module_name}}` + +- Skip tests while compiling: + +`mvn compile {{[-D|--define]}} skipTests` diff --git a/tldr/pulumi-up b/tldr/pulumi-up index 558b24f2..1ea66480 100644 --- a/tldr/pulumi-up +++ b/tldr/pulumi-up @@ -20,6 +20,10 @@ source: https://github.com/tldr-pages/tldr.git `pulumi up {{[-s|--stack]}} {{stack}}` +- Refresh the state of the stack's resources before updating: + +`pulumi up {{[-r|--refresh]}}` + - Don't display stack outputs: `pulumi up --suppress-outputs` @@ -27,3 +31,7 @@ source: https://github.com/tldr-pages/tldr.git - Continue updating the resources, even if an error is encountered: `pulumi up --continue-on-error` + +- Display help: + +`pulumi up {{[-h|--help]}}`