From af00816a7d0cf9af2e67d444a258f4653041d586 Mon Sep 17 00:00:00 2001 From: ivuorinen Date: Sun, 14 Dec 2025 00:23:46 +0000 Subject: [PATCH] Update cheatsheets --- tldr/crictl | 2 +- tldr/git-archive | 2 +- tldr/git-cat-file | 2 +- tldr/git-for-each-ref | 2 +- tldr/git-grep | 20 ++++++------ tldr/git-name-rev | 2 +- tldr/git-notes | 6 ++-- tldr/git-paste | 2 +- tldr/git-pull | 2 +- tldr/git-reflog | 2 +- tldr/git-reset-file | 4 +-- tldr/git-show | 2 +- tldr/git-show-unmerged-branches | 4 +-- tldr/git-svn | 2 +- tldr/git-tag | 2 +- tldr/k9s | 2 +- tldr/linux/installpkg | 2 +- tldr/linux/removepkg | 2 +- tldr/linux/systemctl-halt | 6 ++-- tldr/linux/systemctl-hibernate | 2 +- tldr/linux/systemctl-hybrid-sleep | 2 +- tldr/linux/systemctl-is-enabled | 4 +-- tldr/linux/systemctl-is-system-running | 2 +- tldr/linux/systemctl-list-paths | 2 +- tldr/linux/systemctl-poweroff | 4 +-- tldr/linux/systemctl-soft-reboot | 2 +- tldr/linux/systemctl-status | 4 +-- tldr/linux/systemctl-suspend-then-hibernate | 2 +- tldr/linux/systemctl-switch-root | 2 +- tldr/minetest | 20 ++---------- tldr/minetestserver | 36 ++------------------- tldr/pip-install | 10 ++++-- 32 files changed, 60 insertions(+), 100 deletions(-) diff --git a/tldr/crictl b/tldr/crictl index a589faf2..c453b8f1 100644 --- a/tldr/crictl +++ b/tldr/crictl @@ -8,7 +8,7 @@ source: https://github.com/tldr-pages/tldr.git > Manage CRI-compatible container runtimes. > More information: . -- List all kubernetes pods (Ready and NotReady): +- List all Kubernetes pods (Ready and NotReady): `crictl pods` diff --git a/tldr/git-archive b/tldr/git-archive index 636ccb80..397b2277 100644 --- a/tldr/git-archive +++ b/tldr/git-archive @@ -8,7 +8,7 @@ source: https://github.com/tldr-pages/tldr.git > Create an archive of files from a tree. > More information: . -- Create a tar archive from the contents of the current HEAD and print it to `stdout`: +- Create a tar archive from the contents of the current `HEAD` and print it to `stdout`: `git archive {{[-v|--verbose]}} HEAD` diff --git a/tldr/git-cat-file b/tldr/git-cat-file index 0fe663e9..f42a02a1 100644 --- a/tldr/git-cat-file +++ b/tldr/git-cat-file @@ -8,7 +8,7 @@ source: https://github.com/tldr-pages/tldr.git > Provide content or type and size information for Git repository objects. > More information: . -- Get the [s]ize of the HEAD commit in bytes: +- Get the [s]ize of the `HEAD` commit in bytes: `git cat-file -s HEAD` diff --git a/tldr/git-for-each-ref b/tldr/git-for-each-ref index 6efe851c..7f428ad6 100644 --- a/tldr/git-for-each-ref +++ b/tldr/git-for-each-ref @@ -20,7 +20,7 @@ source: https://github.com/tldr-pages/tldr.git `git for-each-ref refs/tags/` -- Show branches merged into HEAD: +- Show branches merged into `HEAD`: `git for-each-ref --merged HEAD refs/heads/` diff --git a/tldr/git-grep b/tldr/git-grep index 07b13c97..bc35d528 100644 --- a/tldr/git-grep +++ b/tldr/git-grep @@ -5,26 +5,26 @@ source: https://github.com/tldr-pages/tldr.git --- # git grep -> Find strings inside files anywhere in a repository's history. +> Find strings inside tracked files in a repository. > Accepts a lot of the same flags as regular `grep`. > More information: . -- Search for a string in tracked files: +- Search for a string in files in the current `HEAD`: -`git grep {{search_string}}` +`git grep "{{search_string}}"` -- Search for a string in files matching a pattern in tracked files: +- Search for a string in files matching a glob pattern in the current `HEAD`: -`git grep {{search_string}} -- {{file_glob_pattern}}` +`git grep "{{search_string}}" -- "{{*.ext}}"` -- Search for a string in tracked files, including submodules: +- Search for a string, including submodules: -`git grep --recurse-submodules {{search_string}}` +`git grep --recurse-submodules "{{search_string}}"` - Search for a string at a specific point in history: -`git grep {{search_string}} {{HEAD~2}}` +`git grep "{{search_string}}" {{HEAD~2}}` -- Search for a string across all branches: +- Search for a string across all branches and all of history: -`git grep {{search_string}} $(git rev-list --all)` +`git grep "{{search_string}}" $(git rev-list --all)` diff --git a/tldr/git-name-rev b/tldr/git-name-rev index f007c45d..3949d655 100644 --- a/tldr/git-name-rev +++ b/tldr/git-name-rev @@ -8,7 +8,7 @@ source: https://github.com/tldr-pages/tldr.git > Describe a commit using existing ref names. > More information: . -- Show the name for HEAD: +- Show the name for `HEAD`: `git name-rev HEAD` diff --git a/tldr/git-notes b/tldr/git-notes index 21f65854..88b7ccd0 100644 --- a/tldr/git-notes +++ b/tldr/git-notes @@ -12,11 +12,11 @@ source: https://github.com/tldr-pages/tldr.git `git notes list` -- List all notes attached to a given object (defaults to HEAD): +- List all notes attached to a given object (defaults to `HEAD`): `git notes list [{{object}}]` -- Show the notes attached to a given object (defaults to HEAD): +- Show the notes attached to a given object (defaults to `HEAD`): `git notes show [{{object}}]` @@ -28,7 +28,7 @@ source: https://github.com/tldr-pages/tldr.git `git notes append --message="{{message_text}}"` -- Edit an existing note (defaults to HEAD): +- Edit an existing note (defaults to `HEAD`): `git notes edit [{{object}}]` diff --git a/tldr/git-paste b/tldr/git-paste index 853a4bb5..f3aa93dd 100644 --- a/tldr/git-paste +++ b/tldr/git-paste @@ -13,6 +13,6 @@ source: https://github.com/tldr-pages/tldr.git `git paste` -- Pass options to `git format-patch` in order to select a different set of commits (`@^` selects the parent of HEAD, and so the currently checked out commit is sent): +- Pass options to `git format-patch` in order to select a different set of commits (`@^` selects the parent of `HEAD`, and so the currently checked out commit is sent): `git paste {{@^}}` diff --git a/tldr/git-pull b/tldr/git-pull index 765b047b..07c9e909 100644 --- a/tldr/git-pull +++ b/tldr/git-pull @@ -16,6 +16,6 @@ source: https://github.com/tldr-pages/tldr.git `git pull {{[-r|--rebase]}}` -- Download changes from given remote repository and branch, then merge them into HEAD: +- Download changes from given remote repository and branch, then merge them into `HEAD`: `git pull {{remote_name}} {{branch}}` diff --git a/tldr/git-reflog b/tldr/git-reflog index 565cda1c..2b9aac7d 100644 --- a/tldr/git-reflog +++ b/tldr/git-reflog @@ -8,7 +8,7 @@ source: https://github.com/tldr-pages/tldr.git > Show a log of changes to local references like HEAD, branches or tags. > More information: . -- Show the reflog for HEAD: +- Show the reflog for `HEAD`: `git reflog` diff --git a/tldr/git-reset-file b/tldr/git-reset-file index 583de82c..e9b8ffdf 100644 --- a/tldr/git-reset-file +++ b/tldr/git-reset-file @@ -5,11 +5,11 @@ source: https://github.com/tldr-pages/tldr.git --- # git reset-file -> Revert a file to HEAD or a commit. +> Revert a file to `HEAD` or a commit. > Part of `git-extras`. > More information: . -- Reset a file to HEAD: +- Reset a file to `HEAD`: `git reset-file {{path/to/file}}` diff --git a/tldr/git-show b/tldr/git-show index f1763159..9b4e2bdc 100644 --- a/tldr/git-show +++ b/tldr/git-show @@ -20,7 +20,7 @@ source: https://github.com/tldr-pages/tldr.git `git show --summary {{commit}}` -- Show information about the 3rd commit from the HEAD of a branch: +- Show information about the 3rd commit from the `HEAD` of a branch: `git show {{branch}}~{{3}}` diff --git a/tldr/git-show-unmerged-branches b/tldr/git-show-unmerged-branches index 0f2c46e9..49226a8b 100644 --- a/tldr/git-show-unmerged-branches +++ b/tldr/git-show-unmerged-branches @@ -5,9 +5,9 @@ source: https://github.com/tldr-pages/tldr.git --- # git show-unmerged-branches -> Print all branches which are not merged into the current HEAD. +> Print all branches which are not merged into the current `HEAD`. > More information: . -- Print all branches which are not merged into the current HEAD: +- Print all branches which are not merged into the current `HEAD`: `git show-unmerged-branches` diff --git a/tldr/git-svn b/tldr/git-svn index f97e30db..dfe080da 100644 --- a/tldr/git-svn +++ b/tldr/git-svn @@ -20,7 +20,7 @@ source: https://github.com/tldr-pages/tldr.git `git svn rebase` -- Fetch updates from the remote SVN repository without changing the Git HEAD: +- Fetch updates from the remote SVN repository without changing the Git `HEAD`: `git svn fetch` diff --git a/tldr/git-tag b/tldr/git-tag index fc06ff6e..a552febb 100644 --- a/tldr/git-tag +++ b/tldr/git-tag @@ -37,6 +37,6 @@ source: https://github.com/tldr-pages/tldr.git `git push origin tag {{tag_name}}` -- List all tags which contain a given commit (HEAD if not specified): +- List all tags which contain a given commit (`HEAD` if not specified): `git tag --contains {{commit}}` diff --git a/tldr/k9s b/tldr/k9s index af71a83a..55773c89 100644 --- a/tldr/k9s +++ b/tldr/k9s @@ -16,7 +16,7 @@ source: https://github.com/tldr-pages/tldr.git `k9s --readonly --cluster {{cluster_name}}` -- Manage a cluster using a given kubernetes namespace: +- Manage a cluster using a given Kubernetes namespace: `k9s {{[-n|--namespace]}} {{kubernetes_namespace}} --cluster {{cluster_name}}` diff --git a/tldr/linux/installpkg b/tldr/linux/installpkg index 3201855b..0d05210b 100644 --- a/tldr/linux/installpkg +++ b/tldr/linux/installpkg @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # installpkg > Install a Slackware package. -> More information: . +> More information: . - Install a package: diff --git a/tldr/linux/removepkg b/tldr/linux/removepkg index 59516cfa..947b7c86 100644 --- a/tldr/linux/removepkg +++ b/tldr/linux/removepkg @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # removepkg > Remove a specified Slackware package. -> More information: . +> More information: . - Remove a package: diff --git a/tldr/linux/systemctl-halt b/tldr/linux/systemctl-halt index 3ffd69ee..b11197c9 100644 --- a/tldr/linux/systemctl-halt +++ b/tldr/linux/systemctl-halt @@ -15,15 +15,15 @@ source: https://github.com/tldr-pages/tldr.git - Halt the system immediately without asking services to stop gracefully: -`systemctl halt --force` +`systemctl halt {{[-f|--force]}}` - Halt the system immediately without sending notifications to logged-in users: -`systemctl halt --force --no-wall` +`systemctl halt {{[-f|--force]}} --no-wall` - Halt the system immediately without terminating any processes or unmounting filesystems (dangerous, may cause data loss): -`systemctl halt --force --force` +`systemctl halt {{[-ff|--force --force]}}` - Schedule a halt at a specific time (e.g., 23:00): diff --git a/tldr/linux/systemctl-hibernate b/tldr/linux/systemctl-hibernate index a31f6ba8..dc705287 100644 --- a/tldr/linux/systemctl-hibernate +++ b/tldr/linux/systemctl-hibernate @@ -14,7 +14,7 @@ source: https://github.com/tldr-pages/tldr.git - Force hibernation even if inhibitors are present: -`systemctl hibernate --force` +`systemctl hibernate {{[-f|--force]}}` - Hibernate the system without sending a message to logged-in users: diff --git a/tldr/linux/systemctl-hybrid-sleep b/tldr/linux/systemctl-hybrid-sleep index d62c7e64..e64b5282 100644 --- a/tldr/linux/systemctl-hybrid-sleep +++ b/tldr/linux/systemctl-hybrid-sleep @@ -14,7 +14,7 @@ source: https://github.com/tldr-pages/tldr.git - Force hybrid sleep even if inhibitors are present: -`systemctl hybrid-sleep --force` +`systemctl hybrid-sleep {{[-f|--force]}}` - Put the system into hybrid sleep without sending a wall message to logged-in users: diff --git a/tldr/linux/systemctl-is-enabled b/tldr/linux/systemctl-is-enabled index 2ed44d09..a6a875e3 100644 --- a/tldr/linux/systemctl-is-enabled +++ b/tldr/linux/systemctl-is-enabled @@ -15,8 +15,8 @@ source: https://github.com/tldr-pages/tldr.git - Suppress output and return only the exit code: -`systemctl is-enabled {{unit}} --quiet` +`systemctl is-enabled {{unit}} {{[-q|--quiet]}}` - Show installation targets and symlink paths: -`systemctl is-enabled {{unit}} --full` +`systemctl is-enabled {{unit}} {{[-l|--full]}}` diff --git a/tldr/linux/systemctl-is-system-running b/tldr/linux/systemctl-is-system-running index 160c651a..120af311 100644 --- a/tldr/linux/systemctl-is-system-running +++ b/tldr/linux/systemctl-is-system-running @@ -14,7 +14,7 @@ source: https://github.com/tldr-pages/tldr.git - Check and print the current state quietly (no output, only exit status): -`systemctl is-system-running --quiet` +`systemctl is-system-running {{[-q|--quiet]}}` - Wait until the boot process is completed before printing the current state: diff --git a/tldr/linux/systemctl-list-paths b/tldr/linux/systemctl-list-paths index c4484e34..0121bd16 100644 --- a/tldr/linux/systemctl-list-paths +++ b/tldr/linux/systemctl-list-paths @@ -22,7 +22,7 @@ source: https://github.com/tldr-pages/tldr.git - Show all path units, including inactive ones: -`systemctl list-paths --all` +`systemctl list-paths {{[-a|--all]}}` - Filter path units by state: diff --git a/tldr/linux/systemctl-poweroff b/tldr/linux/systemctl-poweroff index d2612f3e..8472fc11 100644 --- a/tldr/linux/systemctl-poweroff +++ b/tldr/linux/systemctl-poweroff @@ -15,8 +15,8 @@ source: https://github.com/tldr-pages/tldr.git - Power off the system immediately without asking services to stop gracefully: -`systemctl poweroff --force` +`systemctl poweroff {{[-f|--force]}}` - Power off the system immediately without sending notifications to logged-in users: -`systemctl poweroff --force --no-wall` +`systemctl poweroff {{[-f|--force]}} --no-wall` diff --git a/tldr/linux/systemctl-soft-reboot b/tldr/linux/systemctl-soft-reboot index a87dc7e2..8bf0ce7a 100644 --- a/tldr/linux/systemctl-soft-reboot +++ b/tldr/linux/systemctl-soft-reboot @@ -14,7 +14,7 @@ source: https://github.com/tldr-pages/tldr.git - Force a soft reboot: -`systemctl soft-reboot --force` +`systemctl soft-reboot {{[-f|--force]}}` - Schedule a soft reboot for a specific time: diff --git a/tldr/linux/systemctl-status b/tldr/linux/systemctl-status index 1b81d077..6586f87a 100644 --- a/tldr/linux/systemctl-status +++ b/tldr/linux/systemctl-status @@ -22,11 +22,11 @@ source: https://github.com/tldr-pages/tldr.git - List all units in the system: -`systemctl status --all` +`systemctl status {{[-a|--all]}}` - List all units of a specific type: -`systemctl status --type {{service|timer|socket|target|...}}` +`systemctl status {{[-t|--type]}} {{service|timer|socket|target|...}}` - List all units with a specific state: diff --git a/tldr/linux/systemctl-suspend-then-hibernate b/tldr/linux/systemctl-suspend-then-hibernate index a84e0c92..cd88e7c7 100644 --- a/tldr/linux/systemctl-suspend-then-hibernate +++ b/tldr/linux/systemctl-suspend-then-hibernate @@ -14,4 +14,4 @@ source: https://github.com/tldr-pages/tldr.git - Force suspend-then-hibernate (bypass inhibitor locks): -`systemctl suspend-then-hibernate --force` +`systemctl suspend-then-hibernate {{[-f|--force]}}` diff --git a/tldr/linux/systemctl-switch-root b/tldr/linux/systemctl-switch-root index c4b7c6bd..78a025b3 100644 --- a/tldr/linux/systemctl-switch-root +++ b/tldr/linux/systemctl-switch-root @@ -18,4 +18,4 @@ source: https://github.com/tldr-pages/tldr.git - Switch to a new root filesystem with verbose output: -`systemctl switch-root {{path/to/new_root}} --verbose` +`systemctl switch-root {{path/to/new_root}} {{[-v|--verbose]}}` diff --git a/tldr/minetest b/tldr/minetest index 0eb70006..f1e3d9a7 100644 --- a/tldr/minetest +++ b/tldr/minetest @@ -5,22 +5,8 @@ source: https://github.com/tldr-pages/tldr.git --- # minetest -> Multiplayer infinite-world block sandbox. -> See also: `minetestserver`, the server-only binary. -> More information: . +> This command is an alias of `luanti`. -- Start Minetest in client mode: +- View documentation for the original command: -`minetest` - -- Start Minetest in server mode by hosting a specific world: - -`minetest --server --world {{name}}` - -- Write logs to a specific file: - -`minetest --logfile {{path/to/file}}` - -- Only write errors to the console: - -`minetest --quiet` +`tldr luanti` diff --git a/tldr/minetestserver b/tldr/minetestserver index 67e3743b..8cad51ba 100644 --- a/tldr/minetestserver +++ b/tldr/minetestserver @@ -5,38 +5,8 @@ source: https://github.com/tldr-pages/tldr.git --- # minetestserver -> Multiplayer infinite-world block sandbox server. -> See also: `minetest`, the graphical client. -> More information: . +> This command is an alias of `luantiserver`. -- Start the server: +- View documentation for the original command: -`minetestserver` - -- List available worlds: - -`minetestserver --world list` - -- Load the specified world: - -`minetestserver --world {{world_name}}` - -- List the available game IDs: - -`minetestserver --gameid list` - -- Use the specified game: - -`minetestserver --gameid {{game_id}}` - -- Listen on a specific port: - -`minetestserver --port {{34567}}` - -- Migrate to a different data backend: - -`minetestserver --migrate {{sqlite3|leveldb|redis}}` - -- Start an interactive terminal after starting the server: - -`minetestserver --terminal` +`tldr luantiserver` diff --git a/tldr/pip-install b/tldr/pip-install index 5aeb637e..5c81f81a 100644 --- a/tldr/pip-install +++ b/tldr/pip-install @@ -8,9 +8,13 @@ source: https://github.com/tldr-pages/tldr.git > Install Python packages. > More information: . -- Install a package: +- Install one or more packages: -`pip install {{package}}` +`pip install {{package1 package2 ...}}` + +- Upgrade all specified packages to the latest version, installing any that are not already present: + +`pip install {{package1 package2 ...}} {{[-U|--upgrade]}}` - Install a specific version of a package: @@ -20,7 +24,7 @@ source: https://github.com/tldr-pages/tldr.git `pip install {{[-r|--requirement]}} {{path/to/requirements.txt}}` -- Install packages from an URL or local file archive (e.g. `.tar.gz`, `.whl`): +- Install packages from a URL or local file archive (e.g. `.tar.gz`, `.whl`): `pip install {{[-f|--find-links]}} {{url|path/to/file}}`