Update cheatsheets

This commit is contained in:
ivuorinen
2025-12-14 00:23:46 +00:00
parent 489b2e0e99
commit af00816a7d
32 changed files with 60 additions and 100 deletions

View File

@@ -8,7 +8,7 @@ source: https://github.com/tldr-pages/tldr.git
> Manage CRI-compatible container runtimes. > Manage CRI-compatible container runtimes.
> More information: <https://github.com/kubernetes-sigs/cri-tools/blob/master/docs/crictl.md>. > More information: <https://github.com/kubernetes-sigs/cri-tools/blob/master/docs/crictl.md>.
- List all kubernetes pods (Ready and NotReady): - List all Kubernetes pods (Ready and NotReady):
`crictl pods` `crictl pods`

View File

@@ -8,7 +8,7 @@ source: https://github.com/tldr-pages/tldr.git
> Create an archive of files from a tree. > Create an archive of files from a tree.
> More information: <https://git-scm.com/docs/git-archive>. > More information: <https://git-scm.com/docs/git-archive>.
- 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` `git archive {{[-v|--verbose]}} HEAD`

View File

@@ -8,7 +8,7 @@ source: https://github.com/tldr-pages/tldr.git
> Provide content or type and size information for Git repository objects. > Provide content or type and size information for Git repository objects.
> More information: <https://git-scm.com/docs/git-cat-file>. > More information: <https://git-scm.com/docs/git-cat-file>.
- 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` `git cat-file -s HEAD`

View File

@@ -20,7 +20,7 @@ source: https://github.com/tldr-pages/tldr.git
`git for-each-ref refs/tags/` `git for-each-ref refs/tags/`
- Show branches merged into HEAD: - Show branches merged into `HEAD`:
`git for-each-ref --merged HEAD refs/heads/` `git for-each-ref --merged HEAD refs/heads/`

View File

@@ -5,26 +5,26 @@ source: https://github.com/tldr-pages/tldr.git
--- ---
# git grep # 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`. > Accepts a lot of the same flags as regular `grep`.
> More information: <https://git-scm.com/docs/git-grep>. > More information: <https://git-scm.com/docs/git-grep>.
- 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: - 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)`

View File

@@ -8,7 +8,7 @@ source: https://github.com/tldr-pages/tldr.git
> Describe a commit using existing ref names. > Describe a commit using existing ref names.
> More information: <https://git-scm.com/docs/git-name-rev>. > More information: <https://git-scm.com/docs/git-name-rev>.
- Show the name for HEAD: - Show the name for `HEAD`:
`git name-rev HEAD` `git name-rev HEAD`

View File

@@ -12,11 +12,11 @@ source: https://github.com/tldr-pages/tldr.git
`git notes list` `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}}]` `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}}]` `git notes show [{{object}}]`
@@ -28,7 +28,7 @@ source: https://github.com/tldr-pages/tldr.git
`git notes append --message="{{message_text}}"` `git notes append --message="{{message_text}}"`
- Edit an existing note (defaults to HEAD): - Edit an existing note (defaults to `HEAD`):
`git notes edit [{{object}}]` `git notes edit [{{object}}]`

View File

@@ -13,6 +13,6 @@ source: https://github.com/tldr-pages/tldr.git
`git paste` `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 {{@^}}` `git paste {{@^}}`

View File

@@ -16,6 +16,6 @@ source: https://github.com/tldr-pages/tldr.git
`git pull {{[-r|--rebase]}}` `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}}` `git pull {{remote_name}} {{branch}}`

View File

@@ -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. > Show a log of changes to local references like HEAD, branches or tags.
> More information: <https://git-scm.com/docs/git-reflog>. > More information: <https://git-scm.com/docs/git-reflog>.
- Show the reflog for HEAD: - Show the reflog for `HEAD`:
`git reflog` `git reflog`

View File

@@ -5,11 +5,11 @@ source: https://github.com/tldr-pages/tldr.git
--- ---
# git reset-file # git reset-file
> Revert a file to HEAD or a commit. > Revert a file to `HEAD` or a commit.
> Part of `git-extras`. > Part of `git-extras`.
> More information: <https://github.com/tj/git-extras/blob/master/Commands.md#git-reset-file>. > More information: <https://github.com/tj/git-extras/blob/master/Commands.md#git-reset-file>.
- Reset a file to HEAD: - Reset a file to `HEAD`:
`git reset-file {{path/to/file}}` `git reset-file {{path/to/file}}`

View File

@@ -20,7 +20,7 @@ source: https://github.com/tldr-pages/tldr.git
`git show --summary {{commit}}` `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}}` `git show {{branch}}~{{3}}`

View File

@@ -5,9 +5,9 @@ source: https://github.com/tldr-pages/tldr.git
--- ---
# git show-unmerged-branches # 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: <https://github.com/tj/git-extras/blob/master/Commands.md#git-show-unmerged-branches>. > More information: <https://github.com/tj/git-extras/blob/master/Commands.md#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`:
`git show-unmerged-branches` `git show-unmerged-branches`

View File

@@ -20,7 +20,7 @@ source: https://github.com/tldr-pages/tldr.git
`git svn rebase` `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` `git svn fetch`

View File

@@ -37,6 +37,6 @@ source: https://github.com/tldr-pages/tldr.git
`git push origin tag {{tag_name}}` `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}}` `git tag --contains {{commit}}`

View File

@@ -16,7 +16,7 @@ source: https://github.com/tldr-pages/tldr.git
`k9s --readonly --cluster {{cluster_name}}` `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}}` `k9s {{[-n|--namespace]}} {{kubernetes_namespace}} --cluster {{cluster_name}}`

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# installpkg # installpkg
> Install a Slackware package. > Install a Slackware package.
> More information: <http://www.slackware.com/config/packages.php>. > More information: <https://www.slackbook.org/html/book.html#PACKAGE-MANAGEMENT-PACKAGE-UTILITIES-INSTALLPKG>.
- Install a package: - Install a package:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# removepkg # removepkg
> Remove a specified Slackware package. > Remove a specified Slackware package.
> More information: <http://www.slackware.com/config/packages.php>. > More information: <https://www.slackbook.org/html/book.html#PACKAGE-MANAGEMENT-PACKAGE-UTILITIES-REMOVEPKG>.
- Remove a package: - Remove a package:

View File

@@ -15,15 +15,15 @@ source: https://github.com/tldr-pages/tldr.git
- Halt the system immediately without asking services to stop gracefully: - 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: - 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): - 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): - Schedule a halt at a specific time (e.g., 23:00):

View File

@@ -14,7 +14,7 @@ source: https://github.com/tldr-pages/tldr.git
- Force hibernation even if inhibitors are present: - 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: - Hibernate the system without sending a message to logged-in users:

View File

@@ -14,7 +14,7 @@ source: https://github.com/tldr-pages/tldr.git
- Force hybrid sleep even if inhibitors are present: - 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: - Put the system into hybrid sleep without sending a wall message to logged-in users:

View File

@@ -15,8 +15,8 @@ source: https://github.com/tldr-pages/tldr.git
- Suppress output and return only the exit code: - 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: - Show installation targets and symlink paths:
`systemctl is-enabled {{unit}} --full` `systemctl is-enabled {{unit}} {{[-l|--full]}}`

View File

@@ -14,7 +14,7 @@ source: https://github.com/tldr-pages/tldr.git
- Check and print the current state quietly (no output, only exit status): - 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: - Wait until the boot process is completed before printing the current state:

View File

@@ -22,7 +22,7 @@ source: https://github.com/tldr-pages/tldr.git
- Show all path units, including inactive ones: - Show all path units, including inactive ones:
`systemctl list-paths --all` `systemctl list-paths {{[-a|--all]}}`
- Filter path units by state: - Filter path units by state:

View File

@@ -15,8 +15,8 @@ source: https://github.com/tldr-pages/tldr.git
- Power off the system immediately without asking services to stop gracefully: - 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: - Power off the system immediately without sending notifications to logged-in users:
`systemctl poweroff --force --no-wall` `systemctl poweroff {{[-f|--force]}} --no-wall`

View File

@@ -14,7 +14,7 @@ source: https://github.com/tldr-pages/tldr.git
- Force a soft reboot: - Force a soft reboot:
`systemctl soft-reboot --force` `systemctl soft-reboot {{[-f|--force]}}`
- Schedule a soft reboot for a specific time: - Schedule a soft reboot for a specific time:

View File

@@ -22,11 +22,11 @@ source: https://github.com/tldr-pages/tldr.git
- List all units in the system: - List all units in the system:
`systemctl status --all` `systemctl status {{[-a|--all]}}`
- List all units of a specific type: - 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: - List all units with a specific state:

View File

@@ -14,4 +14,4 @@ source: https://github.com/tldr-pages/tldr.git
- Force suspend-then-hibernate (bypass inhibitor locks): - Force suspend-then-hibernate (bypass inhibitor locks):
`systemctl suspend-then-hibernate --force` `systemctl suspend-then-hibernate {{[-f|--force]}}`

View File

@@ -18,4 +18,4 @@ source: https://github.com/tldr-pages/tldr.git
- Switch to a new root filesystem with verbose output: - 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]}}`

View File

@@ -5,22 +5,8 @@ source: https://github.com/tldr-pages/tldr.git
--- ---
# minetest # minetest
> Multiplayer infinite-world block sandbox. > This command is an alias of `luanti`.
> See also: `minetestserver`, the server-only binary.
> More information: <https://wiki.minetest.org/Minetest>.
- Start Minetest in client mode: - View documentation for the original command:
`minetest` `tldr luanti`
- 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`

View File

@@ -5,38 +5,8 @@ source: https://github.com/tldr-pages/tldr.git
--- ---
# minetestserver # minetestserver
> Multiplayer infinite-world block sandbox server. > This command is an alias of `luantiserver`.
> See also: `minetest`, the graphical client.
> More information: <https://wiki.minetest.org/Setting_up_a_server>.
- Start the server: - View documentation for the original command:
`minetestserver` `tldr luantiserver`
- 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`

View File

@@ -8,9 +8,13 @@ source: https://github.com/tldr-pages/tldr.git
> Install Python packages. > Install Python packages.
> More information: <https://pip.pypa.io/en/stable/cli/pip_install/>. > More information: <https://pip.pypa.io/en/stable/cli/pip_install/>.
- 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: - 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}}` `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}}` `pip install {{[-f|--find-links]}} {{url|path/to/file}}`