mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-06 22:45:29 +00:00
Update cheatsheets
This commit is contained in:
@@ -5,10 +5,11 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# bun link
|
||||
|
||||
> Bun command to register the current package as a linkable package.
|
||||
> Register a local package as linkable or link a registered package into a project.
|
||||
> See also: `bun unlink`.
|
||||
> More information: <https://bun.com/docs/pm/cli/link>.
|
||||
|
||||
- Link the package globally:
|
||||
- Link the current package globally:
|
||||
|
||||
`bun link`
|
||||
|
||||
@@ -16,18 +17,14 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`bun link {{package_name}}`
|
||||
|
||||
- Link directly from a local path:
|
||||
- Link a package in a specific directory:
|
||||
|
||||
`bun link {{path/to/package}}`
|
||||
`bun link --cwd {{path/to/package}}`
|
||||
|
||||
- Unlink a package:
|
||||
- Perform a dry run without actually linking:
|
||||
|
||||
`bun unlink {{package_name}}`
|
||||
|
||||
- Unlink a global package:
|
||||
|
||||
`bun unlink --global {{package_name}}`
|
||||
`bun link --dry-run`
|
||||
|
||||
- Display help:
|
||||
|
||||
`bun link --help`
|
||||
`bun link {{[-h|--help]}}`
|
||||
|
||||
26
tldr/bun-unlink
Normal file
26
tldr/bun-unlink
Normal file
@@ -0,0 +1,26 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# bun unlink
|
||||
|
||||
> Unregister the current directory as a linkable package.
|
||||
> See also: `bun link`.
|
||||
> More information: <https://bun.com/docs/pm/cli/link#unlinking>.
|
||||
|
||||
- Unregister the current package globally:
|
||||
|
||||
`bun unlink`
|
||||
|
||||
- Unregister a package in a specific directory:
|
||||
|
||||
`bun unlink --cwd {{path/to/package}}`
|
||||
|
||||
- Perform a dry run without actually unregistering:
|
||||
|
||||
`bun unlink --dry-run`
|
||||
|
||||
- Display help:
|
||||
|
||||
`bun unlink {{[-h|--help]}}`
|
||||
@@ -22,4 +22,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Display help:
|
||||
|
||||
`conda create {{[-h|--help]}}`
|
||||
`conda compare {{[-h|--help]}}`
|
||||
|
||||
@@ -10,20 +10,20 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Display a live stream for the statistics of all running containers:
|
||||
|
||||
`docker {{[stats|container statss}}`
|
||||
`docker {{[stats|container stats]}}`
|
||||
|
||||
- Display a live stream of statistics for one or more containers:
|
||||
|
||||
`docker {{[stats|container statss}} {{container1 container2 ...}}`
|
||||
`docker {{[stats|container stats]}} {{container1 container2 ...}}`
|
||||
|
||||
- Change the columns format to display container's CPU usage percentage:
|
||||
|
||||
`docker {{[stats|container statss}} --format "{{.Name}}: {{.CPUPerc}}"`
|
||||
`docker {{[stats|container stats]}} --format "{{.Name}}: {{.CPUPerc}}"`
|
||||
|
||||
- Display statistics for all containers (both running and stopped):
|
||||
|
||||
`docker {{[stats|container statss}} {{[-a|--all]}}`
|
||||
`docker {{[stats|container stats]}} {{[-a|--all]}}`
|
||||
|
||||
- Disable streaming stats and only pull the current stats:
|
||||
|
||||
`docker {{[stats|container statss}} --no-stream`
|
||||
`docker {{[stats|container stats]}} --no-stream`
|
||||
|
||||
@@ -26,4 +26,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Delete a connection pool for a database:
|
||||
|
||||
`doctl {{[d|databases]}} {{[p|pool]}} {{[c|create]}} {{database_id}} {{pool_name}}`
|
||||
`doctl {{[d|databases]}} {{[p|pool]}} {{[rm|delete]}} {{database_id}} {{pool_name}}`
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# gacutil
|
||||
|
||||
> Global Assembly Cache (CAG) management utility.
|
||||
> Global Assembly Cache (GAC) management utility.
|
||||
> More information: <https://manned.org/gacutil>.
|
||||
|
||||
- Install the specified assembly into GAC:
|
||||
@@ -14,7 +14,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Uninstall the specified assembly from GAC:
|
||||
|
||||
`gacutil -i {{assembly_display_name}}`
|
||||
`gacutil -u {{assembly_display_name}}`
|
||||
|
||||
- Print the content of GAC:
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Apply and commit changes following a remote patch file:
|
||||
|
||||
`curl {{[-L|--location]}} {{https://example.com/file.patch}} | git apply`
|
||||
`curl {{[-L|--location]}} {{https://example.com/file.patch}} | git am`
|
||||
|
||||
- Abort the process of applying a patch file:
|
||||
|
||||
|
||||
21
tldr/kubectl-plugin
Normal file
21
tldr/kubectl-plugin
Normal file
@@ -0,0 +1,21 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# kubectl plugin
|
||||
|
||||
> Manage kubectl plugins that extend the functionality of the command.
|
||||
> More information: <https://kubernetes.io/docs/reference/kubectl/generated/kubectl_plugin/>.
|
||||
|
||||
- List all available plugins on the system `$PATH`:
|
||||
|
||||
`kubectl plugin list`
|
||||
|
||||
- List only the executable names of available plugins without full paths:
|
||||
|
||||
`kubectl plugin list --name-only`
|
||||
|
||||
- Display help:
|
||||
|
||||
`kubectl plugin {{[-h|--help]}}`
|
||||
34
tldr/linux/lid.idutils
Normal file
34
tldr/linux/lid.idutils
Normal file
@@ -0,0 +1,34 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# lid
|
||||
|
||||
> Query an ID database for tokens matching a pattern.
|
||||
> Note: An ID database must first be built using `mkid`.
|
||||
> More information: <https://www.gnu.org/software/idutils/manual/html_node/lid-invocation.html>.
|
||||
|
||||
- List all tokens and their file locations in the ID database:
|
||||
|
||||
`lid`
|
||||
|
||||
- Find files containing a specific token:
|
||||
|
||||
`lid {{token}}`
|
||||
|
||||
- Find tokens matching a pattern, ignoring case:
|
||||
|
||||
`lid {{[-i|--ignore-case]}} {{token}}`
|
||||
|
||||
- Find tokens matching an extended regular expression:
|
||||
|
||||
`lid {{[-r|--regexp]}} "{{pattern}}"`
|
||||
|
||||
- Output matching lines in grep-style format:
|
||||
|
||||
`lid {{[-R|--result]}} grep {{token}}`
|
||||
|
||||
- Find tokens that appear only once (useful for finding unused definitions):
|
||||
|
||||
`lid {{[-F|--frequency]}} 1`
|
||||
33
tldr/linux/mkid
Normal file
33
tldr/linux/mkid
Normal file
@@ -0,0 +1,33 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# mkid
|
||||
|
||||
> Build an ID database for use with `lid` and other idutils tools.
|
||||
> More information: <https://www.gnu.org/software/idutils/manual/html_node/mkid-invocation.html>.
|
||||
|
||||
- Build an ID database for the current directory:
|
||||
|
||||
`mkid`
|
||||
|
||||
- Build an ID database for specific directories:
|
||||
|
||||
`mkid {{path/to/directory1 path/to/directory2 ...}}`
|
||||
|
||||
- Build an ID database and save it to a specific file:
|
||||
|
||||
`mkid {{[-o|--output]}} {{path/to/database.id}}`
|
||||
|
||||
- Include only specific languages:
|
||||
|
||||
`mkid {{[-i|--include]}} "{{language1 language2 ...}}"`
|
||||
|
||||
- Exclude specific directories from indexing:
|
||||
|
||||
`mkid {{[-p|--prune]}} {{path/to/excluded_directory}}`
|
||||
|
||||
- Display statistics after building the database:
|
||||
|
||||
`mkid {{[-s|--statistics]}}`
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# podman image
|
||||
|
||||
> Manage OCI/Docker container images.
|
||||
> See also: `podman build`, `podman import`.
|
||||
> See also: `podman build`, `podman import`, `podman pull`.
|
||||
> More information: <https://docs.podman.io/en/latest/markdown/podman-image.1.html>.
|
||||
|
||||
- List local container images:
|
||||
|
||||
12
tldr/podman-image-pull
Normal file
12
tldr/podman-image-pull
Normal file
@@ -0,0 +1,12 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# podman image pull
|
||||
|
||||
> This command is an alias of `podman pull`.
|
||||
|
||||
- View documentation for the original command:
|
||||
|
||||
`tldr podman pull`
|
||||
33
tldr/podman-pull
Normal file
33
tldr/podman-pull
Normal file
@@ -0,0 +1,33 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# podman pull
|
||||
|
||||
> Pull images from a container registry.
|
||||
> More information: <https://docs.podman.io/en/latest/markdown/podman-pull.1.html>.
|
||||
|
||||
- Pull a specific container image:
|
||||
|
||||
`podman pull {{image}}:{{tag}}`
|
||||
|
||||
- Pull a container image in quiet mode:
|
||||
|
||||
`podman pull {{[-q|--quiet]}} {{image}}:{{tag}}`
|
||||
|
||||
- Pull all tags of a container image:
|
||||
|
||||
`podman pull {{[-a|--all-tags]}} {{image}}`
|
||||
|
||||
- Pull a container image for a specific platform, e.g. `linux/arm64`:
|
||||
|
||||
`podman pull --platform {{linux/arm64}} {{image}}:{{tag}}`
|
||||
|
||||
- Pull a container image without TLS verification:
|
||||
|
||||
`podman pull --tls-verify={{false}} {{image}}:{{tag}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`podman pull {{[-h|--help]}}`
|
||||
@@ -24,7 +24,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`read <<< "{{The surname is Bond}}" {{_ variable1 _ variable2}}`
|
||||
|
||||
- Do not let backslash (\) act as an escape character:
|
||||
- Do not let backslash (`\`) act as an escape character:
|
||||
|
||||
`read -r {{variable}}`
|
||||
|
||||
|
||||
37
tldr/supabase
Normal file
37
tldr/supabase
Normal file
@@ -0,0 +1,37 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# supabase
|
||||
|
||||
> Develop, deploy, and manage Supabase projects locally and on the cloud.
|
||||
> More information: <https://supabase.com/docs/reference/cli>.
|
||||
|
||||
- Log in to Supabase using an access token:
|
||||
|
||||
`supabase login`
|
||||
|
||||
- Initialize a new Supabase project in the current directory:
|
||||
|
||||
`supabase init`
|
||||
|
||||
- Start the local Supabase development stack:
|
||||
|
||||
`supabase start`
|
||||
|
||||
- Stop the local Supabase development stack:
|
||||
|
||||
`supabase stop`
|
||||
|
||||
- Show the status of the local Supabase development stack:
|
||||
|
||||
`supabase status`
|
||||
|
||||
- Link the current directory to a remote Supabase project:
|
||||
|
||||
`supabase link --project-ref {{project_id}}`
|
||||
|
||||
- List all Supabase projects:
|
||||
|
||||
`supabase projects list`
|
||||
Reference in New Issue
Block a user