Update cheatsheets

This commit is contained in:
ivuorinen
2025-06-08 00:22:33 +00:00
parent a5c67e91ea
commit 30f33b22c9
20 changed files with 79 additions and 24 deletions

41
tldr/devspace Normal file
View File

@@ -0,0 +1,41 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# devspace
> Develop, deploy, and debug applications inside Kubernetes.
> More information: <https://devspace.sh/docs/cli>.
- Initialize a new DevSpace project in the current directory:
`devspace init`
- Start development mode with port forwarding, file synchronization, and terminal access:
`devspace dev`
- Start development mode in a specific namespace:
`devspace dev {{[-n|--namespace]}} {{namespace}}`
- Deploy the project to Kubernetes:
`devspace deploy`
- Deploy the project with a specific profile:
`devspace deploy {{[-p|--profile]}} {{profile-name}}`
- Build all defined images:
`devspace build`
- Follow logs from a pod:
`devspace logs {{[-f|--follow]}}`
- Open the DevSpace UI in the browser:
`devspace ui`

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# gcloud help
> Display help and reference information for `gcloud`.
> For supplementary help for topics not directly associated with individual commands, see also `tldr gcloud topic`.
> See also: `gcloud topic`, for supplementary help topics not directly associated with individual commands.
> More information: <https://cloud.google.com/sdk/gcloud/reference/help>.
- Search the `gcloud` CLI reference documents for specific terms:

View File

@@ -5,8 +5,8 @@ source: https://github.com/tldr-pages/tldr.git
---
# gcloud topic
> Display supplementary help for topics not directly associated with individual commands. See also `gcloud`.
> For general help, see `tldr gcloud help`.
> Display supplementary help for topics not directly associated with individual commands.
> See also: `gcloud help` for general help.
> More information: <https://cloud.google.com/sdk/gcloud/reference/topic>.
- View supplementary help material for non-command topics like accessibility, filtering, and formatting:

View File

@@ -5,8 +5,9 @@ source: https://github.com/tldr-pages/tldr.git
---
# distrobox-create
> Create a Distrobox container. See also: `tldr distrobox`.
> Create a Distrobox container.
> The container created will be tightly integrated with the host, allowing sharing of the user's HOME directory, external storage, external USB devices, graphical apps (X11/Wayland), and audio.
> See also: `distrobox`.
> More information: <https://distrobox.it/usage/distrobox-create>.
- Create a Distrobox container using the Ubuntu image:

View File

@@ -5,8 +5,9 @@ source: https://github.com/tldr-pages/tldr.git
---
# distrobox-enter
> Enter a Distrobox container. See also: `tldr distrobox`.
> Enter a Distrobox container.
> Default command executed is your SHELL, but you can specify different shells or entire commands to execute. If used inside a script, an application, or a service, you can use the `--headless` mode to disable the tty and interactivity.
> See also: `distrobox`.
> More information: <https://distrobox.it/usage/distrobox-enter>.
- Enter a Distrobox container:

View File

@@ -5,7 +5,8 @@ source: https://github.com/tldr-pages/tldr.git
---
# distrobox-export
> Export app/service/binary from container to host OS. See also: `tldr distrobox`.
> Export app/service/binary from container to host OS.
> See also: `distrobox`.
> More information: <https://distrobox.it/usage/distrobox-export>.
- Export an app from the container to the host (the desktop entry/icon will show up in your host system's application list):

View File

@@ -5,7 +5,8 @@ source: https://github.com/tldr-pages/tldr.git
---
# distrobox-host-exec
> Execute a command on the host from inside a Distrobox container. See also: `tldr distrobox`.
> Execute a command on the host from inside a Distrobox container.
> See also: `distrobox`.
> More information: <https://distrobox.it/usage/distrobox-host-exec>.
- Execute command on the host system from inside the Distrobox container:

View File

@@ -5,8 +5,9 @@ source: https://github.com/tldr-pages/tldr.git
---
# distrobox-list
> List all Distrobox containers. See also: `tldr distrobox`.
> List all Distrobox containers.
> Distrobox containers are listed separately from the rest of normal Podman or Docker containers.
> See also: `distrobox`.
> More information: <https://distrobox.it/usage/distrobox-list>.
- List all Distrobox containers:

View File

@@ -5,7 +5,8 @@ source: https://github.com/tldr-pages/tldr.git
---
# distrobox-rm
> Remove a Distrobox container. See also: `tldr distrobox`.
> Remove a Distrobox container.
> See also: `distrobox`.
> More information: <https://distrobox.it/usage/distrobox-rm>.
- Remove a Distrobox container (Tip: Stop the container before removing it):

View File

@@ -5,7 +5,8 @@ source: https://github.com/tldr-pages/tldr.git
---
# distrobox-stop
> Stop a Distrobox container. See also: `tldr distrobox`.
> Stop a Distrobox container.
> See also: `distrobox`.
> More information: <https://distrobox.it/usage/distrobox-stop>.
- Stop a Distrobox container:

View File

@@ -5,7 +5,8 @@ source: https://github.com/tldr-pages/tldr.git
---
# distrobox-upgrade
> Upgrade one or multiple Distrobox containers. See also: `tldr distrobox`.
> Upgrade one or multiple Distrobox containers.
> See also: `distrobox`.
> More information: <https://distrobox.it/usage/distrobox-upgrade>.
- Upgrade a container using the container's native package manager:

View File

@@ -15,7 +15,7 @@ source: https://github.com/tldr-pages/tldr.git
- Compile a KDE component and its dependencies from the source (use `workspace` to compile Plasma desktop):
`kde-builder {{component_name}}`
`kde-builder {{component_name1 component_name2 ...}}`
- Compile a component without updating its local code and without compiling its dependencies:

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> Note: This page is currently a redirection stub. If you are familiar with this program, please open a pull request.
> Query ID database and report results.
> On Fedora and Arch Linux, the binary name `lid` is taken by another program. See `tldr libuser-lid`.
> On Fedora and Arch Linux, the binary name `lid` is taken by another program - see `tldr libuser-lid`.
> More information: <https://www.gnu.org/software/idutils/>.
- View documentation for `libuser-lid`:

View File

@@ -6,7 +6,8 @@ source: https://github.com/tldr-pages/tldr.git
# virt-viewer
> Minimal graphical interface for a virtual machine (VM).
> Note: 'domain' refers to the name, UUID or ID for the existing VMs (See: `tldr virsh`).
> Note: 'domain' refers to the name, UUID or ID for the existing VMs.
> See also: `virsh`.
> More information: <https://manned.org/virt-viewer>.
- Launch `virt-viewer` with a prompt to select running virtual machines:

View File

@@ -6,7 +6,8 @@ source: https://github.com/tldr-pages/tldr.git
# virt-xml
> Edit libvirt Domain XML files with explicit command-line options.
> Note: 'domain' refers to the name, UUID or ID for the existing VMs (See: `tldr virsh`).
> Note: 'domain' refers to the name, UUID or ID for the existing VMs.
> See also: `virsh`.
> More information: <https://github.com/virt-manager/virt-manager/blob/main/man/virt-xml.rst>.
- List all the suboptions for a specific option:
@@ -29,6 +30,6 @@ source: https://github.com/tldr-pages/tldr.git
`virt-xml {{domain}} --edit --boot bootmenu={{on|off}}`
- Attach host USB hub to a running VM (See: `tldr lsusb`):
- Attach host USB hub to a running VM (run `lsusb` to see a list of USB devices with their IDs):
`virt-xml {{domain}} --update --add-device --hostdev {{bus}}.{{device}}`

View File

@@ -6,7 +6,8 @@ source: https://github.com/tldr-pages/tldr.git
# nix
> A powerful package manager that makes package management reliable, reproducible, and declarative.
> `nix` is experimental and requires enabling experimental features. For a classic, stable interface, see `tldr nix classic`.
> `nix` is experimental and requires enabling experimental features.
> See also: `nix classic` for a classic, stable interface.
> Some subcommands such as `build`, `develop`, `flake`, `registry`, `profile`, `search`, `repl`, `store`, `edit`, `why-depends`, etc. have their own usage documentation.
> More information: <https://nix.dev/manual/nix/stable/command-ref/new-cli/nix>.

View File

@@ -6,7 +6,8 @@ source: https://github.com/tldr-pages/tldr.git
# nix classic
> A classic, stable interface to a powerful package manager that makes package management reliable, reproducible, and declarative.
> Some Nix commands such as `nix-build`, `nix-shell`, `nix-env`, and `nix-store` have their own pages. See also: `tldr nix`.
> Some Nix commands such as `nix-build`, `nix-shell`, `nix-env`, and `nix-store` have their own pages.
> See also: `nix`.
> More information: <https://nixos.org>.
- Search for a package in nixpkgs via its name:

View File

@@ -6,6 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# ssh-keygen
> Generate SSH keys used for authentication, password-less logins, and other things.
> See also: `ssh-copy-id` for installing SSH keys on remote hosts.
> More information: <https://man.openbsd.org/ssh-keygen>.
- Generate a key interactively:

View File

@@ -6,6 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# ulimit
> Get and set resource limits for user processes.
> It is a shell builtin hence not shell-agnostic.
> More information: <https://www.gnu.org/software/bash/manual/bash.html#index-ulimit>.
- Get the properties of all the user limits:
@@ -24,6 +25,6 @@ source: https://github.com/tldr-pages/tldr.git
`ulimit -u 30`
- Display help:
- Display help (Bash only):
`help ulimit`

10
tldr/xz
View File

@@ -14,23 +14,23 @@ source: https://github.com/tldr-pages/tldr.git
- Decompress an XZ file:
`xz --decompress {{path/to/file.xz}}`
`xz {{[-d|--decompress]}} {{path/to/file.xz}}`
- Compress a file using lzma:
`xz --format=lzma {{path/to/file}}`
`xz {{[-F|--format]}} lzma {{path/to/file}}`
- Decompress an LZMA file:
`xz --decompress --format=lzma {{path/to/file.lzma}}`
`xz {{[-d|--decompress]}} {{[-F|--format]}} lzma {{path/to/file.lzma}}`
- Decompress a file and write to `stdout` (implies `--keep`):
`xz --decompress --stdout {{path/to/file.xz}}`
`xz {{[-d|--decompress]}} {{[-c|--stdout]}} {{path/to/file.xz}}`
- Compress a file, but don't delete the original:
`xz --keep {{path/to/file}}`
`xz {{[-k|--keep]}} {{path/to/file}}`
- Compress a file using the fastest compression: