Update cheatsheets

This commit is contained in:
ivuorinen
2025-12-11 00:21:58 +00:00
parent 9b844dc12b
commit f3773777cf
36 changed files with 230 additions and 99 deletions

41
tldr/bd Normal file
View File

@@ -0,0 +1,41 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# bd
> A lightweight memory system and git-backed issue tracker for AI coding agents.
> More information: <https://github.com/steveyegge/beads#usage>.
- Initialize a project database:
`bd init`
- Create a new issue with description, priority, and type:
`bd create {{issue_title}} {{[-d|--description]}} {{description}} {{[-p|--priority]}} {{1}} {{[-t|--type]}} {{bug|feature|task|epic|chore}}`
- List all issues:
`bd list`
- Show issues ready to work on (no blockers):
`bd ready`
- Display details of a specific issue:
`bd show {{issue_id}}`
- Update an issue status:
`bd update {{issue_id}} {{[-s|--status]}} {{open|in_progress|blocked|closed}}`
- Manually sync changes and import latest from git:
`bd sync`
- Display help:
`bd {{[-h|--help]}}`

37
tldr/bun-init Normal file
View File

@@ -0,0 +1,37 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# bun init
> Scaffold an empty Bun project.
> More information: <https://bun.com/docs/runtime/templating/init>.
- Initialize a Bun project in the current directory:
`bun init`
- Initialize in a specific directory:
`bun init {{path/to/directory}}`
- Initialize with a specific project name:
`bun init {{[-n|--name]}} {{project_name}}`
- Initialize a project with default prompts:
`bun init {{[-y|--yes]}}`
- Initialize a minimal project:
`bun init {{[-m|--minimal]}}`
- Initialize a React project:
`bun init {{[-r|--react]}}`
- Initialize a React project with Tailwind CSS:
`bun init --react=tailwind`

View File

@@ -32,7 +32,7 @@ source: https://github.com/tldr-pages/tldr.git
`chainctl images history {{image}}:{{tag}}` `chainctl images history {{image}}:{{tag}}`
- List package version data from repositories available to your account (e.g.,package_name=go): - List package version data from repositories available to your account (e.g., package_name=go):
`chainctl packages versions list {{package_name}}` `chainctl packages versions list {{package_name}}`

View File

@@ -23,4 +23,4 @@ source: https://github.com/tldr-pages/tldr.git
- Send a PostScript test document to every PostScript printer on the network, whose name matches a `regex`: - Send a PostScript test document to every PostScript printer on the network, whose name matches a `regex`:
`ippfind --txt-pdl application/postscript {{[-h|--host]}} {{regex}} {{[-x|--exec]}} ipptool -f onepage-letter.ps '{}' print-job.test \;` `ippfind --txt-pdl application/postscript {{[-h|--host]}} {{regex}} {{[-x|--exec]}} ipptool -f onepage-letter.ps '{}' print-job.test \;`

View File

@@ -6,16 +6,29 @@ source: https://github.com/tldr-pages/tldr.git
# jira # jira
> Interface (third party) for interacting with Jira. > Interface (third party) for interacting with Jira.
> More information: <https://github.com/ankitpokhrel/jira-cli>. > Note: Obtaining a Jira API token and exporting it to the shell as a `$JIRA_API_TOKEN` variable is required.
> More information: <https://github.com/ankitpokhrel/jira-cli#commands>.
- Create a configuration file (required before using `jira`):
`jira init`
- List recent issues: - List recent issues:
`jira issue list` `jira issue {{[ls|list]}}`
- List unassigned issues with high priority:
`jira issue {{[ls|list]}} {{[-a|--assignee]}} x {{[-y|--priority]}} High`
- List issues from the current sprint, assigned to me: - List issues from the current sprint, assigned to me:
`jira sprint list --current {{[-a|--assignee]}} $(jira me)` `jira sprint {{[ls|list]}} --current {{[-a|--assignee]}} $(jira me)`
- Create a new issue, optionally set a parent issue: - Create a new issue with a parent issue:
`jira issue create {{[-P|--parent]}} {{parent}}` `jira issue create {{[-P|--parent]}} {{parent}}`
- Open an issue in the browser:
`jira open {{123}}`

37
tldr/kaggle-kernels Normal file
View File

@@ -0,0 +1,37 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# kaggle kernels
> Manage Kaggle kernels.
> More information: <https://github.com/Kaggle/kaggle-api/blob/main/docs/README.md#kernels>.
- List all kernels:
`kaggle {{[k|kernels]}} list`
- List kernel output files:
`kaggle {{[k|kernels]}} files {{kernel_name}}`
- Initialize metadata file for a kernel (defaults to current directory):
`kaggle {{[k|kernels]}} init {{[-p|--path]}} {{path/to/directory}}`
- Push new code to a kernel and run the kernel:
`kaggle {{[k|kernels]}} push {{[-p|--path]}} {{path/to/directory}}`
- Pull a kernel:
`kaggle {{[k|kernels]}} pull {{kernel_name}} {{[-p|--path]}} {{path/to/directory}}`
- Get data output from the latest kernel run:
`kaggle {{[k|kernels]}} output {{kernel_name}}`
- Display the status of the latest kernel run:
`kaggle {{[k|kernels]}} status {{kernel_name}}`

View File

@@ -18,7 +18,7 @@ source: https://github.com/tldr-pages/tldr.git
- Identify processes using a TCP socket: - Identify processes using a TCP socket:
`fuser {{[-n|--namespace]}} tcp {{port}}` `fuser {{port}}/tcp`
- Kill all processes accessing a file or directory (sends the `SIGKILL` signal): - Kill all processes accessing a file or directory (sends the `SIGKILL` signal):

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
--- ---
# lrunzip # lrunzip
> This command is an alias of `lrzip -d`. > This command is an alias of `lrzip --decompress`.
- View documentation for the original command: - View documentation for the original command:

View File

@@ -15,20 +15,20 @@ source: https://github.com/tldr-pages/tldr.git
- Compress a file with BZIP2 - good middle ground for compression/speed: - Compress a file with BZIP2 - good middle ground for compression/speed:
`lrzip -b {{path/to/file}}` `lrzip {{[-b|--bzip2]}} {{path/to/file}}`
- Compress with ZPAQ - extreme compression, but very slow: - Compress with ZPAQ - extreme compression, but very slow:
`lrzip -z {{path/to/file}}` `lrzip {{[-z|--zpaq]}} {{path/to/file}}`
- Compress with LZO - light compression, extremely fast decompression: - Compress with LZO - light compression, extremely fast decompression:
`lrzip -l {{path/to/file}}` `lrzip {{[-l|--lzo]}} {{path/to/file}}`
- Compress a file and password protect/encrypt it: - Compress a file and password protect/encrypt it:
`lrzip -e {{path/to/file}}` `lrzip {{[-e|--encrypt]}} {{path/to/file}}`
- Override the number of processor threads to use: - Override the number of processor threads to use:
`lrzip -p {{8}} {{path/to/file}}` `lrzip {{[-p|--threads]}} {{8}} {{path/to/file}}`

View File

@@ -15,16 +15,16 @@ source: https://github.com/tldr-pages/tldr.git
- Same as above, with ZPAQ - extreme compression, but very slow: - Same as above, with ZPAQ - extreme compression, but very slow:
`lrztar -z {{path/to/directory}}` `lrztar {{[-z|--zpaq]}} {{path/to/directory}}`
- Specify the output file: - Specify the output file:
`lrztar -o {{path/to/file}} {{path/to/directory}}` `lrztar {{[-o|--outfile]}} {{path/to/file}} {{path/to/directory}}`
- Override the number of processor threads to use: - Override the number of processor threads to use:
`lrztar -p {{8}} {{path/to/directory}}` `lrztar {{[-p|--threads]}} {{8}} {{path/to/directory}}`
- Force overwriting of existing files: - Force overwriting of existing files:
`lrztar -f {{path/to/directory}}` `lrztar {{[-f|--force]}} {{path/to/directory}}`

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
--- ---
# lrzuntar # lrzuntar
> This command is an alias of `lrztar -d`. > This command is an alias of `lrztar --decompress`.
- View documentation for the original command: - View documentation for the original command:

View File

@@ -9,7 +9,7 @@ source: https://github.com/tldr-pages/tldr.git
> Some subcommands such as `create` have their own usage documentation. > Some subcommands such as `create` have their own usage documentation.
> More information: <https://manned.org/toolbox>. > More information: <https://manned.org/toolbox>.
- Enter a container to use it interactively: - Enter a Toolbx container to use it interactively:
`toolbox enter {{container}}` `toolbox enter {{container}}`
@@ -21,7 +21,7 @@ source: https://github.com/tldr-pages/tldr.git
`toolbox rmi {{image1 image2 ...}}` `toolbox rmi {{image1 image2 ...}}`
- Display help for a specific subcommand (such as `create`, `enter`, `rm`, `rmi`, etc.): - Display help for a specific subcommand (such as `create`, `enter`, `rm`, etc.):
`toolbox help {{subcommand}}` `toolbox help {{subcommand}}`

View File

@@ -5,25 +5,25 @@ source: https://github.com/tldr-pages/tldr.git
--- ---
# toolbox create # toolbox create
> Create a new `toolbox` container. > Create a new Toolbx container.
> More information: <https://manned.org/toolbox-create>. > More information: <https://manned.org/toolbox-create>.
- Create a `toolbox` container for a specific distribution: - Create a Toolbx container for a specific distribution:
`toolbox create {{[-d|--distro]}} {{distribution}}` `toolbox create {{[-d|--distro]}} {{distribution}}`
- Create a `toolbox` container for a specific release of the current distribution: - Create a Toolbx container for a specific release of the current distribution:
`toolbox create {{[-r|--release]}} {{release}}` `toolbox create {{[-r|--release]}} {{release}}`
- Create a `toolbox` container with a custom image: - Create a Toolbx container with a custom image:
`toolbox create {{[-i|--image]}} {{name}}` `toolbox create {{[-i|--image]}} {{name}}`
- Create a `toolbox` container from a custom Fedora image: - Create a Toolbx container from a custom Fedora image:
`toolbox create {{[-i|--image]}} {{quay.io/fedora/fedora:tag}}` `toolbox create {{[-i|--image]}} {{quay.io/fedora/fedora:tag}}`
- Create a `toolbox` container using the default image for a specific Fedora release: - Create a Toolbx container using the default image for a specific Fedora release:
`toolbox create {{[-d|--distro]}} {{fedora}} {{[-r|--release]}} f{{version}}` `toolbox create {{[-d|--distro]}} {{fedora}} {{[-r|--release]}} f{{version}}`

View File

@@ -5,18 +5,18 @@ source: https://github.com/tldr-pages/tldr.git
--- ---
# toolbox enter # toolbox enter
> Enter a `toolbox` container for interactive use. > Enter a Toolbx container for interactive use.
> See also: `toolbox run`. > See also: `toolbox run`.
> More information: <https://manned.org/toolbox-enter>. > More information: <https://manned.org/toolbox-enter>.
- Enter a `toolbox` container using the default image of a specific distribution: - Enter a Toolbx container using the default image of a specific distribution:
`toolbox enter {{[-d|--distro]}} {{distribution}}` `toolbox enter {{[-d|--distro]}} {{distribution}}`
- Enter a `toolbox` container using the default image of a specific release of the current distribution: - Enter a Toolbx container using the default image of a specific release of the current distribution:
`toolbox enter {{[-r|--release]}} {{release}}` `toolbox enter {{[-r|--release]}} {{release}}`
- Enter a toolbox container using the default image for a specific Fedora release: - Enter a Toolbx container using the default image for a specific Fedora release:
`toolbox enter {{[-d|--distro]}} {{fedora}} {{[-r|--release]}} f{{version}}` `toolbox enter {{[-d|--distro]}} {{fedora}} {{[-r|--release]}} f{{version}}`

View File

@@ -5,13 +5,13 @@ source: https://github.com/tldr-pages/tldr.git
--- ---
# toolbox help # toolbox help
> Display help information about `toolbox`. > Display help information about Toolbx.
> More information: <https://manned.org/toolbox-help>. > More information: <https://manned.org/toolbox-help>.
- Display the `toolbox` manual: - Display the Toolbx manual:
`toolbox help` `toolbox help`
- Display the `toolbox` manual for a specific subcommand: - Display the Toolbx manual for a specific subcommand:
`toolbox help {{subcommand}}` `toolbox help {{subcommand}}`

View File

@@ -5,10 +5,10 @@ source: https://github.com/tldr-pages/tldr.git
--- ---
# toolbox init-container # toolbox init-container
> Initialize a running `toolbox` container. > Initialize a running Toolbx container.
> This command should not be executed by the user, and cannot be run on the host. > This command should not be executed by the user, and cannot be run on the host.
> More information: <https://manned.org/toolbox-init-container>. > More information: <https://manned.org/toolbox-init-container>.
- Initialize a running toolbox: - Initialize a running Toolbx container:
`toolbox init-container --gid {{gid}} --home {{home}} --home-link --media-link --mnt-link --monitor-host --shell {{shell}} --uid {{uid}} --user {{user}}` `toolbox init-container --gid {{gid}} --home {{home}} --home-link --media-link --mnt-link --monitor-host --shell {{shell}} --uid {{uid}} --user {{user}}`

View File

@@ -5,17 +5,17 @@ source: https://github.com/tldr-pages/tldr.git
--- ---
# toolbox list # toolbox list
> List existing `toolbox` containers and images. > List existing Toolbx containers and images.
> More information: <https://manned.org/toolbox-list>. > More information: <https://manned.org/toolbox-list>.
- List all `toolbox` containers and images: - List all Toolbx containers and images:
`toolbox list` `toolbox list`
- List only `toolbox` containers: - List only Toolbx containers:
`toolbox list {{[-c|--containers]}}` `toolbox list {{[-c|--containers]}}`
- List only `toolbox` images: - List only Toolbx images:
`toolbox list {{[-i|--images]}}` `toolbox list {{[-i|--images]}}`

View File

@@ -5,18 +5,18 @@ source: https://github.com/tldr-pages/tldr.git
--- ---
# toolbox rm # toolbox rm
> Remove one or more `toolbox` containers. > Remove one or more Toolbx containers.
> See also: `toolbox rmi`. > See also: `toolbox rmi`.
> More information: <https://manned.org/toolbox-rm>. > More information: <https://manned.org/toolbox-rm>.
- Remove a toolbox container: - Remove a Toolbx container:
`toolbox rm {{container_name}}` `toolbox rm {{container_name}}`
- Remove all `toolbox` containers: - Remove all Toolbx containers:
`toolbox rm {{[-a|--all]}}` `toolbox rm {{[-a|--all]}}`
- Force the removal of a currently active `toolbox` container: - Force the removal of a currently active Toolbx container:
`toolbox rm {{[-f|--force]}} {{container_name}}` `toolbox rm {{[-f|--force]}} {{container_name}}`

View File

@@ -5,18 +5,18 @@ source: https://github.com/tldr-pages/tldr.git
--- ---
# toolbox rmi # toolbox rmi
> Remove `toolbox` images. > Remove Toolbx images.
> See also: `toolbox rm`. > See also: `toolbox rm`.
> More information: <https://manned.org/toolbox-rmi>. > More information: <https://manned.org/toolbox-rmi>.
- Remove one or more `toolbox` image: - Remove one or more Toolbx image:
`toolbox rmi {{image_name1 image_name2 ...}}` `toolbox rmi {{image_name1 image_name2 ...}}`
- Remove all `toolbox` images: - Remove all Toolbx images:
`toolbox rmi {{[-a|--all]}}` `toolbox rmi {{[-a|--all]}}`
- Force the removal of a `toolbox` image which is currently being used by a container (the container will be removed as well): - Force the removal of a Toolbx image which is currently being used by a container (the container will be removed as well):
`toolbox rmi {{[-f|--force]}} {{image_name}}` `toolbox rmi {{[-f|--force]}} {{image_name}}`

View File

@@ -5,18 +5,18 @@ source: https://github.com/tldr-pages/tldr.git
--- ---
# toolbox run # toolbox run
> Run a command in an existing `toolbox` container. > Run a command in an existing Toolbx container.
> See also: `toolbox enter`. > See also: `toolbox enter`.
> More information: <https://manned.org/toolbox-run>. > More information: <https://manned.org/toolbox-run>.
- Run a command inside a specific `toolbox` container: - Run a command inside a specific Toolbx container:
`toolbox run {{[-c|--container]}} {{container_name}} {{command}}` `toolbox run {{[-c|--container]}} {{container_name}} {{command}}`
- Run a command inside a `toolbox` container for a specific release of a distribution: - Run a command inside a Toolbx container for a specific release of a distribution:
`toolbox run {{[-d|--distro]}} {{distribution}} {{[-r|--release]}} {{release}} {{command}}` `toolbox run {{[-d|--distro]}} {{distribution}} {{[-r|--release]}} {{release}} {{command}}`
- Run `emacs` inside a `toolbox` container using the default image for a specific Fedora release: - Run `emacs` inside a Toolbx container using the default image for a specific Fedora release:
`toolbox run {{[-d|--distro]}} {{fedora}} {{[-r|--release]}} f{{version}} {{emacs}}` `toolbox run {{[-d|--distro]}} {{fedora}} {{[-r|--release]}} f{{version}} {{emacs}}`

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
--- ---
# lzcat # lzcat
> This command is an alias of `xz --format=lzma --decompress --stdout`. > This command is an alias of `xz --format lzma --decompress --stdout`.
- View documentation for the original command: - View documentation for the original command:

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
--- ---
# lzma # lzma
> This command is an alias of `xz --format=lzma`. > This command is an alias of `xz --format lzma`.
- View documentation for the original command: - View documentation for the original command:

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
--- ---
# piodebuggdb # piodebuggdb
> This command is an alias of `pio debug --interface=gdb`. > This command is an alias of `pio debug --interface gdb`.
- View documentation for the original command: - View documentation for the original command:

View File

@@ -11,7 +11,7 @@ source: https://github.com/tldr-pages/tldr.git
- List all containers (both running and stopped): - List all containers (both running and stopped):
`podman ps --all` `podman ps {{[-a|--all]}}`
- Create a container from an image, with a custom name: - Create a container from an image, with a custom name:
@@ -31,7 +31,7 @@ source: https://github.com/tldr-pages/tldr.git
- Open a shell inside an already running container: - Open a shell inside an already running container:
`podman exec --interactive --tty {{container_name}} {{sh}}` `podman exec {{[-it|--interactive --tty]}} {{container_name}} {{sh}}`
- Remove a stopped container: - Remove a stopped container:
@@ -39,4 +39,4 @@ source: https://github.com/tldr-pages/tldr.git
- Display the logs of one or more containers and follow log output: - Display the logs of one or more containers and follow log output:
`podman logs --follow {{container_name}} {{container_id}}` `podman logs {{[-f|--follow]}} {{container_name}} {{container_id}}`

View File

@@ -6,7 +6,6 @@ source: https://github.com/tldr-pages/tldr.git
# podman build # podman build
> Daemonless tool for building container images. > Daemonless tool for building container images.
> Podman provides a Docker-CLI comparable command-line. Simply put: `alias docker=podman`.
> More information: <https://docs.podman.io/en/latest/markdown/podman-build.1.html>. > More information: <https://docs.podman.io/en/latest/markdown/podman-build.1.html>.
- Create an image using a `Dockerfile` or `Containerfile` in the specified directory: - Create an image using a `Dockerfile` or `Containerfile` in the specified directory:
@@ -15,11 +14,11 @@ source: https://github.com/tldr-pages/tldr.git
- Create an image with a specified tag: - Create an image with a specified tag:
`podman build --tag {{image_name:version}} {{path/to/directory}}` `podman build {{[-t|--tag]}} {{image_name:version}} {{path/to/directory}}`
- Create an image from a non-standard file: - Create an image from a non-standard file:
`podman build --file {{Containerfile.different}} .` `podman build {{[-f|--file]}} {{Containerfile.different}} .`
- Create an image without using any previously cached images: - Create an image without using any previously cached images:
@@ -27,4 +26,4 @@ source: https://github.com/tldr-pages/tldr.git
- Create an image suppressing all output: - Create an image suppressing all output:
`podman build --quiet {{path/to/directory}}` `podman build {{[-q|--quiet]}} {{path/to/directory}}`

View File

@@ -5,22 +5,22 @@ source: https://github.com/tldr-pages/tldr.git
--- ---
# podman image # podman image
> Manage Docker images. > Manage OCI/Docker container images.
> See also: `podman build`, `podman import`, `podman pull`. > See also: `podman build`, `podman import`, `podman pull`.
> More information: <https://docs.podman.io/en/latest/markdown/podman-image.1.html>. > More information: <https://docs.podman.io/en/latest/markdown/podman-image.1.html>.
- List local Docker images: - List local container images:
`podman image ls` `podman image {{[ls|list]}}`
- Delete unused local Docker images: - Delete unused local container images:
`podman image prune` `podman image prune`
- Delete all unused images (not just those without a tag): - Delete all unused images (not just those without a tag):
`podman image prune --all` `podman image prune {{[-a|--all]}}`
- Show the history of a local Docker image: - Show the history of a local container image:
`podman image history {{image}}` `podman image history {{image}}`

View File

@@ -5,24 +5,24 @@ source: https://github.com/tldr-pages/tldr.git
--- ---
# podman images # podman images
> Manage Podman images. > Manage OCI/Docker container images.
> More information: <https://docs.podman.io/en/latest/markdown/podman-images.1.html>. > More information: <https://docs.podman.io/en/latest/markdown/podman-images.1.html>.
- List all Podman images: - List all container images:
`podman images` `podman images`
- List all Podman images including intermediates: - List all container images including intermediates:
`podman images --all` `podman images {{[-a|--all]}}`
- List the output in quiet mode (only numeric IDs): - List the output in quiet mode (only numeric IDs):
`podman images --quiet` `podman images {{[-q|--quiet]}}`
- List all Podman images not used by any container: - List all images not used by any container:
`podman images --filter dangling=true` `podman images {{[-f|--filter]}} dangling=true`
- List images that contain a substring in their name: - List images that contain a substring in their name:

View File

@@ -19,4 +19,4 @@ source: https://github.com/tldr-pages/tldr.git
- Log in to an insecure (HTTP) registry: - Log in to an insecure (HTTP) registry:
`podman login --tls-verify=false {{registry.example.org}}` `podman login --tls-verify false {{registry.example.org}}`

View File

@@ -11,7 +11,7 @@ source: https://github.com/tldr-pages/tldr.git
- List existing machines: - List existing machines:
`podman machine ls` `podman machine {{[ls|list]}}`
- Create a new default machine: - Create a new default machine:
@@ -23,7 +23,7 @@ source: https://github.com/tldr-pages/tldr.git
- Create a new machine with different resources: - Create a new machine with different resources:
`podman machine init --cpus={{4}} --memory={{4096}} --disk-size={{50}}` `podman machine init --cpus {{4}} --memory {{4096}} --disk-size {{50}}`
- Start or stop a machine: - Start or stop a machine:

View File

@@ -14,28 +14,28 @@ source: https://github.com/tldr-pages/tldr.git
- List all Podman containers (running and stopped): - List all Podman containers (running and stopped):
`podman ps --all` `podman ps {{[-a|--all]}}`
- Show the latest created container (includes all states): - Show the latest created container (includes all states):
`podman ps --latest` `podman ps {{[-l|--latest]}}`
- Filter containers that contain a substring in their name: - Filter containers that contain a substring in their name:
`podman ps --filter "name={{name}}"` `podman ps {{[-f|--filter]}} "name={{name}}"`
- Filter containers that share a given image as an ancestor: - Filter containers that share a given image as an ancestor:
`podman ps --filter "ancestor={{image}}:{{tag}}"` `podman ps {{[-f|--filter]}} "ancestor={{image}}:{{tag}}"`
- Filter containers by exit status code: - Filter containers by exit status code:
`podman ps --all --filter "exited={{code}}"` `podman ps {{[-a|--all]}} {{[-f|--filter]}} "exited={{code}}"`
- Filter containers by status (created, running, removing, paused, exited and dead): - Filter containers by status (created, running, removing, paused, exited and dead):
`podman ps --filter "status={{status}}"` `podman ps {{[-f|--filter]}} "status={{status}}"`
- Filter containers that mount a specific volume or have a volume mounted in a specific path: - Filter containers that mount a specific volume or have a volume mounted in a specific path:
`podman ps --filter "volume={{path/to/directory}}" --format "table {{.ID}} {{.Image}} {{.Names}} {{.Mounts}}"` `podman ps {{[-f|--filter]}} "volume={{path/to/directory}}" --format "table {{.ID}} {{.Image}} {{.Names}} {{.Mounts}}"`

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
--- ---
# podman rmi # podman rmi
> Remove Podman images. > Remove OCI/Docker images.
> More information: <https://docs.podman.io/en/latest/markdown/podman-rmi.1.html>. > More information: <https://docs.podman.io/en/latest/markdown/podman-rmi.1.html>.
- Remove one or more images given their names: - Remove one or more images given their names:
@@ -14,7 +14,7 @@ source: https://github.com/tldr-pages/tldr.git
- Force remove an image: - Force remove an image:
`podman rmi --force {{image}}` `podman rmi {{[-f|--force]}} {{image}}`
- Remove an image without deleting untagged parents: - Remove an image without deleting untagged parents:
@@ -22,4 +22,4 @@ source: https://github.com/tldr-pages/tldr.git
- Display help: - Display help:
`podman rmi` `podman rmi {{[-h|--help]}}`

View File

@@ -14,23 +14,23 @@ source: https://github.com/tldr-pages/tldr.git
- Run command in a new container in background and display its ID: - Run command in a new container in background and display its ID:
`podman run --detach {{image:tag}} {{command}}` `podman run {{[-d|--detach]}} {{image:tag}} {{command}}`
- Run command in a one-off container in interactive mode and pseudo-TTY: - Run command in a one-off container in interactive mode and pseudo-TTY:
`podman run --rm --interactive --tty {{image:tag}} {{command}}` `podman run --rm {{[-it|--interactive --tty]}} {{image:tag}} {{command}}`
- Run command in a new container with passed environment variables: - Run command in a new container with passed environment variables:
`podman run --env '{{variable}}={{value}}' --env {{variable}} {{image:tag}} {{command}}` `podman run {{[-e|--env]}} '{{variable}}={{value}}' {{[-e|--env]}} {{variable}} {{image:tag}} {{command}}`
- Run command in a new container with bind mounted volumes: - Run command in a new container with bind mounted volumes:
`podman run --volume /{{path/to/host_path}}:/{{path/to/container_path}} {{image:tag}} {{command}}` `podman run {{[-v|--volume]}} /{{path/to/host_path}}:/{{path/to/container_path}} {{image:tag}} {{command}}`
- Run command in a new container with published ports: - Run command in a new container with published ports:
`podman run --publish {{host_port}}:{{container_port}} {{image:tag}} {{command}}` `podman run {{[-p|--publish]}} {{host_port}}:{{container_port}} {{image:tag}} {{command}}`
- Run command in a new container overwriting the entrypoint of the image: - Run command in a new container overwriting the entrypoint of the image:

View File

@@ -16,7 +16,7 @@ source: https://github.com/tldr-pages/tldr.git
`realpath {{[-e|--canonicalize-existing]}} {{path/to/file_or_directory}}` `realpath {{[-e|--canonicalize-existing]}} {{path/to/file_or_directory}}`
- Resolve ".." components before symlinks: - Resolve `..` components before symlinks:
`realpath {{[-L|--logical]}} {{path/to/file_or_directory}}` `realpath {{[-L|--logical]}} {{path/to/file_or_directory}}`

View File

@@ -14,7 +14,7 @@ source: https://github.com/tldr-pages/tldr.git
- Run a benchmark with a custom header: - Run a benchmark with a custom header:
`wrk {{[-t|--threads]}} {{2}} {{[-c|--connections]}} {{5}} {{[-d|--duration]}} {{5s}} {{[-H|--header]}} "{{Host: example.com}}""{{http://example.com/index.html}}"` `wrk {{[-t|--threads]}} {{2}} {{[-c|--connections]}} {{5}} {{[-d|--duration]}} {{5s}} {{[-H|--header]}} "{{Host: example.com}}" "{{http://example.com/index.html}}"`
- Run a benchmark with a request timeout of `2` seconds: - Run a benchmark with a request timeout of `2` seconds:

View File

@@ -9,14 +9,14 @@ source: https://github.com/tldr-pages/tldr.git
> This command is commonly used to answer yes to every prompt by install commands (such as `apt-get`). > This command is commonly used to answer yes to every prompt by install commands (such as `apt-get`).
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/yes-invocation.html>. > More information: <https://www.gnu.org/software/coreutils/manual/html_node/yes-invocation.html>.
- Repeatedly output "message": - Repeatedly output `y`:
`yes {{message}}`
- Repeatedly output "y":
`yes` `yes`
- Repeatedly output a specified value:
`yes {{value}}`
- Accept everything prompted by the `apt-get` command: - Accept everything prompted by the `apt-get` command:
`yes | sudo apt-get install {{program}}` `yes | sudo apt-get install {{program}}`

View File

@@ -24,6 +24,10 @@ source: https://github.com/tldr-pages/tldr.git
`zstd -{{level}} {{path/to/file}}` `zstd -{{level}} {{path/to/file}}`
- Compress a file using an ultra-fast compression level, where 1=default:
`zstd --fast={{level}} {{path/to/file}}`
- Unlock higher compression levels (up to 22) using more memory (both for compression and decompression): - Unlock higher compression levels (up to 22) using more memory (both for compression and decompression):
`zstd --ultra -{{level}} {{path/to/file}}` `zstd --ultra -{{level}} {{path/to/file}}`