mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
Update cheatsheets
This commit is contained in:
@@ -12,7 +12,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`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`
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`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}}`
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`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}}`
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
> See also: `compgen`, `compopt`.
|
||||
> 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}}`
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`conda init --no-user`
|
||||
|
||||
- Add `condabin/` directory to PATH:
|
||||
- Add `condabin/` directory to `$PATH`:
|
||||
|
||||
`conda init --condabin`
|
||||
|
||||
|
||||
10
tldr/cosign
10
tldr/cosign
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# cosign
|
||||
|
||||
> 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:
|
||||
|
||||
@@ -14,11 +14,11 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- 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:
|
||||
|
||||
`cosign sign -key k8s://{{namespace}}/{{key}} {{image}}`
|
||||
`cosign sign --key k8s://{{namespace}}/{{key}} {{image}}`
|
||||
|
||||
- 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:
|
||||
|
||||
`cosign verify -key {{cosign.pub}} {{image}}`
|
||||
`cosign verify --key {{cosign.pub}} {{image}}`
|
||||
|
||||
- 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:
|
||||
|
||||
`cosign verify -key k8s://{{namespace}}/{{key}} {{image}}`
|
||||
`cosign verify --key k8s://{{namespace}}/{{key}} {{image}}`
|
||||
|
||||
- Copy a container image and its signatures:
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# 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.
|
||||
> More information: <https://github.com/google/go-containerregistry/blob/main/cmd/crane/doc/crane_registry_serve.md>.
|
||||
|
||||
|
||||
@@ -24,6 +24,6 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`cups-config --help`
|
||||
|
||||
- Display CUPS version:
|
||||
- Display version:
|
||||
|
||||
`cups-config --version`
|
||||
|
||||
2
tldr/cvs
2
tldr/cvs
@@ -8,7 +8,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
> Concurrent Versions System, a revision control system.
|
||||
> 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`
|
||||
|
||||
|
||||
@@ -28,10 +28,10 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`dillo {{[-f|--fullwindow]}}`
|
||||
|
||||
- Display version:
|
||||
|
||||
`dillo {{[-v|--version]}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`dillo {{[-h|--help]}}`
|
||||
|
||||
- Display version:
|
||||
|
||||
`dillo {{[-v|--version]}}`
|
||||
|
||||
@@ -5,10 +5,10 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# 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>.
|
||||
|
||||
- Output commands to set LS_COLOR using default colors:
|
||||
- Output commands to set `$LS_COLOR` using default colors:
|
||||
|
||||
`dircolors`
|
||||
|
||||
@@ -16,7 +16,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`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}}`
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# direnv
|
||||
|
||||
> 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:
|
||||
|
||||
|
||||
@@ -28,6 +28,6 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`dnsmasq --dhcp-range={{192.168.0.50,192.168.0.150,12h}}`
|
||||
|
||||
- Print dnsmasq version:
|
||||
- Display version:
|
||||
|
||||
`dnsmasq --version`
|
||||
|
||||
@@ -12,7 +12,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`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}}`
|
||||
|
||||
|
||||
@@ -5,25 +5,8 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# docker-slim
|
||||
|
||||
> Analyze and optimize Docker images.
|
||||
> More information: <https://github.com/slimtoolkit/slim>.
|
||||
> This command is an alias of `slim`.
|
||||
|
||||
- Start DockerSlim on interactive mode:
|
||||
- View documentation for the original command:
|
||||
|
||||
`docker-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`
|
||||
`tldr slim`
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# eget
|
||||
|
||||
> 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:
|
||||
|
||||
@@ -18,11 +18,11 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- 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:
|
||||
|
||||
`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:
|
||||
|
||||
@@ -30,7 +30,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- 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:
|
||||
|
||||
|
||||
10
tldr/eol
10
tldr/eol
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# eol
|
||||
|
||||
> 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:
|
||||
|
||||
@@ -18,16 +18,16 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Open the product webpage:
|
||||
|
||||
`eol {{product}} --web`
|
||||
`eol {{product}} {{[-w|--web]}}`
|
||||
|
||||
- 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:
|
||||
|
||||
`eol {{product1 product2 ...}} --format {{markdown}} > {{eol_report.md}}`
|
||||
`eol {{product1 product2 ...}} --{{markdown}} > {{eol_report.md}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`eol --help`
|
||||
`eol {{[-h|--help]}}`
|
||||
|
||||
2
tldr/eva
2
tldr/eva
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# eva
|
||||
|
||||
> 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:
|
||||
|
||||
|
||||
@@ -12,6 +12,6 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`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}}`
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# fdroidcl
|
||||
|
||||
> 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:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# fkill
|
||||
|
||||
> 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:
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# 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/>.
|
||||
|
||||
- Run a development server:
|
||||
|
||||
@@ -36,6 +36,6 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`flyctl status --app {{app_name}}`
|
||||
|
||||
- Display version information:
|
||||
- Display version:
|
||||
|
||||
`flyctl version`
|
||||
|
||||
10
tldr/gcpdiag
10
tldr/gcpdiag
@@ -7,23 +7,23 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
> Google Cloud Platform troubleshooting and diagnostics tool.
|
||||
> 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:
|
||||
|
||||
`gcpdiag lint --project={{gcp_project_id}}`
|
||||
`gcpdiag lint --project {{gcp_project_id}}`
|
||||
|
||||
- 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:
|
||||
|
||||
`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):
|
||||
|
||||
`gcpdiag lint --project={{gcp_project_id}} --within-days {{number}}`
|
||||
`gcpdiag lint --project {{gcp_project_id}} --within-days {{number}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
|
||||
2
tldr/gdm
2
tldr/gdm
@@ -21,7 +21,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`gdm --no-console`
|
||||
|
||||
- Prevent sanitizing environment variables that start with `LD_`:
|
||||
- Prevent sanitizing environment variables that start with `$LD_`:
|
||||
|
||||
`gdm --preserve-ld-vars`
|
||||
|
||||
|
||||
@@ -18,6 +18,6 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`gettext {{[-h|--help]}}`
|
||||
|
||||
- Display gettext version:
|
||||
- Display version:
|
||||
|
||||
`gettext {{[-V|--version]}}`
|
||||
|
||||
@@ -18,7 +18,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- 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:
|
||||
|
||||
@@ -26,12 +26,12 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- List your public and private gists:
|
||||
|
||||
`gist --list`
|
||||
`gist {{[-l|--list]}}`
|
||||
|
||||
- List all public gists for any user:
|
||||
|
||||
`gist --list {{username}}`
|
||||
`gist {{[-l|--list]}} {{username}}`
|
||||
|
||||
- Update a gist using the ID from URL:
|
||||
|
||||
`gist --update {{GIST_ID}} {{file.txt}}`
|
||||
`gist {{[-u|--update]}} {{GIST_ID}} {{file.txt}}`
|
||||
|
||||
@@ -24,6 +24,6 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`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}}`
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# gitleaks
|
||||
|
||||
> 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:
|
||||
|
||||
@@ -14,19 +14,19 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Scan a local directory:
|
||||
|
||||
`gitleaks detect --source {{path/to/repository}}`
|
||||
`gitleaks detect {{[-s|--source]}} {{path/to/repository}}`
|
||||
|
||||
- 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:
|
||||
|
||||
`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:
|
||||
|
||||
`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:
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
> A terminal-based interface for GitHub, accessed via the `gh` command.
|
||||
> 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:
|
||||
|
||||
@@ -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`):
|
||||
|
||||
`gh feed {{torvalds}} -p`
|
||||
`gh feed {{torvalds}} {{[-p|--pager]}}`
|
||||
|
||||
10
tldr/gnomon
10
tldr/gnomon
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# gnomon
|
||||
|
||||
> 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:
|
||||
|
||||
@@ -14,16 +14,16 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- 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:
|
||||
|
||||
`{{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:
|
||||
|
||||
`{{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:
|
||||
|
||||
`{{npm test}} | gnomon --medium {{0.2}}`
|
||||
`{{npm test}} | gnomon {{[-m|--medium]}} 0.2`
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# guetzli
|
||||
|
||||
> JPEG image compression utility.
|
||||
> More information: <https://github.com/google/guetzli>.
|
||||
> More information: <https://manned.org/guetzli>.
|
||||
|
||||
- Compress a JPEG image:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# hashid
|
||||
|
||||
> 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):
|
||||
|
||||
@@ -22,12 +22,12 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- 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:
|
||||
|
||||
`hashid --mode --john {{hash}}`
|
||||
`hashid {{[-m|--mode]}} {{[-j|--john]}} {{hash}}`
|
||||
|
||||
- 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}}`
|
||||
|
||||
10
tldr/hcloud
10
tldr/hcloud
@@ -6,16 +6,16 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# hcloud
|
||||
|
||||
> 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:
|
||||
|
||||
`hcloud`
|
||||
|
||||
- Display help:
|
||||
|
||||
`hcloud -h`
|
||||
|
||||
- Show available commands and flags for `hcloud` contexts:
|
||||
|
||||
`hcloud context`
|
||||
|
||||
- Display help:
|
||||
|
||||
`hcloud -h`
|
||||
|
||||
16
tldr/hping3
16
tldr/hping3
@@ -7,32 +7,32 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
> Advanced ping utility which supports protocols such TCP, UDP, and raw IP.
|
||||
> 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:
|
||||
|
||||
`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:
|
||||
|
||||
`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:
|
||||
|
||||
`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:
|
||||
|
||||
`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:
|
||||
|
||||
`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:
|
||||
|
||||
`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:
|
||||
|
||||
`hping3 --flood --destport {{80}} --syn {{ip_or_hostname}}`
|
||||
`hping3 --flood {{[-p|--destport]}} 80 {{[-S|--syn]}} {{ip_or_hostname}}`
|
||||
|
||||
10
tldr/htmlq
10
tldr/htmlq
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# htmlq
|
||||
|
||||
> 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`:
|
||||
|
||||
@@ -14,16 +14,16 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- 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:
|
||||
|
||||
`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:
|
||||
|
||||
`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:
|
||||
|
||||
`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}}`
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# hunspell
|
||||
|
||||
> Check spelling.
|
||||
> More information: <https://github.com/hunspell/hunspell>.
|
||||
> More information: <https://manned.org/hunspell>.
|
||||
|
||||
- Check the spelling of a file:
|
||||
|
||||
|
||||
10
tldr/inkmake
10
tldr/inkmake
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# inkmake
|
||||
|
||||
> 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:
|
||||
|
||||
@@ -14,16 +14,16 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- 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:
|
||||
|
||||
`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:
|
||||
|
||||
`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:
|
||||
|
||||
`inkmake --help`
|
||||
`inkmake {{[-h|--help]}}`
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# iverilog
|
||||
|
||||
> 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:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# kcat
|
||||
|
||||
> 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:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# krunvm
|
||||
|
||||
> 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:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# lambo new
|
||||
|
||||
> 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:
|
||||
|
||||
@@ -14,7 +14,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- 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:
|
||||
|
||||
@@ -30,7 +30,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- 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:
|
||||
|
||||
@@ -38,4 +38,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Open a specific editor after the project has been created:
|
||||
|
||||
`lambo new --editor="{{editor}}" {{app_name}}`
|
||||
`lambo new {{[-e|--editor]}} "{{editor}}" {{app_name}}`
|
||||
|
||||
12
tldr/lazygit
12
tldr/lazygit
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# lazygit
|
||||
|
||||
> 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:
|
||||
|
||||
@@ -14,7 +14,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- 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:
|
||||
|
||||
@@ -22,16 +22,16 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Print the default Lazygit configuration:
|
||||
|
||||
`lazygit --config`
|
||||
`lazygit {{[-c|--config]}}`
|
||||
|
||||
- Tail the Lazygit logs (useful with debug mode in another terminal):
|
||||
|
||||
`lazygit --logs`
|
||||
`lazygit {{[-l|--logs]}}`
|
||||
|
||||
- Run Lazygit in debug mode:
|
||||
|
||||
`lazygit --debug`
|
||||
`lazygit {{[-d|--debug]}}`
|
||||
|
||||
- Print the configuration directory:
|
||||
|
||||
`lazygit --print-config-dir`
|
||||
`lazygit {{[-cd|--print-config-dir]}}`
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# light-arionum-cli
|
||||
|
||||
> 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:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# lighthouse
|
||||
|
||||
> 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:
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`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}}`
|
||||
|
||||
|
||||
@@ -5,17 +5,17 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# 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>.
|
||||
|
||||
- List available locales:
|
||||
|
||||
`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}}`
|
||||
|
||||
- Display the value of `LANG` in `/etc/profile.env`:
|
||||
- Display the value of `$LANG` in `/etc/profile.env`:
|
||||
|
||||
`eselect locale show`
|
||||
|
||||
@@ -20,7 +20,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`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}}`
|
||||
|
||||
|
||||
@@ -36,6 +36,6 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`gnome-screenshot {{[-d|--delay]}} {{10}} {{[-c|--clipboard]}}`
|
||||
|
||||
- Display the version:
|
||||
- Display version:
|
||||
|
||||
`gnome-screenshot --version`
|
||||
|
||||
@@ -20,6 +20,6 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`gnome-software --details {{package}}`
|
||||
|
||||
- Display the version:
|
||||
- Display version:
|
||||
|
||||
`gnome-software --version`
|
||||
|
||||
@@ -20,10 +20,10 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`sudo rkhunter --list`
|
||||
|
||||
- Display version:
|
||||
|
||||
`sudo rkhunter --versioncheck`
|
||||
|
||||
- Display help:
|
||||
|
||||
`sudo rkhunter --help`
|
||||
|
||||
- Display version:
|
||||
|
||||
`sudo rkhunter --versioncheck`
|
||||
|
||||
22
tldr/linux/systemctl-import-environment
Normal file
22
tldr/linux/systemctl-import-environment
Normal 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`
|
||||
@@ -21,7 +21,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`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`
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
`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}}`
|
||||
|
||||
@@ -5,13 +5,13 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# 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>.
|
||||
|
||||
- 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`
|
||||
|
||||
- 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`
|
||||
|
||||
@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
> 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.
|
||||
> 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:
|
||||
|
||||
|
||||
2
tldr/man
2
tldr/man
@@ -12,7 +12,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`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}}`
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# mkcert
|
||||
|
||||
> 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:
|
||||
|
||||
|
||||
16
tldr/ned
16
tldr/ned
@@ -7,11 +7,11 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
> Like `grep` but with powerful replace capabilities.
|
||||
> 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:
|
||||
|
||||
`ned --ignore-case --recursive '{{^[dl]og}}' {{.}}`
|
||||
`ned {{[-i|--ignore-case]}} {{[-R|--recursive]}} '{{^[dl]og}}' {{.}}`
|
||||
|
||||
- Search always showing colored output:
|
||||
|
||||
@@ -19,24 +19,24 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Search never showing colored output:
|
||||
|
||||
`ned --colors=never '{{^[dl]og}}' {{.}}`
|
||||
`ned --colors never '{{^[dl]og}}' {{.}}`
|
||||
|
||||
- Search ignoring certain files:
|
||||
|
||||
`ned --recursive --exclude '{{*.htm}}' '{{^[dl]og}}' {{.}}`
|
||||
`ned {{[-R|--recursive]}} --exclude '{{*.htm}}' '{{^[dl]og}}' {{.}}`
|
||||
|
||||
- Simple replace:
|
||||
|
||||
`ned '{{dog}}' --replace '{{cat}}' {{.}}`
|
||||
`ned '{{dog}}' {{[-r|--replace]}} '{{cat}}' {{.}}`
|
||||
|
||||
- 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:
|
||||
|
||||
`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:
|
||||
|
||||
`ned '{{^[sb]ad}}' --replace '{{happy}}' --stdout {{.}}`
|
||||
`ned '{{^[sb]ad}}' {{[-r|--replace]}} '{{happy}}' --stdout {{.}}`
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# newman
|
||||
|
||||
> 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):
|
||||
|
||||
|
||||
2
tldr/ng
2
tldr/ng
@@ -36,6 +36,6 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`ng test`
|
||||
|
||||
- Display the version of your current Angular installation:
|
||||
- Display version:
|
||||
|
||||
`ng version`
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# 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>.
|
||||
|
||||
- Open the source of the Nix expression of a package from nixpkgs in your `$EDITOR`:
|
||||
|
||||
@@ -13,7 +13,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`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}}`
|
||||
|
||||
|
||||
2
tldr/nnn
2
tldr/nnn
@@ -20,7 +20,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`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}}`
|
||||
|
||||
|
||||
2
tldr/nrm
2
tldr/nrm
@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
> npm registry manager.
|
||||
> 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:
|
||||
|
||||
|
||||
2
tldr/nvm
2
tldr/nvm
@@ -8,7 +8,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
> Install, uninstall or switch between Node.js versions.
|
||||
> Supports version numbers like "12.8" or "v16.13.1", and labels like "stable", "system", etc.
|
||||
> 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:
|
||||
|
||||
|
||||
10
tldr/oxipng
10
tldr/oxipng
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# oxipng
|
||||
|
||||
> 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):
|
||||
|
||||
@@ -22,19 +22,19 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- 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`):
|
||||
|
||||
`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:
|
||||
|
||||
`oxipng --alpha {{path/to/file.png}}`
|
||||
`oxipng {{[-a|--alpha]}} {{path/to/file.png}}`
|
||||
|
||||
- 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:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# paci
|
||||
|
||||
> 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):
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# peco
|
||||
|
||||
> 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:
|
||||
|
||||
|
||||
@@ -16,6 +16,6 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`picard {{path/to/file1.mp3 path/to/file2.mp3 ...}}`
|
||||
|
||||
- Display the version of Picard installed:
|
||||
- Display version:
|
||||
|
||||
`picard {{[-V|--long-version]}}`
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# picom
|
||||
|
||||
> 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:
|
||||
|
||||
|
||||
@@ -6,20 +6,20 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# picom-trans
|
||||
|
||||
> 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:
|
||||
|
||||
`picom-trans --current --opacity {{90}}`
|
||||
`picom-trans {{[-c|--current]}} {{[-o|--opacity]}} {{percentage}}`
|
||||
|
||||
- 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:
|
||||
|
||||
`picom-trans --select --opacity {{90}}`
|
||||
`picom-trans {{[-s|--select]}} {{[-o|--opacity]}} {{percentage}}`
|
||||
|
||||
- Toggle the opacity of a specific window:
|
||||
|
||||
`picom-trans --name {{Firefox}} --toggle`
|
||||
`picom-trans {{[-n|--name]}} {{Firefox}} {{[-t|--toggle]}}`
|
||||
|
||||
@@ -28,10 +28,10 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`picotool otp list`
|
||||
|
||||
- Display version:
|
||||
|
||||
`picotool version`
|
||||
|
||||
- Display help:
|
||||
|
||||
`picotool help`
|
||||
|
||||
- Display version:
|
||||
|
||||
`picotool version`
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# pipx
|
||||
|
||||
> 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:
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
> Image printing in the terminal.
|
||||
> 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:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# plenv
|
||||
|
||||
> 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:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# protector
|
||||
|
||||
> 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):
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# pueue edit
|
||||
|
||||
> 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:
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
> Follow the output of a currently running task.
|
||||
> 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`):
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# pueue help
|
||||
|
||||
> 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:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# pueue send
|
||||
|
||||
> 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:
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
> Remotely shut down the daemon.
|
||||
> 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:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# pueue switch
|
||||
|
||||
> 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:
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`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}}`
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
> Switch between multiple versions of Python easily.
|
||||
> See also: `asdf`.
|
||||
> More information: <https://github.com/pyenv/pyenv>.
|
||||
> More information: <https://manned.org/pyenv>.
|
||||
|
||||
- List all available commands:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# qpdf
|
||||
|
||||
> 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:
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
> Easily install Ruby versions and manage application environments.
|
||||
> See also: `asdf`.
|
||||
> More information: <https://github.com/rbenv/rbenv>.
|
||||
> More information: <https://manned.org/rbenv>.
|
||||
|
||||
- Install a Ruby version:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# reflex
|
||||
|
||||
> 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:
|
||||
|
||||
@@ -14,15 +14,15 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- 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:
|
||||
|
||||
`reflex --inverse-regex='{{^dir/}}' {{command}}`
|
||||
`reflex {{[-G|--inverse-regex]}} '{{^dir/}}' {{command}}`
|
||||
|
||||
- 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:
|
||||
|
||||
|
||||
38
tldr/regex
Normal file
38
tldr/regex
Normal 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}}]`
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# retry
|
||||
|
||||
> 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:
|
||||
|
||||
@@ -14,8 +14,8 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Retry a command every n seconds until it succeeds:
|
||||
|
||||
`retry --delay={{n}} {{command}}`
|
||||
`retry {{[-d|--delay]}} {{n}} {{command}}`
|
||||
|
||||
- Give up after n attempts:
|
||||
|
||||
`retry --times={{n}} {{command}}`
|
||||
`retry {{[-t|--times]}} {{n}} {{command}}`
|
||||
|
||||
@@ -20,6 +20,6 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`Rscript -e {{expression1}} -e {{expression2}}`
|
||||
|
||||
- Display R version:
|
||||
- Display version:
|
||||
|
||||
`Rscript --version`
|
||||
|
||||
29
tldr/slim
Normal file
29
tldr/slim
Normal 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`
|
||||
@@ -8,10 +8,6 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
> Interface with Travis CI.
|
||||
> 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:
|
||||
|
||||
`travis login`
|
||||
@@ -27,3 +23,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- Generate a `.travis.yml` file and enable the project:
|
||||
|
||||
`travis init`
|
||||
|
||||
- Display version:
|
||||
|
||||
`travis version`
|
||||
|
||||
8
tldr/tre
8
tldr/tre
@@ -33,10 +33,10 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`tre {{[-E|--exclude]}} {{regex}}`
|
||||
|
||||
- Display version:
|
||||
|
||||
`tre {{[-V|--version]}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`tre {{[-h|--help]}}`
|
||||
|
||||
- Display version:
|
||||
|
||||
`tre {{[-V|--version]}}`
|
||||
|
||||
@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
> Dotfile manager written in Rust.
|
||||
> 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:
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`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}}`
|
||||
|
||||
|
||||
@@ -20,6 +20,6 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`sudo EDITOR={{editor}} visudo`
|
||||
|
||||
- Display version information:
|
||||
- Display version:
|
||||
|
||||
`visudo {{[-V|--version]}}`
|
||||
|
||||
@@ -24,6 +24,6 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`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}}"`
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# where
|
||||
|
||||
> 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>.
|
||||
|
||||
- Find all instances of a command:
|
||||
|
||||
@@ -9,7 +9,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
> See also: `whereis`, `whatis`, `type`.
|
||||
> 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}}`
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user