Update cheatsheets

This commit is contained in:
ivuorinen
2025-12-02 00:21:15 +00:00
parent fde4de0db5
commit 922b1aa234
102 changed files with 288 additions and 216 deletions

View File

@@ -12,7 +12,7 @@ source: https://github.com/tldr-pages/tldr.git
`bash-it update {{stable|dev}}` `bash-it update {{stable|dev}}`
- Reload Bash profile (set `BASH_IT_AUTOMATIC_RELOAD_AFTER_CONFIG_CHANGE` to non-empty value for an automatic reload): - Reload Bash profile (set `$BASH_IT_AUTOMATIC_RELOAD_AFTER_CONFIG_CHANGE` to non-empty value for an automatic reload):
`bash-it reload` `bash-it reload`

View File

@@ -16,7 +16,7 @@ source: https://github.com/tldr-pages/tldr.git
`clear -x` `clear -x`
- Indicate the type of terminal to clean (defaults to the value of the environment variable `TERM`): - Indicate the type of terminal to clean (defaults to the value of the environment variable `$TERM`):
`clear -T {{type_of_terminal}}` `clear -T {{type_of_terminal}}`

View File

@@ -14,7 +14,7 @@ source: https://github.com/tldr-pages/tldr.git
`compgen -c` `compgen -c`
- List all commands that you could run that start with a specified string and save results to `COMPREPLY`: - List all commands that you could run that start with a specified string and save results to `$COMPREPLY`:
`compgen -V COMPREPLY -c {{str}}` `compgen -V COMPREPLY -c {{str}}`

View File

@@ -10,7 +10,7 @@ source: https://github.com/tldr-pages/tldr.git
> See also: `compgen`, `compopt`. > See also: `compgen`, `compopt`.
> More information: <https://www.gnu.org/software/bash/manual/bash.html#index-complete>. > More information: <https://www.gnu.org/software/bash/manual/bash.html#index-complete>.
- Set arguments of a command to autocomplete through a function (completion response is sent in `COMPREPLY` variable): - Set arguments of a command to autocomplete through a function (completion response is sent in `$COMPREPLY` variable):
`complete -F {{function}} {{command}}` `complete -F {{function}} {{command}}`

View File

@@ -25,7 +25,7 @@ source: https://github.com/tldr-pages/tldr.git
`conda init --no-user` `conda init --no-user`
- Add `condabin/` directory to PATH: - Add `condabin/` directory to `$PATH`:
`conda init --condabin` `conda init --condabin`

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# cosign # cosign
> Container Signing, Verification and Storage in an OCI registry. > Container Signing, Verification and Storage in an OCI registry.
> More information: <https://github.com/sigstore/cosign>. > More information: <https://github.com/sigstore/cosign/blob/main/doc/cosign.md>.
- Generate a key-pair: - Generate a key-pair:
@@ -14,11 +14,11 @@ source: https://github.com/tldr-pages/tldr.git
- Sign a container and store the signature in the registry: - Sign a container and store the signature in the registry:
`cosign sign -key {{cosign.key}} {{image}}` `cosign sign --key {{cosign.key}} {{image}}`
- Sign a container image with a key pair stored in a Kubernetes secret: - Sign a container image with a key pair stored in a Kubernetes secret:
`cosign sign -key k8s://{{namespace}}/{{key}} {{image}}` `cosign sign --key k8s://{{namespace}}/{{key}} {{image}}`
- Sign a blob with a local key pair file: - Sign a blob with a local key pair file:
@@ -26,7 +26,7 @@ source: https://github.com/tldr-pages/tldr.git
- Verify a container against a public key: - Verify a container against a public key:
`cosign verify -key {{cosign.pub}} {{image}}` `cosign verify --key {{cosign.pub}} {{image}}`
- Verify images with a public key in a Dockerfile: - Verify images with a public key in a Dockerfile:
@@ -34,7 +34,7 @@ source: https://github.com/tldr-pages/tldr.git
- Verify an image with a public key stored in a Kubernetes secret: - Verify an image with a public key stored in a Kubernetes secret:
`cosign verify -key k8s://{{namespace}}/{{key}} {{image}}` `cosign verify --key k8s://{{namespace}}/{{key}} {{image}}`
- Copy a container image and its signatures: - Copy a container image and its signatures:

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
--- ---
# crane registry # crane registry
> This command serves a registry implementation on an automatically chosen port (:0), $PORT or --address. > This command serves a registry implementation on an automatically chosen port (:0), `$PORT` or --address.
> The command blocks while the server accepts pushes and pulls and contents are can be stored in memory, and disk. > The command blocks while the server accepts pushes and pulls and contents are can be stored in memory, and disk.
> More information: <https://github.com/google/go-containerregistry/blob/main/cmd/crane/doc/crane_registry_serve.md>. > More information: <https://github.com/google/go-containerregistry/blob/main/cmd/crane/doc/crane_registry_serve.md>.

View File

@@ -24,6 +24,6 @@ source: https://github.com/tldr-pages/tldr.git
`cups-config --help` `cups-config --help`
- Display CUPS version: - Display version:
`cups-config --version` `cups-config --version`

View File

@@ -8,7 +8,7 @@ source: https://github.com/tldr-pages/tldr.git
> Concurrent Versions System, a revision control system. > Concurrent Versions System, a revision control system.
> More information: <https://manned.org/cvs>. > More information: <https://manned.org/cvs>.
- Create a new repository (requires the `CVSROOT` environment variable to be set externally): - Create a new repository (requires the `$CVSROOT` environment variable to be set externally):
`cvs -d {{path/to/repository}} init` `cvs -d {{path/to/repository}} init`

View File

@@ -28,10 +28,10 @@ source: https://github.com/tldr-pages/tldr.git
`dillo {{[-f|--fullwindow]}}` `dillo {{[-f|--fullwindow]}}`
- Display version:
`dillo {{[-v|--version]}}`
- Display help: - Display help:
`dillo {{[-h|--help]}}` `dillo {{[-h|--help]}}`
- Display version:
`dillo {{[-v|--version]}}`

View File

@@ -5,10 +5,10 @@ source: https://github.com/tldr-pages/tldr.git
--- ---
# dircolors # dircolors
> Output commands to set the LS_COLOR environment variable and style `ls`, `dir`, etc. > Output commands to set the `$LS_COLOR` environment variable and style `ls`, `dir`, etc.
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/dircolors-invocation.html>. > More information: <https://www.gnu.org/software/coreutils/manual/html_node/dircolors-invocation.html>.
- Output commands to set LS_COLOR using default colors: - Output commands to set `$LS_COLOR` using default colors:
`dircolors` `dircolors`
@@ -16,7 +16,7 @@ source: https://github.com/tldr-pages/tldr.git
`dircolors --print-ls-colors` `dircolors --print-ls-colors`
- Output commands to set LS_COLOR using colors from a file: - Output commands to set `$LS_COLOR` using colors from a file:
`dircolors {{path/to/file}}` `dircolors {{path/to/file}}`

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# direnv # direnv
> Shell extension to load and unload environment variables depending on the current directory. > Shell extension to load and unload environment variables depending on the current directory.
> More information: <https://github.com/direnv/direnv>. > More information: <https://github.com/direnv/direnv/blob/master/man/direnv.1.md>.
- Grant direnv permission to load the `.envrc` present in the current directory: - Grant direnv permission to load the `.envrc` present in the current directory:

View File

@@ -28,6 +28,6 @@ source: https://github.com/tldr-pages/tldr.git
`dnsmasq --dhcp-range={{192.168.0.50,192.168.0.150,12h}}` `dnsmasq --dhcp-range={{192.168.0.50,192.168.0.150,12h}}`
- Print dnsmasq version: - Display version:
`dnsmasq --version` `dnsmasq --version`

View File

@@ -12,7 +12,7 @@ source: https://github.com/tldr-pages/tldr.git
`docker context create {{my_context}} --docker "host={{tcp://remote-host:2375}}"` `docker context create {{my_context}} --docker "host={{tcp://remote-host:2375}}"`
- Create a context based on the `DOCKER_HOST` environment variable: - Create a context based on the `$DOCKER_HOST` environment variable:
`docker context create {{my_context}}` `docker context create {{my_context}}`

View File

@@ -5,25 +5,8 @@ source: https://github.com/tldr-pages/tldr.git
--- ---
# docker-slim # docker-slim
> Analyze and optimize Docker images. > This command is an alias of `slim`.
> More information: <https://github.com/slimtoolkit/slim>.
- Start DockerSlim on interactive mode: - View documentation for the original command:
`docker-slim` `tldr slim`
- Analyze Docker layers from a specific image:
`docker-slim xray --target {{image:tag}}`
- Lint a Dockerfile:
`docker-slim lint --target {{path/to/Dockerfile}}`
- Analyze and generate an optimized Docker image:
`docker-slim build {{image:tag}}`
- Display help for a subcommand:
`docker-slim {{subcommand}} --help`

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# eget # eget
> Easily install prebuilt binaries from GitHub. > Easily install prebuilt binaries from GitHub.
> More information: <https://github.com/zyedidia/eget>. > More information: <https://github.com/zyedidia/eget#usage>.
- Download a prebuilt binary for the current system from a repository on GitHub: - Download a prebuilt binary for the current system from a repository on GitHub:
@@ -18,11 +18,11 @@ source: https://github.com/tldr-pages/tldr.git
- Specify the location to place the downloaded files: - Specify the location to place the downloaded files:
`eget {{zyedidia/micro}} --to={{path/to/directory}}` `eget {{zyedidia/micro}} --to {{path/to/directory}}`
- Specify a Git tag instead of using the latest version: - Specify a Git tag instead of using the latest version:
`eget {{zyedidia/micro}} --tag={{v2.0.10}}` `eget {{zyedidia/micro}} {{[-t|--tag]}} {{v2.0.10}}`
- Install the latest pre-release instead of the latest stable version: - Install the latest pre-release instead of the latest stable version:
@@ -30,7 +30,7 @@ source: https://github.com/tldr-pages/tldr.git
- Only download the asset, skipping extraction: - Only download the asset, skipping extraction:
`eget {{zyedidia/micro}} --download-only` `eget {{zyedidia/micro}} {{[-d|--download-only]}}`
- Only download if there is a newer release then the currently downloaded version: - Only download if there is a newer release then the currently downloaded version:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# eol # eol
> Show end-of-life dates (EoLs) for a number of products. > Show end-of-life dates (EoLs) for a number of products.
> More information: <https://github.com/hugovk/norwegianblue>. > More information: <https://github.com/hugovk/norwegianblue#example-command-line-use>.
- List all available products: - List all available products:
@@ -18,16 +18,16 @@ source: https://github.com/tldr-pages/tldr.git
- Open the product webpage: - Open the product webpage:
`eol {{product}} --web` `eol {{product}} {{[-w|--web]}}`
- Get EoLs of a one or more products in a specific format: - Get EoLs of a one or more products in a specific format:
`eol {{product1 product2 ...}} --format {{html|json|md|markdown|pretty|rst|csv|tsv|yaml}}` `eol {{product1 product2 ...}} --{{html|json|md|markdown|pretty|rst|csv|tsv|yaml}}`
- Get EoLs of one or more products as a single markdown file: - Get EoLs of one or more products as a single markdown file:
`eol {{product1 product2 ...}} --format {{markdown}} > {{eol_report.md}}` `eol {{product1 product2 ...}} --{{markdown}} > {{eol_report.md}}`
- Display help: - Display help:
`eol --help` `eol {{[-h|--help]}}`

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# eva # eva
> Simple calculator REPL, similar to `bc`, with syntax highlighting and persistent history. > Simple calculator REPL, similar to `bc`, with syntax highlighting and persistent history.
> More information: <https://github.com/NerdyPepper/eva>. > More information: <https://github.com/oppiliappan/eva#usage>.
- Run the calculator in interactive mode: - Run the calculator in interactive mode:

View File

@@ -12,6 +12,6 @@ source: https://github.com/tldr-pages/tldr.git
`export {{VARIABLE}}={{value}}` `export {{VARIABLE}}={{value}}`
- Append a pathname to the environment variable `PATH`: - Append a pathname to the environment variable `$PATH`:
`export PATH=$PATH:{{path/to/append}}` `export PATH=$PATH:{{path/to/append}}`

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# fdroidcl # fdroidcl
> Manage F-Droid apps of devices connected via ADB. > Manage F-Droid apps of devices connected via ADB.
> More information: <https://github.com/mvdan/fdroidcl>. > More information: <https://github.com/Hoverth/fdroidcl#commands>.
- Fetch the F-Droid index: - Fetch the F-Droid index:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# fkill # fkill
> Fabulously kill processes. Cross-platform. > Fabulously kill processes. Cross-platform.
> More information: <https://github.com/sindresorhus/fkill>. > More information: <https://manned.org/fkill>.
- Run without arguments to use the interactive interface: - Run without arguments to use the interactive interface:

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
--- ---
# flask # flask
> A general utility script for Flask applications. Loads the application defined in the `FLASK_APP` environment variable. > A general utility script for Flask applications. Loads the application defined in the `$FLASK_APP` environment variable.
> More information: <https://flask.palletsprojects.com/en/stable/cli/>. > More information: <https://flask.palletsprojects.com/en/stable/cli/>.
- Run a development server: - Run a development server:

View File

@@ -36,6 +36,6 @@ source: https://github.com/tldr-pages/tldr.git
`flyctl status --app {{app_name}}` `flyctl status --app {{app_name}}`
- Display version information: - Display version:
`flyctl version` `flyctl version`

View File

@@ -7,23 +7,23 @@ source: https://github.com/tldr-pages/tldr.git
> Google Cloud Platform troubleshooting and diagnostics tool. > Google Cloud Platform troubleshooting and diagnostics tool.
> Run in a Docker container or in GCP Cloudshell. > Run in a Docker container or in GCP Cloudshell.
> More information: <https://github.com/GoogleCloudPlatform/gcpdiag>. > More information: <https://github.com/GoogleCloudPlatform/gcpdiag#usage>.
- Run `gcpdiag` on your project, returning all rules: - Run `gcpdiag` on your project, returning all rules:
`gcpdiag lint --project={{gcp_project_id}}` `gcpdiag lint --project {{gcp_project_id}}`
- Hide rules that are ok: - Hide rules that are ok:
`gcpdiag lint --project={{gcp_project_id}} --hide-ok` `gcpdiag lint --project {{gcp_project_id}} --hide-ok`
- Authenticate using a service account private key file: - Authenticate using a service account private key file:
`gcpdiag lint --project={{gcp_project_id}} --auth-key {{path/to/private_key}}` `gcpdiag lint --project {{gcp_project_id}} --auth-key {{path/to/private_key}}`
- Search logs and metrics from a number of days back (default: 3 days): - Search logs and metrics from a number of days back (default: 3 days):
`gcpdiag lint --project={{gcp_project_id}} --within-days {{number}}` `gcpdiag lint --project {{gcp_project_id}} --within-days {{number}}`
- Display help: - Display help:

View File

@@ -21,7 +21,7 @@ source: https://github.com/tldr-pages/tldr.git
`gdm --no-console` `gdm --no-console`
- Prevent sanitizing environment variables that start with `LD_`: - Prevent sanitizing environment variables that start with `$LD_`:
`gdm --preserve-ld-vars` `gdm --preserve-ld-vars`

View File

@@ -18,6 +18,6 @@ source: https://github.com/tldr-pages/tldr.git
`gettext {{[-h|--help]}}` `gettext {{[-h|--help]}}`
- Display gettext version: - Display version:
`gettext {{[-V|--version]}}` `gettext {{[-V|--version]}}`

View File

@@ -18,7 +18,7 @@ source: https://github.com/tldr-pages/tldr.git
- Create a private gist with a description: - Create a private gist with a description:
`gist --private --description "{{A meaningful description}}" {{file.txt}}` `gist {{[-p|--private]}} {{[-d|--description]}} "{{A meaningful description}}" {{file.txt}}`
- Read contents from `stdin` and create a gist from it: - Read contents from `stdin` and create a gist from it:
@@ -26,12 +26,12 @@ source: https://github.com/tldr-pages/tldr.git
- List your public and private gists: - List your public and private gists:
`gist --list` `gist {{[-l|--list]}}`
- List all public gists for any user: - List all public gists for any user:
`gist --list {{username}}` `gist {{[-l|--list]}} {{username}}`
- Update a gist using the ID from URL: - Update a gist using the ID from URL:
`gist --update {{GIST_ID}} {{file.txt}}` `gist {{[-u|--update]}} {{GIST_ID}} {{file.txt}}`

View File

@@ -24,6 +24,6 @@ source: https://github.com/tldr-pages/tldr.git
`github-label-sync --access-token {{token}} --allow-added-labels {{repository_name}}` `github-label-sync --access-token {{token}} --allow-added-labels {{repository_name}}`
- Synchronize using the `GITHUB_ACCESS_TOKEN` environment variable: - Synchronize using the `$GITHUB_ACCESS_TOKEN` environment variable:
`github-label-sync {{repository_name}}` `github-label-sync {{repository_name}}`

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# gitleaks # gitleaks
> Detect secrets and API keys leaked in Git repositories. > Detect secrets and API keys leaked in Git repositories.
> More information: <https://github.com/gitleaks/gitleaks>. > More information: <https://github.com/gitleaks/gitleaks#usage>.
- Scan a remote repository: - Scan a remote repository:
@@ -14,19 +14,19 @@ source: https://github.com/tldr-pages/tldr.git
- Scan a local directory: - Scan a local directory:
`gitleaks detect --source {{path/to/repository}}` `gitleaks detect {{[-s|--source]}} {{path/to/repository}}`
- Output scan results to a JSON file: - Output scan results to a JSON file:
`gitleaks detect --source {{path/to/repository}} --report {{path/to/report.json}}` `gitleaks detect {{[-s|--source]}} {{path/to/repository}} --report {{path/to/report.json}}`
- Use a custom rules file: - Use a custom rules file:
`gitleaks detect --source {{path/to/repository}} --config-path {{path/to/config.toml}}` `gitleaks detect {{[-s|--source]}} {{path/to/repository}} --config-path {{path/to/config.toml}}`
- Start scanning from a specific commit: - Start scanning from a specific commit:
`gitleaks detect --source {{path/to/repository}} --log-opts {{--since=commit_id}}` `gitleaks detect {{[-s|--source]}} {{path/to/repository}} --log-opts {{--since=commit_id}}`
- Scan uncommitted changes before a commit: - Scan uncommitted changes before a commit:

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> A terminal-based interface for GitHub, accessed via the `gh` command. > A terminal-based interface for GitHub, accessed via the `gh` command.
> It also provides menu-style autocomplete suggestions for `git` commands. > It also provides menu-style autocomplete suggestions for `git` commands.
> More information: <https://github.com/donnemartin/gitsome>. > More information: <https://github.com/donnemartin/gitsome#index>.
- Enter the gitsome shell (optional), to enable autocompletion and interactive help for Git (and gh) commands: - Enter the gitsome shell (optional), to enable autocompletion and interactive help for Git (and gh) commands:
@@ -31,4 +31,4 @@ source: https://github.com/tldr-pages/tldr.git
- View the recent activity feed for a given GitHub user, using the default pager (e.g. `less`): - View the recent activity feed for a given GitHub user, using the default pager (e.g. `less`):
`gh feed {{torvalds}} -p` `gh feed {{torvalds}} {{[-p|--pager]}}`

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# gnomon # gnomon
> Utility to annotate console logging statements with timestamps and find slow processes. > Utility to annotate console logging statements with timestamps and find slow processes.
> More information: <https://github.com/paypal/gnomon>. > More information: <https://github.com/paypal/gnomon#options>.
- Use UNIX (or DOS) pipes to pipe `stdout` of any command through gnomon: - Use UNIX (or DOS) pipes to pipe `stdout` of any command through gnomon:
@@ -14,16 +14,16 @@ source: https://github.com/tldr-pages/tldr.git
- Show number of seconds since the start of the process: - Show number of seconds since the start of the process:
`{{npm test}} | gnomon --type=elapsed-total` `{{npm test}} | gnomon {{[-t|--type]}} elapsed-total`
- Show an absolute timestamp in UTC: - Show an absolute timestamp in UTC:
`{{npm test}} | gnomon --type=absolute` `{{npm test}} | gnomon {{[-t|--type]}} absolute`
- Use a high threshold of 0.5 seconds, exceeding which the timestamp will be colored bright red: - Use a high threshold of 0.5 seconds, exceeding which the timestamp will be colored bright red:
`{{npm test}} | gnomon --high 0.5` `{{npm test}} | gnomon {{[-h|--high]}} 0.5`
- Use a medium threshold of 0.2 seconds, exceeding which the timestamp will be colored bright yellow: - Use a medium threshold of 0.2 seconds, exceeding which the timestamp will be colored bright yellow:
`{{npm test}} | gnomon --medium {{0.2}}` `{{npm test}} | gnomon {{[-m|--medium]}} 0.2`

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# guetzli # guetzli
> JPEG image compression utility. > JPEG image compression utility.
> More information: <https://github.com/google/guetzli>. > More information: <https://manned.org/guetzli>.
- Compress a JPEG image: - Compress a JPEG image:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# hashid # hashid
> Python3 program that identifies data and password hashes. > Python3 program that identifies data and password hashes.
> More information: <https://github.com/psypanda/hashID>. > More information: <https://github.com/psypanda/hashID#usage>.
- Identify hashes from `stdin` (through typing, copying and pasting, or piping the hash into the program): - Identify hashes from `stdin` (through typing, copying and pasting, or piping the hash into the program):
@@ -22,12 +22,12 @@ source: https://github.com/tldr-pages/tldr.git
- Show all possible hash types (including salted hashes): - Show all possible hash types (including salted hashes):
`hashid --extended {{hash}}` `hashid {{[-e|--extended]}} {{hash}}`
- Show `hashcat`'s mode number and `john`'s format string of the hash types: - Show `hashcat`'s mode number and `john`'s format string of the hash types:
`hashid --mode --john {{hash}}` `hashid {{[-m|--mode]}} {{[-j|--john]}} {{hash}}`
- Save output to a file instead of printing to `stdout`: - Save output to a file instead of printing to `stdout`:
`hashid --outfile {{path/to/output.txt}} {{hash}}` `hashid {{[-o|--outfile]}} {{path/to/output.txt}} {{hash}}`

View File

@@ -6,16 +6,16 @@ source: https://github.com/tldr-pages/tldr.git
# hcloud # hcloud
> Show how to use the CLI for Hetzner Cloud. > Show how to use the CLI for Hetzner Cloud.
> More information: <https://github.com/hetznercloud/cli>. > More information: <https://github.com/hetznercloud/cli/blob/main/docs/reference/manual/hcloud.md>.
- Show available commands and flags: - Show available commands and flags:
`hcloud` `hcloud`
- Display help:
`hcloud -h`
- Show available commands and flags for `hcloud` contexts: - Show available commands and flags for `hcloud` contexts:
`hcloud context` `hcloud context`
- Display help:
`hcloud -h`

View File

@@ -7,32 +7,32 @@ source: https://github.com/tldr-pages/tldr.git
> Advanced ping utility which supports protocols such TCP, UDP, and raw IP. > Advanced ping utility which supports protocols such TCP, UDP, and raw IP.
> Best run with elevated privileges. > Best run with elevated privileges.
> More information: <https://github.com/antirez/hping>. > More information: <https://manned.org/hping3>.
- Ping a destination with 4 ICMP ping requests: - Ping a destination with 4 ICMP ping requests:
`hping3 --icmp --count {{4}} {{ip_or_hostname}}` `hping3 {{[-1|--icmp]}} {{[-c|--count]}} 4 {{ip_or_hostname}}`
- Ping an IP address over UDP on port 80: - Ping an IP address over UDP on port 80:
`hping3 --udp --destport {{80}} --syn {{ip_or_hostname}}` `hping3 {{[-2|--udp]}} {{[-p|--destport]}} 80 {{[-S|--syn]}} {{ip_or_hostname}}`
- Scan TCP port 80, scanning from the specific local source port 5090: - Scan TCP port 80, scanning from the specific local source port 5090:
`hping3 --verbose --syn --destport {{80}} --baseport {{5090}} {{ip_or_hostname}}` `hping3 {{[-V|--verbose]}} {{[-S|--syn]}} {{[-p|--destport]}} 80 {{[-s|--baseport]}} 5090 {{ip_or_hostname}}`
- Traceroute using a TCP scan to a specific destination port: - Traceroute using a TCP scan to a specific destination port:
`hping3 --traceroute --verbose --syn --destport {{80}} {{ip_or_hostname}}` `hping3 {{[-T|--traceroute]}} {{[-V|--verbose]}} {{[-S|--syn]}} {{[-p|--destport]}} {{80}} {{ip_or_hostname}}`
- Scan a set of TCP ports on a specific IP address: - Scan a set of TCP ports on a specific IP address:
`hping3 --scan {{80,3000,9000}} --syn {{ip_or_hostname}}` `hping3 {{[-8|--scan]}} {{80,3000,9000}} {{[-S|--syn]}} {{ip_or_hostname}}`
- Perform a TCP ACK scan to check if a given host is alive: - Perform a TCP ACK scan to check if a given host is alive:
`hping3 --count {{2}} --verbose --destport {{80}} --ack {{ip_or_hostname}}` `hping3 {{[-c|--count]}} {{2}} {{[-V|--verbose]}} {{[-p|--destport]}} {{80}} {{[-A|--ack]}} {{ip_or_hostname}}`
- Perform a charge test on port 80: - Perform a charge test on port 80:
`hping3 --flood --destport {{80}} --syn {{ip_or_hostname}}` `hping3 --flood {{[-p|--destport]}} 80 {{[-S|--syn]}} {{ip_or_hostname}}`

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# htmlq # htmlq
> Use CSS selectors to extract content from HTML files. > Use CSS selectors to extract content from HTML files.
> More information: <https://github.com/mgdm/htmlq>. > More information: <https://github.com/mgdm/htmlq#usage>.
- Return all elements of class `card`: - Return all elements of class `card`:
@@ -14,16 +14,16 @@ source: https://github.com/tldr-pages/tldr.git
- Get the text content of the first paragraph: - Get the text content of the first paragraph:
`cat {{path/to/file.html}} | htmlq --text 'p:first-of-type'` `cat {{path/to/file.html}} | htmlq {{[-t|--text]}} 'p:first-of-type'`
- Find all the links in a page: - Find all the links in a page:
`cat {{path/to/file.html}} | htmlq --attribute href 'a'` `cat {{path/to/file.html}} | htmlq {{[-a|--attribute]}} href 'a'`
- Remove all images and SVGs from a page: - Remove all images and SVGs from a page:
`cat {{path/to/file.html}} | htmlq --remove-nodes 'img' --remove-nodes 'svg'` `cat {{path/to/file.html}} | htmlq {{[-r|--remove-nodes]}} 'img' {{[-r|--remove-nodes]}} 'svg'`
- Pretty print and write the output to a file: - Pretty print and write the output to a file:
`htmlq --pretty --filename {{path/to/input.html}} --output {{path/to/output.html}}` `htmlq {{[-p|--pretty]}} {{[-f|--filename]}} {{path/to/input.html}} {{[-o|--output]}} {{path/to/output.html}}`

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# hunspell # hunspell
> Check spelling. > Check spelling.
> More information: <https://github.com/hunspell/hunspell>. > More information: <https://manned.org/hunspell>.
- Check the spelling of a file: - Check the spelling of a file:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# inkmake # inkmake
> GNU Makefile-style SVG exporting using Inkscape's backend. > GNU Makefile-style SVG exporting using Inkscape's backend.
> More information: <https://github.com/wader/inkmake>. > More information: <https://github.com/wader/inkmake#usage>.
- Export an SVG file executing the specified Inkfile: - Export an SVG file executing the specified Inkfile:
@@ -14,16 +14,16 @@ source: https://github.com/tldr-pages/tldr.git
- Execute an Inkfile and show detailed information: - Execute an Inkfile and show detailed information:
`inkmake --verbose {{path/to/Inkfile}}` `inkmake {{[-v|--verbose]}} {{path/to/Inkfile}}`
- Execute an Inkfile, specifying SVG input file(s) and an output file: - Execute an Inkfile, specifying SVG input file(s) and an output file:
`inkmake --svg {{path/to/file.svg}} --out {{path/to/output_image}} {{path/to/Inkfile}}` `inkmake {{[-s|--svg]}} {{path/to/file.svg}} {{[-o|--out]}} {{path/to/output_image}} {{path/to/Inkfile}}`
- Use a custom Inkscape binary as the backend: - Use a custom Inkscape binary as the backend:
`inkmake --inkscape {{/Applications/Inkscape.app/Contents/Resources/bin/inkscape}} {{path/to/Inkfile}}` `inkmake {{[-i|--inkscape]}} {{/Applications/Inkscape.app/Contents/Resources/bin/inkscape}} {{path/to/Inkfile}}`
- Display help: - Display help:
`inkmake --help` `inkmake {{[-h|--help]}}`

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# iverilog # iverilog
> Preprocesses and compiles Verilog HDL (IEEE-1364) code into executable programs for simulation. > Preprocesses and compiles Verilog HDL (IEEE-1364) code into executable programs for simulation.
> More information: <https://github.com/steveicarus/iverilog>. > More information: <https://manned.org/iverilog>.
- Compile a source file into an executable: - Compile a source file into an executable:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# kcat # kcat
> Apache Kafka producer and consumer tool. > Apache Kafka producer and consumer tool.
> More information: <https://github.com/edenhill/kcat>. > More information: <https://manned.org/kcat>.
- Consume messages starting with the newest offset: - Consume messages starting with the newest offset:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# krunvm # krunvm
> Create MicroVMs from OCI images. > Create MicroVMs from OCI images.
> More information: <https://github.com/containers/krunvm>. > More information: <https://github.com/containers/krunvm/blob/main/docs/krunvm.1.txt>.
- Create MicroVM based on Fedora: - Create MicroVM based on Fedora:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# lambo new # lambo new
> A super-powered `laravel new` for Laravel and Valet. > A super-powered `laravel new` for Laravel and Valet.
> More information: <https://github.com/tighten/lambo>. > More information: <https://github.com/tighten/lambo#lambo-commands>.
- Create a new Laravel application: - Create a new Laravel application:
@@ -14,7 +14,7 @@ source: https://github.com/tldr-pages/tldr.git
- Install the application in a specific path: - Install the application in a specific path:
`lambo new --path={{path/to/directory}} {{app_name}}` `lambo new {{[-p|--path]}} {{path/to/directory}} {{app_name}}`
- Include authentication scaffolding: - Include authentication scaffolding:
@@ -30,7 +30,7 @@ source: https://github.com/tldr-pages/tldr.git
- Create a Valet site after the project has been created: - Create a Valet site after the project has been created:
`lambo new --link {{app_name}}` `lambo new {{[-l|--link]}} {{app_name}}`
- Create a new MySQL database with the same name as the project: - Create a new MySQL database with the same name as the project:
@@ -38,4 +38,4 @@ source: https://github.com/tldr-pages/tldr.git
- Open a specific editor after the project has been created: - Open a specific editor after the project has been created:
`lambo new --editor="{{editor}}" {{app_name}}` `lambo new {{[-e|--editor]}} "{{editor}}" {{app_name}}`

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# lazygit # lazygit
> A simple terminal UI for Git commands, providing an intuitive interface for managing repositories. > A simple terminal UI for Git commands, providing an intuitive interface for managing repositories.
> More information: <https://github.com/jesseduffield/lazygit>. > More information: <https://manned.org/lazygit>.
- Open Lazygit in the current repository: - Open Lazygit in the current repository:
@@ -14,7 +14,7 @@ source: https://github.com/tldr-pages/tldr.git
- Open Lazygit for a specific Git repository: - Open Lazygit for a specific Git repository:
`lazygit --path {{path/to/repository}}` `lazygit {{[-p|--path]}} {{path/to/repository}}`
- Start Lazygit with focus on a specific panel: - Start Lazygit with focus on a specific panel:
@@ -22,16 +22,16 @@ source: https://github.com/tldr-pages/tldr.git
- Print the default Lazygit configuration: - Print the default Lazygit configuration:
`lazygit --config` `lazygit {{[-c|--config]}}`
- Tail the Lazygit logs (useful with debug mode in another terminal): - Tail the Lazygit logs (useful with debug mode in another terminal):
`lazygit --logs` `lazygit {{[-l|--logs]}}`
- Run Lazygit in debug mode: - Run Lazygit in debug mode:
`lazygit --debug` `lazygit {{[-d|--debug]}}`
- Print the configuration directory: - Print the configuration directory:
`lazygit --print-config-dir` `lazygit {{[-cd|--print-config-dir]}}`

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# light-arionum-cli # light-arionum-cli
> The PHP light wallet for the Arionum cryptocurrency. > The PHP light wallet for the Arionum cryptocurrency.
> More information: <https://github.com/arionum/lightWalletCLI>. > More information: <https://github.com/arionum/lightWalletCLI#usage>.
- Generate a new public/private key pair: - Generate a new public/private key pair:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# lighthouse # lighthouse
> Analyzes web applications and web pages, collecting modern performance metrics and insights on developer best practices. > Analyzes web applications and web pages, collecting modern performance metrics and insights on developer best practices.
> More information: <https://github.com/GoogleChrome/lighthouse>. > More information: <https://github.com/GoogleChrome/lighthouse#cli-options>.
- Generate an HTML report for a specific website and save it to a file in the current directory: - Generate an HTML report for a specific website and save it to a file in the current directory:

View File

@@ -18,7 +18,7 @@ source: https://github.com/tldr-pages/tldr.git
`agetty {{[-t|--timeout]}} {{timeout_in_seconds}} -` `agetty {{[-t|--timeout]}} {{timeout_in_seconds}} -`
- Assume the `tty` is 8-bit, overriding the `TERM` environment variable set by `init`: - Assume the `tty` is 8-bit, overriding the `$TERM` environment variable set by `init`:
`agetty {{[-8|--8bits]}} - {{term_var}}` `agetty {{[-8|--8bits]}} - {{term_var}}`

View File

@@ -5,17 +5,17 @@ source: https://github.com/tldr-pages/tldr.git
--- ---
# eselect locale # eselect locale
> An `eselect` module for managing the `LANG` environment variable, which sets the system language. > An `eselect` module for managing the `$LANG` environment variable, which sets the system language.
> More information: <https://wiki.gentoo.org/wiki/Eselect#Locale>. > More information: <https://wiki.gentoo.org/wiki/Eselect#Locale>.
- List available locales: - List available locales:
`eselect locale list` `eselect locale list`
- Set the `LANG` environment variable in `/etc/profile.env` by name or index from the `list` command: - Set the `$LANG` environment variable in `/etc/profile.env` by name or index from the `list` command:
`eselect locale set {{name|index}}` `eselect locale set {{name|index}}`
- Display the value of `LANG` in `/etc/profile.env`: - Display the value of `$LANG` in `/etc/profile.env`:
`eselect locale show` `eselect locale show`

View File

@@ -20,7 +20,7 @@ source: https://github.com/tldr-pages/tldr.git
`export -f {{FUNCTION_NAME}}` `export -f {{FUNCTION_NAME}}`
- Append a pathname to the environment variable `PATH`: - Append a pathname to the environment variable `$PATH`:
`export PATH=$PATH:{{path/to/append}}` `export PATH=$PATH:{{path/to/append}}`

View File

@@ -36,6 +36,6 @@ source: https://github.com/tldr-pages/tldr.git
`gnome-screenshot {{[-d|--delay]}} {{10}} {{[-c|--clipboard]}}` `gnome-screenshot {{[-d|--delay]}} {{10}} {{[-c|--clipboard]}}`
- Display the version: - Display version:
`gnome-screenshot --version` `gnome-screenshot --version`

View File

@@ -20,6 +20,6 @@ source: https://github.com/tldr-pages/tldr.git
`gnome-software --details {{package}}` `gnome-software --details {{package}}`
- Display the version: - Display version:
`gnome-software --version` `gnome-software --version`

View File

@@ -20,10 +20,10 @@ source: https://github.com/tldr-pages/tldr.git
`sudo rkhunter --list` `sudo rkhunter --list`
- Display version:
`sudo rkhunter --versioncheck`
- Display help: - Display help:
`sudo rkhunter --help` `sudo rkhunter --help`
- Display version:
`sudo rkhunter --versioncheck`

View File

@@ -0,0 +1,22 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# systemctl import-environment
> Import environment variables from the shell into systemd's environment.
> See also: `show-environment`, `unset-environment`.
> More information: <https://www.freedesktop.org/software/systemd/man/systemctl.html#%0A%20%20%20%20%20%20%20%20%20%20%20%20import-environment%0A%20%20%20%20%20%20%20%20%20%20%20%20VARIABLE%E2%80%A6%0A%20%20%20%20%20%20%20%20%20%20>.
- Import a variable:
`systemctl import-environment {{variable}}`
- Import multiple variables:
`systemctl import-environment {{variable_1 variable_2 ...}}`
- Import variables for user services:
`systemctl import-environment {{variable}} --user`

View File

@@ -21,7 +21,7 @@ source: https://github.com/tldr-pages/tldr.git
`torsocks --shell` `torsocks --shell`
- Check if current shell is Tor enabled (`LD_PRELOAD` value will be empty if disabled): - Check if current shell is Tor enabled (`$LD_PRELOAD` value will be empty if disabled):
`torsocks show` `torsocks show`

View File

@@ -22,4 +22,4 @@ source: https://github.com/tldr-pages/tldr.git
- Match a string in product name to pick a device and set its fan speed to 0% at 20°C, 50% at 50°C and 100% at 70°C: - Match a string in product name to pick a device and set its fan speed to 0% at 20°C, 50% at 50°C and 100% at 70°C:
`liquidctl --match {{string}} set fan speed {{20 0 50 50 70 100}}` `liquidctl {{[-m|--match]}} {{string}} set fan speed {{20 0 50 50 70 100}}`

View File

@@ -5,13 +5,13 @@ source: https://github.com/tldr-pages/tldr.git
--- ---
# lspath # lspath
> List the contents of the `PATH` environment variable, with optional paging. > List the contents of the `$PATH` environment variable, with optional paging.
> More information: <https://github.com/clementi/lspath>. > More information: <https://github.com/clementi/lspath>.
- Print the contents of the system `PATH` variable, with one element per line: - Print the contents of the system `$PATH` variable, with one element per line:
`lspath` `lspath`
- Print the current contents of the system `PATH` variable, with one element per line, with the output paged: - Print the current contents of the system `$PATH` variable, with one element per line, with the output paged:
`lspath --page` `lspath --page`

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> Watch files and directories and run `rsync` when they change. > Watch files and directories and run `rsync` when they change.
> It is often used to keep two directories on separate systems in sync, ensuring that changes made in one directory are immediately mirrored to the other. > It is often used to keep two directories on separate systems in sync, ensuring that changes made in one directory are immediately mirrored to the other.
> More information: <https://github.com/lsyncd/lsyncd>. > More information: <https://github.com/lsyncd/lsyncd/blob/master/docs/manpage/lsyncd.1.txt>.
- Watch the source for changes and run `rsync` to synchronize files to the destination on every change: - Watch the source for changes and run `rsync` to synchronize files to the destination on every change:

View File

@@ -12,7 +12,7 @@ source: https://github.com/tldr-pages/tldr.git
`man {{command}}` `man {{command}}`
- Open the man page for a command in a browser (`BROWSER` environment variable can replace `=browser_name`): - Open the man page for a command in a browser (`$BROWSER` environment variable can replace `=browser_name`):
`man {{[-H|--html=]}}{{browser_name}} {{command}}` `man {{[-H|--html=]}}{{browser_name}} {{command}}`

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# mkcert # mkcert
> Make locally-trusted development certificates. > Make locally-trusted development certificates.
> More information: <https://github.com/FiloSottile/mkcert>. > More information: <https://manned.org/mkcert>.
- Install the local CA in the system trust store: - Install the local CA in the system trust store:

View File

@@ -7,11 +7,11 @@ source: https://github.com/tldr-pages/tldr.git
> Like `grep` but with powerful replace capabilities. > Like `grep` but with powerful replace capabilities.
> Unlike `sed`, as it isn't restricted to line oriented editing. > Unlike `sed`, as it isn't restricted to line oriented editing.
> More information: <https://github.com/nevdelap/ned>. > More information: <https://github.com/nevdelap/ned#ned-usage>.
- Recursively search starting in the current directory, ignoring case: - Recursively search starting in the current directory, ignoring case:
`ned --ignore-case --recursive '{{^[dl]og}}' {{.}}` `ned {{[-i|--ignore-case]}} {{[-R|--recursive]}} '{{^[dl]og}}' {{.}}`
- Search always showing colored output: - Search always showing colored output:
@@ -19,24 +19,24 @@ source: https://github.com/tldr-pages/tldr.git
- Search never showing colored output: - Search never showing colored output:
`ned --colors=never '{{^[dl]og}}' {{.}}` `ned --colors never '{{^[dl]og}}' {{.}}`
- Search ignoring certain files: - Search ignoring certain files:
`ned --recursive --exclude '{{*.htm}}' '{{^[dl]og}}' {{.}}` `ned {{[-R|--recursive]}} --exclude '{{*.htm}}' '{{^[dl]og}}' {{.}}`
- Simple replace: - Simple replace:
`ned '{{dog}}' --replace '{{cat}}' {{.}}` `ned '{{dog}}' {{[-r|--replace]}} '{{cat}}' {{.}}`
- Replace using numbered group references: - Replace using numbered group references:
`ned '{{the ([a-z]+) dog and the ([a-z]+) dog}}' --replace '{{the $2 dog and the $1 dog}}' {{.}}` `ned '{{the ([a-z]+) dog and the ([a-z]+) dog}}' {{[-r|--replace]}} '{{the $2 dog and the $1 dog}}' {{.}}`
- Replace changing case: - Replace changing case:
`ned '{{([a-z]+) dog}}' --case-replacements --replace '{{\U$1! dog}}' --stdout {{.}}` `ned '{{([a-z]+) dog}}' --case-replacements {{[-r|--replace]}} '{{\U$1! dog}}' --stdout {{.}}`
- Preview results of a find and replace without updating the target files: - Preview results of a find and replace without updating the target files:
`ned '{{^[sb]ad}}' --replace '{{happy}}' --stdout {{.}}` `ned '{{^[sb]ad}}' {{[-r|--replace]}} '{{happy}}' --stdout {{.}}`

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# newman # newman
> Collection runner for Postman. > Collection runner for Postman.
> More information: <https://github.com/postmanlabs/newman>. > More information: <https://github.com/postmanlabs/newman#command-line-options>.
- Run a collection (from a file): - Run a collection (from a file):

View File

@@ -36,6 +36,6 @@ source: https://github.com/tldr-pages/tldr.git
`ng test` `ng test`
- Display the version of your current Angular installation: - Display version:
`ng version` `ng version`

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
--- ---
# nix edit # nix edit
> Open the Nix expression of a Nix package in $EDITOR. > Open the Nix expression of a Nix package in `$EDITOR`.
> More information: <https://nixos.org/manual/nix/stable/command-ref/new-cli/nix3-edit.html>. > More information: <https://nixos.org/manual/nix/stable/command-ref/new-cli/nix3-edit.html>.
- Open the source of the Nix expression of a package from nixpkgs in your `$EDITOR`: - Open the source of the Nix expression of a package from nixpkgs in your `$EDITOR`:

View File

@@ -13,7 +13,7 @@ source: https://github.com/tldr-pages/tldr.git
`nixpkgs-review pr {{pr_number|pr_url}}` `nixpkgs-review pr {{pr_number|pr_url}}`
- Build changed packages and post a comment with a report (requires setting up a token in `hub`, `gh`, or the `GITHUB_TOKEN` environment variable): - Build changed packages and post a comment with a report (requires setting up a token in `hub`, `gh`, or the `$GITHUB_TOKEN` environment variable):
`nixpkgs-review pr --post-result {{pr_number|pr_url}}` `nixpkgs-review pr --post-result {{pr_number|pr_url}}`

View File

@@ -20,7 +20,7 @@ source: https://github.com/tldr-pages/tldr.git
`nnn -H` `nnn -H`
- Open an existing [b]ookmark (defined in the `NNN_BMS` environment variable): - Open an existing [b]ookmark (defined in the `$NNN_BMS` environment variable):
`nnn -b {{bookmark_name}}` `nnn -b {{bookmark_name}}`

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> npm registry manager. > npm registry manager.
> Helps to easily switch between different npm registries. > Helps to easily switch between different npm registries.
> More information: <https://github.com/Pana/nrm>. > More information: <https://github.com/Pana/nrm#usage>.
- List all registries: - List all registries:

View File

@@ -8,7 +8,7 @@ source: https://github.com/tldr-pages/tldr.git
> Install, uninstall or switch between Node.js versions. > Install, uninstall or switch between Node.js versions.
> Supports version numbers like "12.8" or "v16.13.1", and labels like "stable", "system", etc. > Supports version numbers like "12.8" or "v16.13.1", and labels like "stable", "system", etc.
> See also: `asdf`. > See also: `asdf`.
> More information: <https://github.com/creationix/nvm>. > More information: <https://github.com/nvm-sh/nvm#usage>.
- Install a specific version of Node.js: - Install a specific version of Node.js:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# oxipng # oxipng
> Losslessly improve compression of PNG files. > Losslessly improve compression of PNG files.
> More information: <https://github.com/shssoichiro/oxipng>. > More information: <https://manned.org/oxipng>.
- Compress a PNG file (overwrites the file by default): - Compress a PNG file (overwrites the file by default):
@@ -22,19 +22,19 @@ source: https://github.com/tldr-pages/tldr.git
- Compress a file with a set optimization level (default is 2): - Compress a file with a set optimization level (default is 2):
`oxipng --opt {{0|1|2|3|4|5|6|max}} {{path/to/file.png}}` `oxipng {{[-o|--opt]}} {{0|1|2|3|4|5|6|max}} {{path/to/file.png}}`
- Set the PNG interlacing type (`0` removes interlacing, `1` applies Adam7 interlacing, `keep` preserves existing interlacing; default is `0`): - Set the PNG interlacing type (`0` removes interlacing, `1` applies Adam7 interlacing, `keep` preserves existing interlacing; default is `0`):
`oxipng --interlace {{0|1|keep}} {{path/to/file.png}}` `oxipng {{[-i|--interlace]}} {{0|1|keep}} {{path/to/file.png}}`
- Perform additional optimization on images with an alpha channel: - Perform additional optimization on images with an alpha channel:
`oxipng --alpha {{path/to/file.png}}` `oxipng {{[-a|--alpha]}} {{path/to/file.png}}`
- Use the much slower but stronger Zopfli compressor with max optimization: - Use the much slower but stronger Zopfli compressor with max optimization:
`oxipng --zopfli --opt max {{path/to/file.png}}` `oxipng {{[-Z|--zopfli]}} {{[-o|--opt]}} max {{path/to/file.png}}`
- Strip all non-critical metadata chunks: - Strip all non-critical metadata chunks:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# paci # paci
> A package manager for Bash scripts. > A package manager for Bash scripts.
> More information: <https://github.com/tradebyte/paci>. > More information: <https://github.com/tradebyte/paci#usage>.
- Update the list of available packages and versions (it's recommended to run this before other `paci` commands): - Update the list of available packages and versions (it's recommended to run this before other `paci` commands):

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# peco # peco
> Interactive filtering tool. > Interactive filtering tool.
> More information: <https://github.com/peco/peco>. > More information: <https://github.com/peco/peco#command-line-options>.
- Start `peco` on all files in the specified directory: - Start `peco` on all files in the specified directory:

View File

@@ -16,6 +16,6 @@ source: https://github.com/tldr-pages/tldr.git
`picard {{path/to/file1.mp3 path/to/file2.mp3 ...}}` `picard {{path/to/file1.mp3 path/to/file2.mp3 ...}}`
- Display the version of Picard installed: - Display version:
`picard {{[-V|--long-version]}}` `picard {{[-V|--long-version]}}`

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# picom # picom
> Standalone compositor for Xorg. > Standalone compositor for Xorg.
> More information: <https://manned.org/picom>. > More information: <https://github.com/yshui/picom/blob/next/man/picom.1.adoc>.
- Enable `picom` during a session: - Enable `picom` during a session:

View File

@@ -6,20 +6,20 @@ source: https://github.com/tldr-pages/tldr.git
# picom-trans # picom-trans
> Set the window opacity for the `picom` window compositor. > Set the window opacity for the `picom` window compositor.
> More information: <https://github.com/yshui/picom>. > More information: <https://github.com/yshui/picom/blob/next/man/picom-trans.1.adoc>.
- Set the currently focused window opacity to a specific percentage: - Set the currently focused window opacity to a specific percentage:
`picom-trans --current --opacity {{90}}` `picom-trans {{[-c|--current]}} {{[-o|--opacity]}} {{percentage}}`
- Set the opacity of a window with a specific name: - Set the opacity of a window with a specific name:
`picom-trans --name {{Firefox}} --opacity {{90}}` `picom-trans {{[-n|--name]}} {{Firefox}} {{[-o|--opacity]}} {{percentage}}`
- Set the opacity of a specific window selected via mouse cursor: - Set the opacity of a specific window selected via mouse cursor:
`picom-trans --select --opacity {{90}}` `picom-trans {{[-s|--select]}} {{[-o|--opacity]}} {{percentage}}`
- Toggle the opacity of a specific window: - Toggle the opacity of a specific window:
`picom-trans --name {{Firefox}} --toggle` `picom-trans {{[-n|--name]}} {{Firefox}} {{[-t|--toggle]}}`

View File

@@ -28,10 +28,10 @@ source: https://github.com/tldr-pages/tldr.git
`picotool otp list` `picotool otp list`
- Display version:
`picotool version`
- Display help: - Display help:
`picotool help` `picotool help`
- Display version:
`picotool version`

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# pipx # pipx
> Install and run Python applications in isolated environments. > Install and run Python applications in isolated environments.
> More information: <https://github.com/pypa/pipx>. > More information: <https://manned.org/pipx>.
- Run an app in a temporary virtual environment: - Run an app in a temporary virtual environment:

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> Image printing in the terminal. > Image printing in the terminal.
> See also: `chafa`, `catimg`. > See also: `chafa`, `catimg`.
> More information: <https://github.com/eliukblau/pixterm>. > More information: <https://github.com/eliukblau/pixterm#cool-screenshots>.
- Render a static image directly in the terminal: - Render a static image directly in the terminal:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# plenv # plenv
> Switch between multiple versions of Perl. > Switch between multiple versions of Perl.
> More information: <https://github.com/tokuhirom/plenv>. > More information: <https://github.com/tokuhirom/plenv#name>.
- Show the currently selected Perl version and how it was selected: - Show the currently selected Perl version and how it was selected:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# protector # protector
> Protect or unprotect branches on GitHub repositories. > Protect or unprotect branches on GitHub repositories.
> More information: <https://github.com/jcgay/protector>. > More information: <https://github.com/jcgay/protector#usage>.
- Protect branches of a GitHub repository (create branch protection rules): - Protect branches of a GitHub repository (create branch protection rules):

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# pueue edit # pueue edit
> Edit the command or path of a stashed or queued task. > Edit the command or path of a stashed or queued task.
> More information: <https://github.com/Nukesor/pueue>. > More information: <https://github.com/Nukesor/pueue#how-to-use-it>.
- Edit a task, see `pueue status` to get the task ID: - Edit a task, see `pueue status` to get the task ID:

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> Follow the output of a currently running task. > Follow the output of a currently running task.
> See also: `pueue log`. > See also: `pueue log`.
> More information: <https://github.com/Nukesor/pueue>. > More information: <https://github.com/Nukesor/pueue#how-to-use-it>.
- Follow the output of a task (`stdout` + `stderr`): - Follow the output of a task (`stdout` + `stderr`):

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# pueue help # pueue help
> Display help for subcommands. > Display help for subcommands.
> More information: <https://github.com/Nukesor/pueue>. > More information: <https://github.com/Nukesor/pueue#how-to-use-it>.
- Show all available subcommands and flags: - Show all available subcommands and flags:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# pueue send # pueue send
> Send input to a task. > Send input to a task.
> More information: <https://github.com/Nukesor/pueue>. > More information: <https://github.com/Nukesor/pueue#how-to-use-it>.
- Send input to a running command: - Send input to a running command:

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> Remotely shut down the daemon. > Remotely shut down the daemon.
> Only use this subcommand if the daemon isn't started by a service manager. > Only use this subcommand if the daemon isn't started by a service manager.
> More information: <https://github.com/Nukesor/pueue>. > More information: <https://github.com/Nukesor/pueue#how-to-use-it>.
- Shutdown the daemon without a service manager: - Shutdown the daemon without a service manager:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# pueue switch # pueue switch
> Switches the queue position of two enqueued or stashed commands. > Switches the queue position of two enqueued or stashed commands.
> More information: <https://github.com/Nukesor/pueue>. > More information: <https://github.com/Nukesor/pueue#how-to-use-it>.
- Switch the priority of two tasks: - Switch the priority of two tasks:

View File

@@ -24,7 +24,7 @@ source: https://github.com/tldr-pages/tldr.git
`pulumi state repair` `pulumi state repair`
- Edit a stack's state in the editor specified by the `EDITOR` environment variable: - Edit a stack's state in the editor specified by the `$EDITOR` environment variable:
`pulumi state edit --stack {{stack_name}}` `pulumi state edit --stack {{stack_name}}`

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> Switch between multiple versions of Python easily. > Switch between multiple versions of Python easily.
> See also: `asdf`. > See also: `asdf`.
> More information: <https://github.com/pyenv/pyenv>. > More information: <https://manned.org/pyenv>.
- List all available commands: - List all available commands:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# qpdf # qpdf
> Versatile PDF transformation software. > Versatile PDF transformation software.
> More information: <https://github.com/qpdf/qpdf>. > More information: <https://manned.org/qpdf>.
- Extract pages 1-3, 5 and 6-10 from a PDF file and save them as another one: - Extract pages 1-3, 5 and 6-10 from a PDF file and save them as another one:

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> Easily install Ruby versions and manage application environments. > Easily install Ruby versions and manage application environments.
> See also: `asdf`. > See also: `asdf`.
> More information: <https://github.com/rbenv/rbenv>. > More information: <https://manned.org/rbenv>.
- Install a Ruby version: - Install a Ruby version:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# reflex # reflex
> Watch a directory and rerun a command when certain files change. > Watch a directory and rerun a command when certain files change.
> More information: <https://github.com/cespare/reflex>. > More information: <https://github.com/cespare/reflex#usage>.
- Rebuild with `make` if any file changes: - Rebuild with `make` if any file changes:
@@ -14,15 +14,15 @@ source: https://github.com/tldr-pages/tldr.git
- Compile and run Go application if any `.go` file changes: - Compile and run Go application if any `.go` file changes:
`reflex --regex='{{\.go$}}' {{go run .}}` `reflex {{[-r|--regex]}} '{{\.go$}}' {{go run .}}`
- Ignore a directory when watching for changes: - Ignore a directory when watching for changes:
`reflex --inverse-regex='{{^dir/}}' {{command}}` `reflex {{[-G|--inverse-regex]}} '{{^dir/}}' {{command}}`
- Run command when reflex starts and restarts on file changes: - Run command when reflex starts and restarts on file changes:
`reflex --start-service=true {{command}}` `reflex {{[-s|--start-service]}} true {{command}}`
- Substitute the filename that changed in: - Substitute the filename that changed in:

38
tldr/regex Normal file
View File

@@ -0,0 +1,38 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# regex
> Regular expressions (`regex`) are patterns used to match, search, and manipulate text.
> Not a direct command, but syntax to be used with other commands.
> More information: <https://cheatography.com/davechild/cheat-sheets/regular-expressions/>.
- Match any single character:
`.`
- Match the start of a line:
`^{{hello}}`
- Match the end of a line:
`{{world}}$`
- Match zero or more repeated characters:
`{{a}}*`
- Match a set of characters:
`[{{abc}}]`
- Match a range of characters:
`[{{a-z3-9}}]`
- Match anything but the specified character:
`[^{{a}}]`

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# retry # retry
> Repeat command until it succeeds or a criterion is met. > Repeat command until it succeeds or a criterion is met.
> More information: <https://github.com/minfrin/retry>. > More information: <https://manned.org/retry>.
- Retry a command until it succeeds: - Retry a command until it succeeds:
@@ -14,8 +14,8 @@ source: https://github.com/tldr-pages/tldr.git
- Retry a command every n seconds until it succeeds: - Retry a command every n seconds until it succeeds:
`retry --delay={{n}} {{command}}` `retry {{[-d|--delay]}} {{n}} {{command}}`
- Give up after n attempts: - Give up after n attempts:
`retry --times={{n}} {{command}}` `retry {{[-t|--times]}} {{n}} {{command}}`

View File

@@ -20,6 +20,6 @@ source: https://github.com/tldr-pages/tldr.git
`Rscript -e {{expression1}} -e {{expression2}}` `Rscript -e {{expression1}} -e {{expression2}}`
- Display R version: - Display version:
`Rscript --version` `Rscript --version`

29
tldr/slim Normal file
View File

@@ -0,0 +1,29 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# slim
> Analyze and optimize Docker images.
> More information: <https://github.com/slimtoolkit/slim#usage-details>.
- Start Slim on interactive mode:
`slim`
- Analyze Docker layers from a specific image:
`slim xray --target {{image:tag}}`
- Lint a Dockerfile:
`slim lint --target {{path/to/Dockerfile}}`
- Analyze and generate an optimized Docker image:
`slim build {{image:tag}}`
- Display help for a subcommand:
`slim {{subcommand}} --help`

View File

@@ -8,10 +8,6 @@ source: https://github.com/tldr-pages/tldr.git
> Interface with Travis CI. > Interface with Travis CI.
> More information: <https://github.com/travis-ci/travis.rb#command-line-client>. > More information: <https://github.com/travis-ci/travis.rb#command-line-client>.
- Display the client version:
`travis version`
- Authenticate the CLI client against the server, using an authentication token: - Authenticate the CLI client against the server, using an authentication token:
`travis login` `travis login`
@@ -27,3 +23,7 @@ source: https://github.com/tldr-pages/tldr.git
- Generate a `.travis.yml` file and enable the project: - Generate a `.travis.yml` file and enable the project:
`travis init` `travis init`
- Display version:
`travis version`

View File

@@ -33,10 +33,10 @@ source: https://github.com/tldr-pages/tldr.git
`tre {{[-E|--exclude]}} {{regex}}` `tre {{[-E|--exclude]}} {{regex}}`
- Display version:
`tre {{[-V|--version]}}`
- Display help: - Display help:
`tre {{[-h|--help]}}` `tre {{[-h|--help]}}`
- Display version:
`tre {{[-V|--version]}}`

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> Dotfile manager written in Rust. > Dotfile manager written in Rust.
> See also: `chezmoi`, `vcsh`, `homeshick`, `stow`. > See also: `chezmoi`, `vcsh`, `homeshick`, `stow`.
> More information: <https://github.com/RaphGL/Tuckr?tab=readme-ov-file#usage>. > More information: <https://github.com/RaphGL/Tuckr#usage>.
- Check dotfile status: - Check dotfile status:

View File

@@ -25,7 +25,7 @@ source: https://github.com/tldr-pages/tldr.git
`virsh create {{path/to/config_file.xml}}` `virsh create {{path/to/config_file.xml}}`
- Edit a guest's configuration file (editor can be changed with $EDITOR): - Edit a guest's configuration file (editor can be changed with `$EDITOR`):
`virsh edit {{guest_id}}` `virsh edit {{guest_id}}`

View File

@@ -20,6 +20,6 @@ source: https://github.com/tldr-pages/tldr.git
`sudo EDITOR={{editor}} visudo` `sudo EDITOR={{editor}} visudo`
- Display version information: - Display version:
`visudo {{[-V|--version]}}` `visudo {{[-V|--version]}}`

View File

@@ -24,6 +24,6 @@ source: https://github.com/tldr-pages/tldr.git
`whence -ca "{{command}}"` `whence -ca "{{command}}"`
- Search only the `PATH` for `command`, ignoring builtins, aliases or shell functions (equivalent to the `where` command): - Search only the `$PATH` for `command`, ignoring builtins, aliases or shell functions (equivalent to the `where` command):
`whence -p "{{command}}"` `whence -p "{{command}}"`

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# where # where
> Reports all known instances of a command. > Reports all known instances of a command.
> It could be an executable in the PATH environment variable, an alias, or a shell builtin. > It could be an executable in the `$PATH` environment variable, an alias, or a shell builtin.
> More information: <https://zsh.sourceforge.io/Doc/Release/Shell-Builtin-Commands.html>. > More information: <https://zsh.sourceforge.io/Doc/Release/Shell-Builtin-Commands.html>.
- Find all instances of a command: - Find all instances of a command:

View File

@@ -9,7 +9,7 @@ source: https://github.com/tldr-pages/tldr.git
> See also: `whereis`, `whatis`, `type`. > See also: `whereis`, `whatis`, `type`.
> More information: <https://manned.org/which>. > More information: <https://manned.org/which>.
- Search the PATH environment variable and display the location of any matching executables: - Search the `$PATH` environment variable and display the location of any matching executables:
`which {{executable}}` `which {{executable}}`

Some files were not shown because too many files have changed in this diff Show More