Update cheatsheets

This commit is contained in:
ivuorinen
2025-10-06 00:19:32 +00:00
parent 31c618829e
commit 3e6fa5fca1
47 changed files with 214 additions and 39 deletions

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> Record and replay terminal sessions, and optionally share them on <https://asciinema.org>.
> See also: `terminalizer`.
> More information: <https://docs.asciinema.org/manual/cli/usage>.
> More information: <https://docs.asciinema.org/manual/cli/>.
- Associate the local install of `asciinema` with an asciinema.org account:

View File

@@ -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: <https://atuin.sh/docs/commands>.
> More information: <https://docs.atuin.sh/>.
- Install atuin into your shell:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# brave
> This command is an alias of `chromium`.
> More information: <https://support.brave.com/hc/en-us/articles/360044860011-How-Do-I-Use-Command-Line-Flags-in-Brave>.
> More information: <https://support.brave.app/hc/en-us/articles/360044860011-How-Do-I-Use-Command-Line-Flags-in-Brave>.
- View documentation for the original command:

22
tldr/cargo-binstall Normal file
View File

@@ -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: <https://github.com/cargo-bins/cargo-binstall>.
- Install a package from <https://crates.io>:
`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}}`

View File

@@ -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: <https://manpages.ubuntu.com/manpages/focal/man1/clangd.1.html>.
> More information: <https://manpages.ubuntu.com/manpages/man1/clangd.1.html>.
- Display available options:

21
tldr/dos/cd Normal file
View File

@@ -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: <https://www.gnu.org/software/bash/manual/bash.html#index-cd>.
- 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 \`

View File

@@ -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: <https://fossil-scm.org/home/help/rm>.
> More information: <https://fossil-scm.org/home/help/delete>.
- Remove a file or directory from Fossil version control:

12
tldr/ic Normal file
View File

@@ -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`

View File

@@ -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: <https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#api-resources>.
> More information: <https://kubernetes.io/docs/reference/kubectl/generated/kubectl_api-resources>.
- Print the supported API resources:

View File

@@ -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: <https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#apply>.
> More information: <https://kubernetes.io/docs/reference/kubectl/generated/kubectl_apply>.
- Apply a configuration to a resource by file name:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# kubectl auth
> Inspect access permissions in a Kubernetes cluster.
> More information: <https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#auth>.
> More information: <https://kubernetes.io/docs/reference/kubectl/generated/kubectl_auth>.
- Check if the current user can perform all actions on all resources in a specific namespace:

View File

@@ -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: <https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#autoscale>.
> More information: <https://kubernetes.io/docs/reference/kubectl/generated/kubectl_autoscale>.
- Auto scale a deployment with no target CPU utilization specified:

View File

@@ -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: <https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#config>.
> More information: <https://kubernetes.io/docs/reference/kubectl/generated/kubectl_config>.
- Get all contexts in the default kubeconfig file:

View File

@@ -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: <https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#create>.
> More information: <https://kubernetes.io/docs/reference/kubectl/generated/kubectl_create>.
- Create a resource using the resource definition file:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# kubectl delete
> Delete Kubernetes resources.
> More information: <https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#delete>.
> More information: <https://kubernetes.io/docs/reference/kubectl/generated/kubectl_delete>.
- Delete a specific pod:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# kubectl describe
> Show details of Kubernetes resources.
> More information: <https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#describe>.
> More information: <https://kubernetes.io/docs/reference/kubectl/generated/kubectl_describe>.
- Show details of pods in a namespace:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# kubectl edit
> Edit Kubernetes resources.
> More information: <https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#edit>.
> More information: <https://kubernetes.io/docs/reference/kubectl/generated/kubectl_edit>.
- Edit a pod in the default namespace:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# kubectl exec
> Execute a command in a container.
> More information: <https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#exec>.
> More information: <https://kubernetes.io/docs/reference/kubectl/generated/kubectl_exec>.
- Open Bash in a pod, using the first container by default:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# kubectl expose
> Expose a resource as a new Kubernetes service.
> More information: <https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#expose>.
> More information: <https://kubernetes.io/docs/reference/kubectl/generated/kubectl_expose>.
- Create a service for a resource, which will be served from container port to node port:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# kubectl get
> Get Kubernetes objects and resources.
> More information: <https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#get>.
> More information: <https://kubernetes.io/docs/reference/kubectl/generated/kubectl_get>.
- Get all namespaces in the current cluster:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# kubectl label
> Label Kubernetes resources.
> More information: <https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#label>.
> More information: <https://kubernetes.io/docs/reference/kubectl/generated/kubectl_label>.
- Label a pod:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# kubectl logs
> Show logs for containers in a pod.
> More information: <https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#logs>.
> More information: <https://kubernetes.io/docs/reference/kubectl/generated/kubectl_logs>.
- Show logs for a single-container pod:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# kubectl replace
> Replace a resource by file or `stdin`.
> More information: <https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#replace>.
> More information: <https://kubernetes.io/docs/reference/kubectl/generated/kubectl_replace>.
- Replace the resource using the resource definition file:

View File

@@ -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: <https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#rollout>.
> More information: <https://kubernetes.io/docs/reference/kubectl/generated/kubectl_rollout>.
- Start a rolling restart of a resource:

View File

@@ -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: <https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#run>.
> More information: <https://kubernetes.io/docs/reference/kubectl/generated/kubectl_run>.
- Run an nginx pod and expose port 80:

View File

@@ -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: <https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#scale>.
> More information: <https://kubernetes.io/docs/reference/kubectl/generated/kubectl_scale>.
- Scale a replica set:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# kubectl taint
> Update the taints on nodes.
> More information: <https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#taint>.
> More information: <https://kubernetes.io/docs/reference/kubectl/generated/kubectl_taint>.
- Apply taint to a node:

View File

@@ -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: <https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#wait>.
> More information: <https://kubernetes.io/docs/reference/kubectl/generated/kubectl_wait>.
- Wait for a deployment to become available:

View File

@@ -6,7 +6,8 @@ source: https://github.com/tldr-pages/tldr.git
# dstat
> Versatile tool for generating system resource statistics.
> More information: <http://dag.wieers.com/home-made/dstat>.
> Note: dstat is deprecated and no longer maintained.
> More information: <https://github.com/dstat-real/dstat>.
- Display CPU, disk, net, paging and system statistics:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# hyprctl
> Control parts of the Hyprland Wayland compositor.
> More information: <https://wiki.hyprland.org/Configuring/Using-hyprctl>.
> More information: <https://wiki.hypr.land/Configuring/Using-hyprctl/>.
- Reload Hyprland configuration:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# hyprpm
> Control plugins for the Hyprland Wayland compositor.
> More information: <https://wiki.hyprland.org/Plugins/Using-Plugins/#hyprpm>.
> More information: <https://wiki.hypr.land/Plugins/Using-Plugins/#hyprpm>.
- Add a plugin:

View File

@@ -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: <https://www.manned.org/ip.8>.
> More information: <https://manned.org/ip.8>.
- List interfaces with detailed info:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# poweroff
> Power off the system.
> More information: <https://www.manned.org/poweroff>.
> More information: <https://manned.org/poweroff>.
- Power off the system:

26
tldr/linux/routel Normal file
View File

@@ -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: <https://manned.org/man/routel>.
- 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]}}`

View File

@@ -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: <https://www.freedesktop.org/software/systemd/man/systemctl.html#daemon-reload>.
- Reload systemd to apply changes in unit files:
`systemctl daemon-reload`

38
tldr/linux/systemctl-halt Normal file
View File

@@ -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: <https://www.freedesktop.org/software/systemd/man/systemctl.html#halt>.
- 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`

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# matlab
> Numerical computation environment by MathWorks.
> More information: <https://se.mathworks.com/help/matlab/matlab_env/startup-options.html>.
> More information: <https://www.mathworks.com/help/matlab/matlab_env/startup-options.html>.
- Run without splash screen during startup:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# ncdu
> Disk usage analyzer with an ncurses interface.
> More information: <https://manned.org/ncdu>.
> More information: <https://dev.yorhel.nl/ncdu/man>.
- Analyze the current working directory:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# pgrep
> Find or signal processes by name.
> More information: <https://www.manned.org/pgrep>.
> More information: <https://manned.org/pgrep>.
- Return PIDs of any running processes with a matching command string:

26
tldr/pip-lock Normal file
View File

@@ -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: <https://pip.pypa.io/en/stable/cli/pip_lock/>.
- 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}}`

14
tldr/pip-search Normal file
View File

@@ -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: <https://pip.pypa.io/en/stable/cli/pip_search/>.
- Search for packages using a custom package index:
`pip search {{[-i|--index]}} {{example.com}} {{query}}`

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> Signal process by name.
> Mostly used for stopping processes.
> More information: <https://www.manned.org/pkill>.
> More information: <https://manned.org/pkill>.
- Kill all processes which match:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# radare2
> A set of reverse engineering tools.
> More information: <https://www.radare.org/r/docs.html>.
> More information: <https://book.rada.re/first_steps/commandline_flags.html>.
- Open a file in write mode without parsing the file format headers:

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> Vala code compiler.
> Tutorial: <https://wiki.gnome.org/Projects/Vala/Tutorial>.
> More information: <https://docs.vala.dev/tutorials/programming-language/main/07-00-tools/07-01-valac.html/>.
> More information: <https://docs.vala.dev/tutorials/programming-language/main/07-00-tools/07-01-valac.html>.
- Compile a vala file, with gtk+:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# vela
> Tools for the Vela pipeline.
> More information: <https://go-vela.github.io/docs/reference/cli/>.
> More information: <https://go-vela.github.io/docs/reference/cli>.
- Trigger a pipeline to run from a Git branch, commit or tag:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# whatweb
> Next-generation web scanner.
> More information: <https://morningstarsecurity.com/research/whatweb>.
> More information: <https://github.com/urbanadventurer/WhatWeb/>.
- Scan websites/targets for web technologies:

View File

@@ -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: <https://sh1yo.art/x8docs/>.
> More information: <https://github.com/Sh1Yo/x8/blob/main/docs.md>.
- Check hidden parameters in a URL query: