From 3e6fa5fca119e8e6aa7e24c96d8382eefdcbef61 Mon Sep 17 00:00:00 2001 From: ivuorinen Date: Mon, 6 Oct 2025 00:19:32 +0000 Subject: [PATCH] Update cheatsheets --- tldr/asciinema | 2 +- tldr/atuin | 2 +- tldr/brave | 2 +- tldr/cargo-binstall | 22 +++++++++++++++++ tldr/clangd | 2 +- tldr/dos/cd | 21 +++++++++++++++++ tldr/fossil-delete | 2 +- tldr/ic | 12 ++++++++++ tldr/kubectl-api-resources | 2 +- tldr/kubectl-apply | 2 +- tldr/kubectl-auth | 2 +- tldr/kubectl-autoscale | 2 +- tldr/kubectl-config | 2 +- tldr/kubectl-create | 2 +- tldr/kubectl-delete | 2 +- tldr/kubectl-describe | 2 +- tldr/kubectl-edit | 2 +- tldr/kubectl-exec | 2 +- tldr/kubectl-expose | 2 +- tldr/kubectl-get | 2 +- tldr/kubectl-label | 2 +- tldr/kubectl-logs | 2 +- tldr/kubectl-replace | 2 +- tldr/kubectl-rollout | 2 +- tldr/kubectl-run | 2 +- tldr/kubectl-scale | 2 +- tldr/kubectl-taint | 2 +- tldr/kubectl-wait | 2 +- tldr/linux/dstat | 3 ++- tldr/linux/hyprctl | 2 +- tldr/linux/hyprpm | 2 +- tldr/linux/ip | 2 +- tldr/linux/poweroff | 2 +- tldr/linux/routel | 26 ++++++++++++++++++++ tldr/linux/systemctl-daemon-reload | 15 ++++++++++++ tldr/linux/systemctl-halt | 38 ++++++++++++++++++++++++++++++ tldr/matlab | 2 +- tldr/ncdu | 2 +- tldr/pgrep | 2 +- tldr/pip-lock | 26 ++++++++++++++++++++ tldr/pip-search | 14 +++++++++++ tldr/pkill | 2 +- tldr/radare2 | 2 +- tldr/valac | 2 +- tldr/vela | 2 +- tldr/whatweb | 2 +- tldr/x8 | 2 +- 47 files changed, 214 insertions(+), 39 deletions(-) create mode 100644 tldr/cargo-binstall create mode 100644 tldr/dos/cd create mode 100644 tldr/ic create mode 100644 tldr/linux/routel create mode 100644 tldr/linux/systemctl-daemon-reload create mode 100644 tldr/linux/systemctl-halt create mode 100644 tldr/pip-lock create mode 100644 tldr/pip-search diff --git a/tldr/asciinema b/tldr/asciinema index e3d8f1a8..9b93a415 100644 --- a/tldr/asciinema +++ b/tldr/asciinema @@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git > Record and replay terminal sessions, and optionally share them on . > See also: `terminalizer`. -> More information: . +> More information: . - Associate the local install of `asciinema` with an asciinema.org account: diff --git a/tldr/atuin b/tldr/atuin index e62ef398..cdc05259 100644 --- a/tldr/atuin +++ b/tldr/atuin @@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git > Store your shell history in a searchable database. > Optionally sync your encrypted history between machines. -> More information: . +> More information: . - Install atuin into your shell: diff --git a/tldr/brave b/tldr/brave index ba72cc59..3cafb689 100644 --- a/tldr/brave +++ b/tldr/brave @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # brave > This command is an alias of `chromium`. -> More information: . +> More information: . - View documentation for the original command: diff --git a/tldr/cargo-binstall b/tldr/cargo-binstall new file mode 100644 index 00000000..8f90f4af --- /dev/null +++ b/tldr/cargo-binstall @@ -0,0 +1,22 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# cargo binstall + +> Install Rust binaries from CI artifacts. +> Falls back to `cargo install` (from source code) if there are no binaries available. +> More information: . + +- Install a package from : + +`cargo binstall {{package}}` + +- Install a specific version of a package (latest by default): + +`cargo binstall {{package}}@{{version}}` + +- Install a package and disable confirmation prompts: + +`cargo binstall {{[-y|--no-confirm]}} {{package}}` diff --git a/tldr/clangd b/tldr/clangd index 2c50f315..472c1d5d 100644 --- a/tldr/clangd +++ b/tldr/clangd @@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git > Language server that provides IDE-like features to editors. > It should be used via an editor plugin rather than invoked directly. -> More information: . +> More information: . - Display available options: diff --git a/tldr/dos/cd b/tldr/dos/cd new file mode 100644 index 00000000..976239c2 --- /dev/null +++ b/tldr/dos/cd @@ -0,0 +1,21 @@ +--- +syntax: markdown +tags: [tldr, dos] +source: https://github.com/tldr-pages/tldr.git +--- +# CD + +> Change the current working directory. +> More information: . + +- Go to the specified directory: + +`CD {{PATH\TO\DIRECTORY}}` + +- Go up to the parent of the current directory: + +`CD ..` + +- Go to the root directory of the current drive: + +`CD \` diff --git a/tldr/fossil-delete b/tldr/fossil-delete index 16e2da8f..6bacdb6f 100644 --- a/tldr/fossil-delete +++ b/tldr/fossil-delete @@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git > Remove files or directories from Fossil version control. > See also: `fossil forget`. -> More information: . +> More information: . - Remove a file or directory from Fossil version control: diff --git a/tldr/ic b/tldr/ic new file mode 100644 index 00000000..0511e276 --- /dev/null +++ b/tldr/ic @@ -0,0 +1,12 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# ic + +> This command is an alias of `ibmcloud`. + +- View documentation for the original command: + +`tldr ibmcloud` diff --git a/tldr/kubectl-api-resources b/tldr/kubectl-api-resources index d113bb06..d0e3c06d 100644 --- a/tldr/kubectl-api-resources +++ b/tldr/kubectl-api-resources @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # kubectl api-resources > Print the supported API resources on the server. -> More information: . +> More information: . - Print the supported API resources: diff --git a/tldr/kubectl-apply b/tldr/kubectl-apply index d979306b..8760486f 100644 --- a/tldr/kubectl-apply +++ b/tldr/kubectl-apply @@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git > Manage applications through files defining Kubernetes resources. > Create and update resources in a cluster. -> More information: . +> More information: . - Apply a configuration to a resource by file name: diff --git a/tldr/kubectl-auth b/tldr/kubectl-auth index 7fe0b65a..d7a519fb 100644 --- a/tldr/kubectl-auth +++ b/tldr/kubectl-auth @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # kubectl auth > Inspect access permissions in a Kubernetes cluster. -> More information: . +> More information: . - Check if the current user can perform all actions on all resources in a specific namespace: diff --git a/tldr/kubectl-autoscale b/tldr/kubectl-autoscale index c282d691..8fbf6ba2 100644 --- a/tldr/kubectl-autoscale +++ b/tldr/kubectl-autoscale @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # kubectl autoscale > Create an autoscaler to intelligently scale pod count based on kubernetes cluster demands. -> More information: . +> More information: . - Auto scale a deployment with no target CPU utilization specified: diff --git a/tldr/kubectl-config b/tldr/kubectl-config index 7e6e1e15..6d977c87 100644 --- a/tldr/kubectl-config +++ b/tldr/kubectl-config @@ -8,7 +8,7 @@ source: https://github.com/tldr-pages/tldr.git > Manage Kubernetes configuration (kubeconfig) files for accessing clusters via `kubectl` or the Kubernetes API. > By default, the Kubernetes will get its configuration from `${HOME}/.kube/config`. > See also: `kubectx`, `kubens`. -> More information: . +> More information: . - Get all contexts in the default kubeconfig file: diff --git a/tldr/kubectl-create b/tldr/kubectl-create index 712c4fde..0265f14a 100644 --- a/tldr/kubectl-create +++ b/tldr/kubectl-create @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # kubectl create > Create a resource from a file or from `stdin`. -> More information: . +> More information: . - Create a resource using the resource definition file: diff --git a/tldr/kubectl-delete b/tldr/kubectl-delete index 357a302b..64ae6999 100644 --- a/tldr/kubectl-delete +++ b/tldr/kubectl-delete @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # kubectl delete > Delete Kubernetes resources. -> More information: . +> More information: . - Delete a specific pod: diff --git a/tldr/kubectl-describe b/tldr/kubectl-describe index 0688b43c..ab069be8 100644 --- a/tldr/kubectl-describe +++ b/tldr/kubectl-describe @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # kubectl describe > Show details of Kubernetes resources. -> More information: . +> More information: . - Show details of pods in a namespace: diff --git a/tldr/kubectl-edit b/tldr/kubectl-edit index b744d3d4..ab8b8004 100644 --- a/tldr/kubectl-edit +++ b/tldr/kubectl-edit @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # kubectl edit > Edit Kubernetes resources. -> More information: . +> More information: . - Edit a pod in the default namespace: diff --git a/tldr/kubectl-exec b/tldr/kubectl-exec index ae36f004..83066f31 100644 --- a/tldr/kubectl-exec +++ b/tldr/kubectl-exec @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # kubectl exec > Execute a command in a container. -> More information: . +> More information: . - Open Bash in a pod, using the first container by default: diff --git a/tldr/kubectl-expose b/tldr/kubectl-expose index d6e34e58..3ba915d3 100644 --- a/tldr/kubectl-expose +++ b/tldr/kubectl-expose @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # kubectl expose > Expose a resource as a new Kubernetes service. -> More information: . +> More information: . - Create a service for a resource, which will be served from container port to node port: diff --git a/tldr/kubectl-get b/tldr/kubectl-get index 786ef337..79bd94cd 100644 --- a/tldr/kubectl-get +++ b/tldr/kubectl-get @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # kubectl get > Get Kubernetes objects and resources. -> More information: . +> More information: . - Get all namespaces in the current cluster: diff --git a/tldr/kubectl-label b/tldr/kubectl-label index ac736dd9..dbbce51c 100644 --- a/tldr/kubectl-label +++ b/tldr/kubectl-label @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # kubectl label > Label Kubernetes resources. -> More information: . +> More information: . - Label a pod: diff --git a/tldr/kubectl-logs b/tldr/kubectl-logs index 957e0b0d..11325cb7 100644 --- a/tldr/kubectl-logs +++ b/tldr/kubectl-logs @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # kubectl logs > Show logs for containers in a pod. -> More information: . +> More information: . - Show logs for a single-container pod: diff --git a/tldr/kubectl-replace b/tldr/kubectl-replace index dd41e7c0..e549fd34 100644 --- a/tldr/kubectl-replace +++ b/tldr/kubectl-replace @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # kubectl replace > Replace a resource by file or `stdin`. -> More information: . +> More information: . - Replace the resource using the resource definition file: diff --git a/tldr/kubectl-rollout b/tldr/kubectl-rollout index ab45ae6a..d96c98aa 100644 --- a/tldr/kubectl-rollout +++ b/tldr/kubectl-rollout @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # kubectl rollout > Manage the rollout of a Kubernetes resource (deployments, daemonsets, and statefulsets). -> More information: . +> More information: . - Start a rolling restart of a resource: diff --git a/tldr/kubectl-run b/tldr/kubectl-run index 67a84137..9fc4d7cc 100644 --- a/tldr/kubectl-run +++ b/tldr/kubectl-run @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # kubectl run > Run pods in Kubernetes. Specifies pod generator to avoid deprecation error in some K8S versions. -> More information: . +> More information: . - Run an nginx pod and expose port 80: diff --git a/tldr/kubectl-scale b/tldr/kubectl-scale index 8250a4cd..eb5e659c 100644 --- a/tldr/kubectl-scale +++ b/tldr/kubectl-scale @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # kubectl scale > Set a new size for a deployment, replica set, replication controller, or stateful set. -> More information: . +> More information: . - Scale a replica set: diff --git a/tldr/kubectl-taint b/tldr/kubectl-taint index b95c14d3..7074bf87 100644 --- a/tldr/kubectl-taint +++ b/tldr/kubectl-taint @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # kubectl taint > Update the taints on nodes. -> More information: . +> More information: . - Apply taint to a node: diff --git a/tldr/kubectl-wait b/tldr/kubectl-wait index 5a68aa97..cb4260f4 100644 --- a/tldr/kubectl-wait +++ b/tldr/kubectl-wait @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # kubectl wait > Wait for resource(s) to reach a certain state. -> More information: . +> More information: . - Wait for a deployment to become available: diff --git a/tldr/linux/dstat b/tldr/linux/dstat index 9cc5a278..3cb686eb 100644 --- a/tldr/linux/dstat +++ b/tldr/linux/dstat @@ -6,7 +6,8 @@ source: https://github.com/tldr-pages/tldr.git # dstat > Versatile tool for generating system resource statistics. -> More information: . +> Note: dstat is deprecated and no longer maintained. +> More information: . - Display CPU, disk, net, paging and system statistics: diff --git a/tldr/linux/hyprctl b/tldr/linux/hyprctl index 71fe2aa6..04ccb9f2 100644 --- a/tldr/linux/hyprctl +++ b/tldr/linux/hyprctl @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # hyprctl > Control parts of the Hyprland Wayland compositor. -> More information: . +> More information: . - Reload Hyprland configuration: diff --git a/tldr/linux/hyprpm b/tldr/linux/hyprpm index 2b1503ba..0faeb6ce 100644 --- a/tldr/linux/hyprpm +++ b/tldr/linux/hyprpm @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # hyprpm > Control plugins for the Hyprland Wayland compositor. -> More information: . +> More information: . - Add a plugin: diff --git a/tldr/linux/ip b/tldr/linux/ip index 2b1cd654..403c3e92 100644 --- a/tldr/linux/ip +++ b/tldr/linux/ip @@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git > Show/manipulate routing, devices, policy routing and tunnels. > Some subcommands such as `address` have their own usage documentation. -> More information: . +> More information: . - List interfaces with detailed info: diff --git a/tldr/linux/poweroff b/tldr/linux/poweroff index 0f9cac0b..e2da42aa 100644 --- a/tldr/linux/poweroff +++ b/tldr/linux/poweroff @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # poweroff > Power off the system. -> More information: . +> More information: . - Power off the system: diff --git a/tldr/linux/routel b/tldr/linux/routel new file mode 100644 index 00000000..8a6a8c63 --- /dev/null +++ b/tldr/linux/routel @@ -0,0 +1,26 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# routel + +> List IP routing in a human readable format. +> See also: `ip route`, `route`. +> More information: . + +- Display the default routing table: + +`routel` + +- Display a specific routing table: + +`routel {{table_number|main|local|default}}` + +- Display only IPv4 routes: + +`routel {{[-4|--family inet]}}` + +- Display only IPv6 routes: + +`routel {{[-6|--family inet6]}}` diff --git a/tldr/linux/systemctl-daemon-reload b/tldr/linux/systemctl-daemon-reload new file mode 100644 index 00000000..9b9cf875 --- /dev/null +++ b/tldr/linux/systemctl-daemon-reload @@ -0,0 +1,15 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# systemctl daemon-reload + +> Reload systemd manager configuration. +> Use this after creating, modifying, or deleting unit files. +> See also: `systemctl reload` for reloading service configuration. +> More information: . + +- Reload systemd to apply changes in unit files: + +`systemctl daemon-reload` diff --git a/tldr/linux/systemctl-halt b/tldr/linux/systemctl-halt new file mode 100644 index 00000000..3ffd69ee --- /dev/null +++ b/tldr/linux/systemctl-halt @@ -0,0 +1,38 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# systemctl-halt + +> Shut down and halt the system (stop the OS kernel but keep hardware powered on). +> See also: `halt`. +> More information: . + +- Halt the system: + +`systemctl halt` + +- Halt the system immediately without asking services to stop gracefully: + +`systemctl halt --force` + +- Halt the system immediately without sending notifications to logged-in users: + +`systemctl halt --force --no-wall` + +- Halt the system immediately without terminating any processes or unmounting filesystems (dangerous, may cause data loss): + +`systemctl halt --force --force` + +- Schedule a halt at a specific time (e.g., 23:00): + +`systemctl halt --when 23:00` + +- Schedule a halt after a certain duration (e.g., 2 hours): + +`systemctl halt --when +2h` + +- Cancel a scheduled halt: + +`systemctl halt --when cancel` diff --git a/tldr/matlab b/tldr/matlab index e8e504be..e4631fa9 100644 --- a/tldr/matlab +++ b/tldr/matlab @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # matlab > Numerical computation environment by MathWorks. -> More information: . +> More information: . - Run without splash screen during startup: diff --git a/tldr/ncdu b/tldr/ncdu index 518da8de..fbfeb3a9 100644 --- a/tldr/ncdu +++ b/tldr/ncdu @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # ncdu > Disk usage analyzer with an ncurses interface. -> More information: . +> More information: . - Analyze the current working directory: diff --git a/tldr/pgrep b/tldr/pgrep index 76c400f2..6c3e05a4 100644 --- a/tldr/pgrep +++ b/tldr/pgrep @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # pgrep > Find or signal processes by name. -> More information: . +> More information: . - Return PIDs of any running processes with a matching command string: diff --git a/tldr/pip-lock b/tldr/pip-lock new file mode 100644 index 00000000..0016f8b0 --- /dev/null +++ b/tldr/pip-lock @@ -0,0 +1,26 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# pip lock + +> Lock Python packages and their dependencies into a reproducible file. +> Experimental feature of `pip`. +> More information: . + +- Generate a `pylock.toml` for the current project: + +`pip lock {{[-e|--editable]}} .` + +- Lock dependencies from a requirements file: + +`pip lock {{[-r|--requirement]}} {{path/to/requirements.txt}}` + +- Specify a custom output file for the lock: + +`pip lock {{[-o|--output]}} {{path/to/lockfile.toml}}` + +- Lock a specific package and its dependencies: + +`pip lock {{package}}` diff --git a/tldr/pip-search b/tldr/pip-search new file mode 100644 index 00000000..23e4afce --- /dev/null +++ b/tldr/pip-search @@ -0,0 +1,14 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# pip search + +> Search for Python packages by name or summary. +> Doesn't work with PyPI; may work with other package indexes. +> More information: . + +- Search for packages using a custom package index: + +`pip search {{[-i|--index]}} {{example.com}} {{query}}` diff --git a/tldr/pkill b/tldr/pkill index d161ab2b..2e92ee36 100644 --- a/tldr/pkill +++ b/tldr/pkill @@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git > Signal process by name. > Mostly used for stopping processes. -> More information: . +> More information: . - Kill all processes which match: diff --git a/tldr/radare2 b/tldr/radare2 index 67264d48..7d4a9731 100644 --- a/tldr/radare2 +++ b/tldr/radare2 @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # radare2 > A set of reverse engineering tools. -> More information: . +> More information: . - Open a file in write mode without parsing the file format headers: diff --git a/tldr/valac b/tldr/valac index 4c5215e3..b1ef552b 100644 --- a/tldr/valac +++ b/tldr/valac @@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git > Vala code compiler. > Tutorial: . -> More information: . +> More information: . - Compile a vala file, with gtk+: diff --git a/tldr/vela b/tldr/vela index ed13f79c..7f377966 100644 --- a/tldr/vela +++ b/tldr/vela @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # vela > Tools for the Vela pipeline. -> More information: . +> More information: . - Trigger a pipeline to run from a Git branch, commit or tag: diff --git a/tldr/whatweb b/tldr/whatweb index cb7ed07b..f3b6836e 100644 --- a/tldr/whatweb +++ b/tldr/whatweb @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # whatweb > Next-generation web scanner. -> More information: . +> More information: . - Scan websites/targets for web technologies: diff --git a/tldr/x8 b/tldr/x8 index 7395cd26..f837ad14 100644 --- a/tldr/x8 +++ b/tldr/x8 @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # x8 > A hidden parameters discovery suite for identifying vulnerable or interesting web parameters. -> More information: . +> More information: . - Check hidden parameters in a URL query: