From 558cf60f0b36bb34dcf52bc1afa277405c936899 Mon Sep 17 00:00:00 2001 From: ivuorinen Date: Sat, 27 Dec 2025 00:21:38 +0000 Subject: [PATCH] Update cheatsheets --- tldr/batch | 2 +- tldr/crane-index | 2 +- tldr/gcloud | 2 +- tldr/git-format-patch | 2 +- tldr/linux/alien | 2 +- tldr/linux/batch | 2 +- tldr/linux/pkgfile | 2 +- tldr/linux/qm-agent | 2 +- tldr/linux/qm-importdisk | 2 +- tldr/linux/qm-move-disk | 2 +- tldr/linux/qm-move_disk | 2 +- tldr/linux/qm-rescan | 2 +- tldr/linux/qm-resize | 2 +- tldr/linux/qm-unlink | 2 +- tldr/linux/quickemu | 16 ++++++++-------- tldr/linux/quickget | 12 ++++++------ tldr/osx/trash | 25 +++++++++++++++++++++++++ tldr/pkgz | 6 +++++- 18 files changed, 58 insertions(+), 29 deletions(-) create mode 100644 tldr/osx/trash diff --git a/tldr/batch b/tldr/batch index b71159ee..a69ae292 100644 --- a/tldr/batch +++ b/tldr/batch @@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git > Execute commands at a later time when the system load levels permit. > Results will be sent to the user's mail. -> See also: `at`, `atq`, `atrm` `mail`. +> See also: `at`, `atq`, `atrm`, `mail`. > More information: . - Execute commands from `stdin` (press `` when done): diff --git a/tldr/crane-index b/tldr/crane-index index f93bd46a..2d48872f 100644 --- a/tldr/crane-index +++ b/tldr/crane-index @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # crane index > Modify an image index. -> The subcommands `append` and `filter` have their own usage documentation. +> Some subcommands such as `append` and `filter` have their own usage documentation. > More information: . - Modify an image index: diff --git a/tldr/gcloud b/tldr/gcloud index a2cd8ee2..e7106836 100644 --- a/tldr/gcloud +++ b/tldr/gcloud @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # gcloud > The official CLI tool for Google Cloud Platform. -> Note: `gcloud` subcommands have their own usage documentation. +> Some subcommands such as `app` and `init` have their own usage documentation. > More information: . - List all properties in one's active configuration: diff --git a/tldr/git-format-patch b/tldr/git-format-patch index 88d10efe..99358083 100644 --- a/tldr/git-format-patch +++ b/tldr/git-format-patch @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # git format-patch > Prepare `.patch` files. Useful when emailing commits elsewhere. -> See also: `git am` which can apply generated `.patch` files. +> See also: `git am`. > More information: . - Create an auto-named `.patch` file for all the unpushed commits: diff --git a/tldr/linux/alien b/tldr/linux/alien index da6f685d..567eaa98 100644 --- a/tldr/linux/alien +++ b/tldr/linux/alien @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # alien > Convert different installation packages to other formats. -> See also: `debtap` for `.deb` conversion on Arch Linux. +> See also: `debtap`. > More information: . - Convert a specific installation file to Debian format (`.deb` extension): diff --git a/tldr/linux/batch b/tldr/linux/batch index bbadf6ee..b5705ead 100644 --- a/tldr/linux/batch +++ b/tldr/linux/batch @@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git > Execute commands at a later time when the system load levels permit. > Results will be sent to the user's mail. -> See also: `at`, `atq`, `atrm` `mail`. +> See also: `at`, `atq`, `atrm`, `mail`. > More information: . - Start the `atd` daemon: diff --git a/tldr/linux/pkgfile b/tldr/linux/pkgfile index 9e91b101..1f4745ab 100644 --- a/tldr/linux/pkgfile +++ b/tldr/linux/pkgfile @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # pkgfile > Search files from packages in the official repositories on Arch-based systems. -> See also: `pacman files` describing the usage of `pacman --files`. +> See also: `pacman files`. > More information: . - Synchronize the pkgfile database: diff --git a/tldr/linux/qm-agent b/tldr/linux/qm-agent index 7a0a422a..d606c12b 100644 --- a/tldr/linux/qm-agent +++ b/tldr/linux/qm-agent @@ -9,4 +9,4 @@ source: https://github.com/tldr-pages/tldr.git - View documentation for the original command: -`tldr qm guest cmd` +`tldr qm guest` diff --git a/tldr/linux/qm-importdisk b/tldr/linux/qm-importdisk index 6c2124f6..f042c73e 100644 --- a/tldr/linux/qm-importdisk +++ b/tldr/linux/qm-importdisk @@ -9,4 +9,4 @@ source: https://github.com/tldr-pages/tldr.git - View documentation for the original command: -`tldr qm disk import` +`tldr qm disk` diff --git a/tldr/linux/qm-move-disk b/tldr/linux/qm-move-disk index 8bd42fd0..92afbd44 100644 --- a/tldr/linux/qm-move-disk +++ b/tldr/linux/qm-move-disk @@ -9,4 +9,4 @@ source: https://github.com/tldr-pages/tldr.git - View documentation for the original command: -`tldr qm disk move` +`tldr qm disk` diff --git a/tldr/linux/qm-move_disk b/tldr/linux/qm-move_disk index 0845c123..76a477a3 100644 --- a/tldr/linux/qm-move_disk +++ b/tldr/linux/qm-move_disk @@ -9,4 +9,4 @@ source: https://github.com/tldr-pages/tldr.git - View documentation for the original command: -`tldr qm disk move` +`tldr qm disk` diff --git a/tldr/linux/qm-rescan b/tldr/linux/qm-rescan index 41500107..bf059fa1 100644 --- a/tldr/linux/qm-rescan +++ b/tldr/linux/qm-rescan @@ -9,4 +9,4 @@ source: https://github.com/tldr-pages/tldr.git - View documentation for the original command: -`tldr qm disk rescan` +`tldr qm disk` diff --git a/tldr/linux/qm-resize b/tldr/linux/qm-resize index 6cabf781..8e801a6c 100644 --- a/tldr/linux/qm-resize +++ b/tldr/linux/qm-resize @@ -9,4 +9,4 @@ source: https://github.com/tldr-pages/tldr.git - View documentation for the original command: -`tldr qm disk resize` +`tldr qm disk` diff --git a/tldr/linux/qm-unlink b/tldr/linux/qm-unlink index fcee84fb..ed5612bb 100644 --- a/tldr/linux/qm-unlink +++ b/tldr/linux/qm-unlink @@ -9,4 +9,4 @@ source: https://github.com/tldr-pages/tldr.git - View documentation for the original command: -`tldr qm disk unlink` +`tldr qm disk` diff --git a/tldr/linux/quickemu b/tldr/linux/quickemu index 5b690d2a..bdf33687 100644 --- a/tldr/linux/quickemu +++ b/tldr/linux/quickemu @@ -26,18 +26,18 @@ source: https://github.com/tldr-pages/tldr.git `quickemu --sound-card {{intel-hda|ac97|es1370|sb16|none}} --shortcut --vm {{path/to/file.conf}}` -- Create a snapshot: +- Create/restore/delete a snapshot: -`quickemu --snapshot create {{tag}} --vm {{path/to/file.conf}}` - -- Restore a snapshot: - -`quickemu --snapshot apply {{tag}} --vm {{path/to/file.conf}}` +`quickemu --snapshot {{create|apply|delete}} {{tag}} --vm {{path/to/file.conf}}` - List available snapshots: `quickemu --snapshot info --vm {{path/to/file.conf}}` -- Delete a snapshot: +- Delete the entire virtual machine and its configuration: -`quickemu --snapshot delete {{tag}} --vm {{path/to/file.conf}}` +`quickemu --delete-vm --vm {{path/to/file.conf}}` + +- Delete the virtual machine's disk image and EFI variables: + +`quickemu --delete-disk --vm {{path/to/file.conf}}` diff --git a/tldr/linux/quickget b/tldr/linux/quickget index 4bac24f3..9ad93bb5 100644 --- a/tldr/linux/quickget +++ b/tldr/linux/quickget @@ -6,13 +6,13 @@ source: https://github.com/tldr-pages/tldr.git # quickget > Download and prepare materials for building a Quickemu virtual machine. -> Note: The parameter "edition" is always optional. +> Note: The parameter "edition" is sometimes optional. > See also: `quickemu`. > More information: . -- Display the list of all supported guest operating systems, versions, and variants: +- Display the list of all supported guest operating systems, versions, and variants in various formats: -`quickget list` +`quickget {{--list|--list-csv|--list-json}}` - Download and create the virtual machine configuration for building a Quickemu virtual machine for an OS: @@ -28,16 +28,16 @@ source: https://github.com/tldr-pages/tldr.git - Show an ISO URL for an operating system: -`quickget --url fedora {{release}} {{edition}}` +`quickget --url {{os}} {{release}} {{edition}}` - Test if an ISO file is available for an operating system: -`quickget --check nixos {{release}} {{edition}}` +`quickget --check {{os}} {{release}} {{edition}}` - Download an image without building any VM configuration: `quickget --download {{os}} {{release}} {{edition}}` -- Create a VM configuration for an OS image: +- Create a VM configuration for an OS image (this will move the ISO from the source directory): `quickget --create-config {{os}} {{path/to/iso}}` diff --git a/tldr/osx/trash b/tldr/osx/trash new file mode 100644 index 00000000..fe793563 --- /dev/null +++ b/tldr/osx/trash @@ -0,0 +1,25 @@ +--- +syntax: markdown +tags: [tldr, osx] +source: https://github.com/tldr-pages/tldr.git +--- +# trash + +> Move files and directories to the user trash folder. +> More information: . + +- Move a file to the trash: + +`trash {{path/to/file}}` + +- Move multiple items or directories to the trash: + +`trash {{path/to/file_or_directory1 path/to/file_or_directory2 ...}}` + +- Move files to the trash with verbose output: + +`trash {{[-v|--verbose]}} {{path/to/file1 path/to/file2 ...}}` + +- Display help: + +`trash {{[-h|--help]}}` diff --git a/tldr/pkgz b/tldr/pkgz index bdc32f28..2f7448f8 100644 --- a/tldr/pkgz +++ b/tldr/pkgz @@ -20,7 +20,11 @@ source: https://github.com/tldr-pages/tldr.git `pkgz search {{package_name}}` -- Show enabled sources with the package available and/or installed: +- Show how many packages are installed per source: + +`pkgz info` + +- Show where a package is installed or available: `pkgz info {{package_name}}`