mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-07 16:45:42 +00:00
Update cheatsheets
This commit is contained in:
1
tldr/!
1
tldr/!
@@ -6,6 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# !
|
||||
|
||||
> Reuse and expand the shell history in `sh`, Bash, Zsh, `rbash`, and `ksh`.
|
||||
> See also: `^`.
|
||||
> More information: <https://gnu.org/software/bash/manual/bash.html#Event-Designators>.
|
||||
|
||||
- Substitute with the previous command and run it with `sudo`:
|
||||
|
||||
1
tldr/^
1
tldr/^
@@ -7,6 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
> Bash builtin to quick substitute a string in the previous command and run the result.
|
||||
> Equivalent to `!!:s^string1^string2`.
|
||||
> See also: `!`.
|
||||
> More information: <https://gnu.org/software/bash/manual/bash.html#Event-Designators>.
|
||||
|
||||
- Run the previous command replacing `string1` with `string2`:
|
||||
|
||||
33
tldr/addcomputer.py
Normal file
33
tldr/addcomputer.py
Normal file
@@ -0,0 +1,33 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# addcomputer.py
|
||||
|
||||
> Add a computer account to domain.
|
||||
> More information: <https://github.com/fortra/impacket>.
|
||||
|
||||
- Add a computer with a specific name and password:
|
||||
|
||||
`addcomputer.py -computer-name {{COMPUTER_NAME$}} -computer-pass {{computer_password}} {{domain}}/{{username}}:{{password}}`
|
||||
|
||||
- Only set a new password on an existing computer:
|
||||
|
||||
`addcomputer.py -no-add -computer-name {{COMPUTER_NAME$}} -computer-pass {{computer_password}} {{domain}}/{{username}}:{{password}}`
|
||||
|
||||
- Delete an existing computer account:
|
||||
|
||||
`addcomputer.py -delete -computer-name {{COMPUTER_NAME$}} {{domain}}/{{username}}:{{password}}`
|
||||
|
||||
- Add computer using Kerberos authentication:
|
||||
|
||||
`addcomputer.py -k -no-pass {{domain}}/{{username}}@{{hostname}}`
|
||||
|
||||
- Add computer via LDAPS (port 636) instead of SAMR (port 445):
|
||||
|
||||
`addcomputer.py -method LDAPS -port 636 {{domain}}/{{username}}:{{password}}`
|
||||
|
||||
- Specify exact domain controller when multiple DCs exist:
|
||||
|
||||
`addcomputer.py -dc-host {{hostname}} {{domain}}/{{username}}:{{password}}`
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# ansible-vault
|
||||
|
||||
> Encrypt and decrypt values, data structures and files within Ansible projects.
|
||||
> Encrypt and decrypt values, data structures, and files within Ansible projects.
|
||||
> More information: <https://docs.ansible.com/ansible/latest/user_guide/vault.html#id17>.
|
||||
|
||||
- Create a new encrypted vault file with a prompt for a password:
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# aws codeartifact
|
||||
|
||||
> Manage CodeArtifact repositories, domains, packages, package versions and assets.
|
||||
> Manage CodeArtifact repositories, domains, packages, package versions, and assets.
|
||||
> CodeArtifact is an artifact repository compatible with popular package managers and build tools like Maven, Gradle, npm, Yarn, Twine, pip, NuGet, and SwiftPM.
|
||||
> More information: <https://awscli.amazonaws.com/v2/documentation/api/latest/reference/codeartifact/index.html>.
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# aws quicksight
|
||||
|
||||
> Create, delete, list, search and update AWS QuickSight entities.
|
||||
> Create, delete, list, search, and update AWS QuickSight entities.
|
||||
> More information: <https://docs.aws.amazon.com/cli/latest/reference/quicksight/>.
|
||||
|
||||
- List datasets:
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# aws rds
|
||||
|
||||
> Use AWS Relational Database Service, a web service for setting up, operating and scaling relational databases.
|
||||
> Use AWS Relational Database Service, a web service for setting up, operating, and scaling relational databases.
|
||||
> More information: <https://awscli.amazonaws.com/v2/documentation/api/latest/reference/rds/index.html>.
|
||||
|
||||
- Display help for a specific RDS subcommand:
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# awslogs
|
||||
|
||||
> Queries groups, streams and events from Amazon CloudWatch logs.
|
||||
> Query groups, streams, and events from Amazon CloudWatch logs.
|
||||
> More information: <https://github.com/jorgebastida/awslogs#options>.
|
||||
|
||||
- List log groups:
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# balena
|
||||
|
||||
> Interact with the balenaCloud, openBalena and the balena API.
|
||||
> Interact with the balenaCloud, openBalena, and the balena API.
|
||||
> More information: <https://www.balena.io/docs/reference/cli/>.
|
||||
|
||||
- Log in to the balenaCloud account:
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# bash
|
||||
|
||||
> Bourne-Again SHell, an `sh`-compatible command-line interpreter.
|
||||
> See also: `zsh`, `histexpand` (history expansion).
|
||||
> See also: `zsh`, `!` (history expansion).
|
||||
> More information: <https://www.gnu.org/software/bash/manual/bash.html#Invoking-Bash>.
|
||||
|
||||
- Start an interactive shell session:
|
||||
|
||||
2
tldr/bat
2
tldr/bat
@@ -25,7 +25,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`bat {{[-H|--highlight-line]}} {{10|5:10|:10|10:|10:+5}} {{path/to/file}}`
|
||||
|
||||
- Show non-printable characters like space, tab or newline:
|
||||
- Show non-printable characters like space, tab, or newline:
|
||||
|
||||
`bat {{[-A|--show-all]}} {{path/to/file}}`
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# bgpgrep
|
||||
|
||||
> Filter and print BGP data within MRT dumps.
|
||||
> Can read files compressed with `gzip`, `bzip2` and `xz`.
|
||||
> Can read files compressed with `gzip`, `bzip2`, and `xz`.
|
||||
> More information: <https://codeberg.org/1414codeforge/ubgpsuite>.
|
||||
|
||||
- List all routes:
|
||||
|
||||
@@ -28,6 +28,6 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`binwalk {{[-E|--entropy]}} {{[-J|--save]}} {{path/to/binary}}`
|
||||
|
||||
- Combine entropy, signature and opcodes analysis in a single command:
|
||||
- Combine entropy, signature, and opcodes analysis in a single command:
|
||||
|
||||
`binwalk {{[-E|--entropy]}} {{[-B|--signature]}} {{[-A|--opcodes]}} {{path/to/binary}}`
|
||||
|
||||
@@ -6,6 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# black
|
||||
|
||||
> Format Python code automatically.
|
||||
> See also: `ruff`.
|
||||
> More information: <https://black.readthedocs.io/en/stable/usage_and_configuration/the_basics.html>.
|
||||
|
||||
- Auto-format a file or entire directory:
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# blackfire
|
||||
|
||||
> Monitor, profile and test a PHP application.
|
||||
> Monitor, profile, and test a PHP application.
|
||||
> More information: <https://blackfire.io>.
|
||||
|
||||
- Initialize and configure the Blackfire client:
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# bpytop
|
||||
|
||||
> A resource monitor that shows information about the CPU, memory, disks, network and processes.
|
||||
> A resource monitor that shows information about the CPU, memory, disks, network, and processes.
|
||||
> A Python version of `bashtop`.
|
||||
> More information: <https://github.com/aristocratos/bpytop#command-line-options>.
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# break
|
||||
|
||||
> Break out of a `for`, `while`, `until` or `select` loop.
|
||||
> Break out of a `for`, `while`, `until`, or `select` loop.
|
||||
> More information: <https://www.gnu.org/software/bash/manual/bash.html#index-break>.
|
||||
|
||||
- Break out of a single loop:
|
||||
|
||||
@@ -8,7 +8,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
> Output a random buzzphrase. Written in Node.js.
|
||||
> More information: <https://github.com/atomantic/buzzphrase#usage>.
|
||||
|
||||
- Generate a string of three random phrases containing an adjective, a past tense verb and a plural noun:
|
||||
- Generate a string of three random phrases containing an adjective, a past tense verb, and a plural noun:
|
||||
|
||||
`buzzphrase`
|
||||
|
||||
|
||||
27
tldr/bzegrep
27
tldr/bzegrep
@@ -5,29 +5,8 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# bzegrep
|
||||
|
||||
> Find extended `regex` patterns in `bzip2` compressed files using `egrep`.
|
||||
> More information: <https://manned.org/bzegrep>.
|
||||
> This command is an alias of `bzgrep --extended-regexp`.
|
||||
|
||||
- Search for extended `regex` (supporting `?`, `+`, `{}`, `()` and `|`) in a compressed file (case-sensitive):
|
||||
- View documentation for the original command:
|
||||
|
||||
`bzegrep "{{search_pattern}}" {{path/to/file}}`
|
||||
|
||||
- Search for extended `regex` (supporting `?`, `+`, `{}`, `()` and `|`) in a compressed file (case-insensitive):
|
||||
|
||||
`bzegrep {{[-i|--ignore-case]}} "{{search_pattern}}" {{path/to/file}}`
|
||||
|
||||
- Search for lines that do not match a pattern:
|
||||
|
||||
`bzegrep {{[-v|--invert-match]}} "{{search_pattern}}" {{path/to/file}}`
|
||||
|
||||
- Print file name and line number for each match:
|
||||
|
||||
`bzegrep {{[-H|--with-filename]}} {{[-n|--line-number]}} "{{search_pattern}}" {{path/to/file}}`
|
||||
|
||||
- Search for lines matching a pattern, printing only the matched text:
|
||||
|
||||
`bzegrep {{[-o|--only-matching]}} "{{search_pattern}}" {{path/to/file}}`
|
||||
|
||||
- Recursively search files in a bzip2 compressed tar archive for a pattern:
|
||||
|
||||
`bzegrep {{[-r|--recursive]}} "{{search_pattern}}" {{path/to/file}}`
|
||||
`tldr bzgrep`
|
||||
|
||||
27
tldr/bzfgrep
27
tldr/bzfgrep
@@ -5,29 +5,8 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# bzfgrep
|
||||
|
||||
> Find any fixed strings separated by new lines in `bzip2` compressed files using `fgrep`.
|
||||
> More information: <https://manned.org/bzfgrep>.
|
||||
> This command is an alias of `bzgrep --fixed-strings`.
|
||||
|
||||
- Search for lines matching the list of search strings separated by new lines in a compressed file (case-sensitive):
|
||||
- View documentation for the original command:
|
||||
|
||||
`bzfgrep "{{search_string}}" {{path/to/file}}`
|
||||
|
||||
- Search for lines matching the list of search strings separated by new lines in a compressed file (case-insensitive):
|
||||
|
||||
`bzfgrep {{[-i|--ignore-case]}} "{{search_string}}" {{path/to/file}}`
|
||||
|
||||
- Search for lines that do not match the list of search strings separated by new lines in a compressed file:
|
||||
|
||||
`bzfgrep {{[-v|--invert-match]}} "{{search_string}}" {{path/to/file}}`
|
||||
|
||||
- Print file name and line number for each match:
|
||||
|
||||
`bzfgrep {{[-H|--with-filename]}} {{[-n|--line-number]}} "{{search_string}}" {{path/to/file}}`
|
||||
|
||||
- Search for lines matching a pattern, printing only the matched text:
|
||||
|
||||
`bzfgrep {{[-o|--only-matching]}} "{{search_string}}" {{path/to/file}}`
|
||||
|
||||
- Recursively search files in a bzip2 compressed tar archive for the given list of strings:
|
||||
|
||||
`bzfgrep {{[-r|--recursive]}} "{{search_string}}" {{path/to/file}}`
|
||||
`tldr bzgrep`
|
||||
|
||||
@@ -12,10 +12,10 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`caller`
|
||||
|
||||
- Print the line, function and filename where the current function was called:
|
||||
- Print the line, function, and filename where the current function was called:
|
||||
|
||||
`caller 0`
|
||||
|
||||
- Print the line, the function name and the filename of a function call `n` frames back:
|
||||
- Print the line, the function name, and the filename of a function call `n` frames back:
|
||||
|
||||
`caller {{n}}`
|
||||
|
||||
@@ -21,6 +21,6 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`{{command}} | chroma {{[-l|--lexer]}} {{c++}} {{[-f|--formatter]}} {{svg}} {{[-s|--style]}} {{monokai}} > {{path/to/target_file.svg}}`
|
||||
|
||||
- List available lexers, styles and formatters:
|
||||
- List available lexers, styles, and formatters:
|
||||
|
||||
`chroma --list`
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# clang-tidy
|
||||
|
||||
> An LLVM-based C/C++ linter to find style violations, bugs and security flaws through static analysis.
|
||||
> An LLVM-based C/C++ linter to find style violations, bugs, and security flaws through static analysis.
|
||||
> More information: <https://clang.llvm.org/extra/clang-tidy/>.
|
||||
|
||||
- Run default checks on a source file:
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# codespell
|
||||
|
||||
> Spellchecker for source code.
|
||||
> More information: <https://github.com/codespell-project/codespell>.
|
||||
> More information: <https://manned.org/codespell>.
|
||||
|
||||
- Check for typos in all text files in the current directory, recursively:
|
||||
|
||||
@@ -14,28 +14,28 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Correct all typos found in-place:
|
||||
|
||||
`codespell --write-changes`
|
||||
`codespell {{[-w|--write-changes]}}`
|
||||
|
||||
- Skip files with names that match the specified pattern (accepts a comma-separated list of patterns using wildcards):
|
||||
|
||||
`codespell --skip "{{pattern}}"`
|
||||
`codespell {{[-S|--skip]}} "{{pattern}}"`
|
||||
|
||||
- Use a custom dictionary file when checking (`--dictionary` can be used multiple times):
|
||||
|
||||
`codespell --dictionary {{path/to/file.txt}}`
|
||||
`codespell {{[-D|--dictionary]}} {{path/to/file.txt}}`
|
||||
|
||||
- Do not check words that are listed in the specified file:
|
||||
|
||||
`codespell --ignore-words {{path/to/file.txt}}`
|
||||
`codespell {{[-I|--ignore-words]}} {{path/to/file.txt}}`
|
||||
|
||||
- Do not check the specified words:
|
||||
|
||||
`codespell --ignore-words-list {{ignored_word1,ignored_word2,...}}`
|
||||
`codespell {{[-L|--ignore-words-list]}} {{ignored_word1,ignored_word2,...}}`
|
||||
|
||||
- Print 3 lines of context around, before or after each match:
|
||||
- Print 3 lines of [C]ontext around, [B]efore, or [A]fter each match:
|
||||
|
||||
`codespell --{{context|before-context|after-context}} {{3}}`
|
||||
`codespell --{{context|before-context|after-context}} 3`
|
||||
|
||||
- Check file names for typos, in addition to file contents:
|
||||
|
||||
`codespell --check-filenames`
|
||||
`codespell {{[-f|--check-filenames]}}`
|
||||
|
||||
@@ -10,7 +10,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Execute the `ls` program literally, even if an `ls` alias exists:
|
||||
|
||||
`command {{ls}}`
|
||||
`command ls`
|
||||
|
||||
- Find and execute a command using a default `$PATH` (`/bin:/usr/bin:/sbin:/usr/sbin:/etc:/usr/etc`) that guarantees to find all standard utilities:
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# 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/blob/main/doc/cosign.md>.
|
||||
|
||||
- Generate a key-pair:
|
||||
|
||||
@@ -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>.
|
||||
|
||||
|
||||
2
tldr/dfc
2
tldr/dfc
@@ -12,7 +12,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`dfc`
|
||||
|
||||
- Display all filesystems including pseudo, duplicate and inaccessible filesystems:
|
||||
- Display all filesystems including pseudo, duplicate, and inaccessible filesystems:
|
||||
|
||||
`dfc -a`
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# djxl
|
||||
|
||||
> Decompress JPEG XL images.
|
||||
> Accepted output extensions are PNG, APNG, JPEG, EXR, PGM, PPM, PNM, PFM, PAM, EXIF, XMP and JUMBF.
|
||||
> Accepted output extensions are PNG, APNG, JPEG, EXR, PGM, PPM, PNM, PFM, PAM, EXIF, XMP, and JUMBF.
|
||||
> More information: <https://github.com/libjxl/libjxl/blob/main/doc/man/djxl.txt>.
|
||||
|
||||
- Decompress a JPEG XL image to another format:
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# docker image
|
||||
|
||||
> Manage Docker images.
|
||||
> See also: `docker build`, `docker import`, `docker pull`.
|
||||
> See also: `docker build`, `docker pull`, `docker image rm`.
|
||||
> More information: <https://docs.docker.com/reference/cli/docker/image/>.
|
||||
|
||||
- List local Docker images:
|
||||
@@ -24,7 +24,3 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- Show the history of a local Docker image:
|
||||
|
||||
`docker image history {{image}}`
|
||||
|
||||
- View documentation for `docker image rm`:
|
||||
|
||||
`tldr docker rmi`
|
||||
|
||||
33
tldr/docker-image-ls
Normal file
33
tldr/docker-image-ls
Normal file
@@ -0,0 +1,33 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# docker image ls
|
||||
|
||||
> Manage Docker images.
|
||||
> More information: <https://docs.docker.com/reference/cli/docker/image/ls/>.
|
||||
|
||||
- List all Docker images:
|
||||
|
||||
`docker image ls`
|
||||
|
||||
- List all Docker images including intermediates:
|
||||
|
||||
`docker image ls {{[-a|--all]}}`
|
||||
|
||||
- List the output in quiet mode (only numeric IDs):
|
||||
|
||||
`docker image ls {{[-q|--quiet]}}`
|
||||
|
||||
- List all Docker images not used by any container:
|
||||
|
||||
`docker image ls {{[-f|--filter]}} dangling=true`
|
||||
|
||||
- List images that contain a substring in their name:
|
||||
|
||||
`docker image ls "{{*name*}}"`
|
||||
|
||||
- Sort images by size:
|
||||
|
||||
`docker image ls --format "\{\{.ID\}\} \{\{.Size\}\} \{\{.Repository\}\}:\{\{.Tag\}\}" | sort {{[-k|--key]}} 2 {{[-h|--human-numeric-sort]}}`
|
||||
25
tldr/docker-image-rm
Normal file
25
tldr/docker-image-rm
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# docker image rm
|
||||
|
||||
> Remove Docker images.
|
||||
> More information: <https://docs.docker.com/reference/cli/docker/image/rm/>.
|
||||
|
||||
- Remove one or more images given their names:
|
||||
|
||||
`docker image rm {{image1 image2 ...}}`
|
||||
|
||||
- Force remove an image:
|
||||
|
||||
`docker image rm {{[-f|--force]}} {{image}}`
|
||||
|
||||
- Remove an image without deleting untagged parents:
|
||||
|
||||
`docker image rm --no-prune {{image}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`docker image rm`
|
||||
@@ -5,29 +5,8 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# docker images
|
||||
|
||||
> Manage Docker images.
|
||||
> More information: <https://docs.docker.com/reference/cli/docker/image/ls/>.
|
||||
> This command is an alias of `docker image ls`.
|
||||
|
||||
- List all Docker images:
|
||||
- View documentation for the original command:
|
||||
|
||||
`docker images`
|
||||
|
||||
- List all Docker images including intermediates:
|
||||
|
||||
`docker images {{[-a|--all]}}`
|
||||
|
||||
- List the output in quiet mode (only numeric IDs):
|
||||
|
||||
`docker images {{[-q|--quiet]}}`
|
||||
|
||||
- List all Docker images not used by any container:
|
||||
|
||||
`docker images {{[-f|--filter]}} dangling=true`
|
||||
|
||||
- List images that contain a substring in their name:
|
||||
|
||||
`docker images "{{*name*}}"`
|
||||
|
||||
- Sort images by size:
|
||||
|
||||
`docker images --format "\{\{.ID\}\} \{\{.Size\}\} \{\{.Repository\}\}:\{\{.Tag\}\}" | sort {{[-k|--key]}} 2 {{[-h|--human-numeric-sort]}}`
|
||||
`tldr docker image ls`
|
||||
|
||||
@@ -5,21 +5,8 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# docker rmi
|
||||
|
||||
> Remove Docker images.
|
||||
> More information: <https://docs.docker.com/reference/cli/docker/image/rm/>.
|
||||
> This command is an alias of `docker image rm`.
|
||||
|
||||
- Remove one or more images given their names:
|
||||
- View documentation for the original command:
|
||||
|
||||
`docker rmi {{image1 image2 ...}}`
|
||||
|
||||
- Force remove an image:
|
||||
|
||||
`docker rmi {{[-f|--force]}} {{image}}`
|
||||
|
||||
- Remove an image without deleting untagged parents:
|
||||
|
||||
`docker rmi --no-prune {{image}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`docker rmi`
|
||||
`tldr docker image rm`
|
||||
|
||||
@@ -12,7 +12,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`docker start {{container}}`
|
||||
|
||||
- Start a container, attaching `stdout` and `stderr` and forwarding signals:
|
||||
- Start a container, attaching `stdout` and `stderr`, and forwarding signals:
|
||||
|
||||
`docker start {{[-a|--attach]}} {{container}}`
|
||||
|
||||
|
||||
2
tldr/duf
2
tldr/duf
@@ -12,7 +12,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`duf`
|
||||
|
||||
- List everything (such as pseudo, duplicate or inaccessible file systems):
|
||||
- List everything (such as pseudo, duplicate, or inaccessible file systems):
|
||||
|
||||
`duf --all`
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
> Freeze stages in the DVC pipeline.
|
||||
> This prevents DVC from tracking changes in stage dependencies and re-execution until unfreeze.
|
||||
> See also: `dvs unfreeze`.
|
||||
> See also: `dvc unfreeze`.
|
||||
> More information: <https://dvc.org/doc/command-reference/freeze>.
|
||||
|
||||
- Freeze one or more specified stages:
|
||||
|
||||
27
tldr/egrep
27
tldr/egrep
@@ -5,29 +5,8 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# egrep
|
||||
|
||||
> Find patterns in files using extended `regex` (supports `?`, `+`, `{}`, `()`, and `|`).
|
||||
> More information: <https://manned.org/egrep>.
|
||||
> This command is an alias of `grep --extended-regexp`.
|
||||
|
||||
- Search for a pattern within a file:
|
||||
- View documentation for the original command:
|
||||
|
||||
`egrep "{{search_pattern}}" {{path/to/file}}`
|
||||
|
||||
- Search for a pattern within multiple files:
|
||||
|
||||
`egrep "{{search_pattern}}" {{path/to/file1 path/to/file2 ...}}`
|
||||
|
||||
- Search `stdin` for a pattern:
|
||||
|
||||
`cat {{path/to/file}} | egrep {{search_pattern}}`
|
||||
|
||||
- Print file name and line number for each match:
|
||||
|
||||
`egrep {{[-H|--with-filename]}} {{[-n|--line-number]}} "{{search_pattern}}" {{path/to/file}}`
|
||||
|
||||
- Search for a pattern in all files recursively in a directory, ignoring binary files:
|
||||
|
||||
`egrep {{[-r|--recursive]}} --binary-files={{without-match}} "{{search_pattern}}" {{path/to/directory}}`
|
||||
|
||||
- Search for lines that do not match a pattern:
|
||||
|
||||
`egrep {{[-v|--invert-match]}} "{{search_pattern}}" {{path/to/file}}`
|
||||
`tldr grep`
|
||||
|
||||
28
tldr/fgrep
28
tldr/fgrep
@@ -5,30 +5,8 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# fgrep
|
||||
|
||||
> Matches fixed strings in files.
|
||||
> Equivalent to `grep -F`.
|
||||
> More information: <https://www.gnu.org/software/grep/manual/grep.html>.
|
||||
> This command is an alias of `grep --fixed-strings`.
|
||||
|
||||
- Search for an exact string in a file:
|
||||
- View documentation for the original command:
|
||||
|
||||
`fgrep {{search_string}} {{path/to/file}}`
|
||||
|
||||
- Search only lines that match entirely in one or more files:
|
||||
|
||||
`fgrep {{[-x|--line-regexp]}} {{search_string}} {{path/to/file1 path/to/file2 ...}}`
|
||||
|
||||
- Count the number of lines that match the given string in a file:
|
||||
|
||||
`fgrep {{[-c|--count]}} {{search_string}} {{path/to/file}}`
|
||||
|
||||
- Show the line number in the file along with the line matched:
|
||||
|
||||
`fgrep {{[-n|--line-number]}} {{search_string}} {{path/to/file}}`
|
||||
|
||||
- Display all lines except those that contain the search string:
|
||||
|
||||
`fgrep {{[-v|--invert-match]}} {{search_string}} {{path/to/file}}`
|
||||
|
||||
- Display filenames whose content matches the search string at least once:
|
||||
|
||||
`fgrep {{[-l|--files-with-matches]}} {{search_string}} {{path/to/file1 path/to/file2 ...}}`
|
||||
`tldr grep`
|
||||
|
||||
@@ -6,7 +6,6 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# fossil init
|
||||
|
||||
> Initialize a new repository for a project.
|
||||
> See also: `fossil clone`.
|
||||
> More information: <https://fossil-scm.org/home/help/init>.
|
||||
|
||||
- Create a new repository in a named file:
|
||||
|
||||
@@ -24,7 +24,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`grep {{[-Ei|--extended-regexp --ignore-case]}} "{{search_pattern}}" {{path/to/file}}`
|
||||
|
||||
- Print 3 lines of [C]ontext around, [B]efore or [A]fter each match:
|
||||
- Print 3 lines of [C]ontext around, [B]efore, or [A]fter each match:
|
||||
|
||||
`grep {{--context|--before-context|--after-context}} 3 "{{search_pattern}}" {{path/to/file}}`
|
||||
|
||||
|
||||
4
tldr/id
4
tldr/id
@@ -8,7 +8,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
> Display current user and group identity.
|
||||
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/id-invocation.html>.
|
||||
|
||||
- Display current user's ID (UID), group ID (GID) and groups to which they belong:
|
||||
- Display current user's ID (UID), group ID (GID), and groups to which they belong:
|
||||
|
||||
`id`
|
||||
|
||||
@@ -32,7 +32,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`id {{[-Gn|--groups --name]}}`
|
||||
|
||||
- Display an arbitrary user's ID (UID), group ID (GID) and groups to which they belong:
|
||||
- Display an arbitrary user's ID (UID), group ID (GID), and groups to which they belong:
|
||||
|
||||
`id {{username}}`
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# imapsync
|
||||
|
||||
> Email IMAP tool for syncing, copying and migrating email mailboxes between two IMAP servers, one way, and without duplicates.
|
||||
> Email IMAP tool for syncing, copying, and migrating email mailboxes between two IMAP servers, one way, and without duplicates.
|
||||
> More information: <https://imapsync.lamiral.info/#doc>.
|
||||
|
||||
- Synchronize IMAP account between host1 and host2:
|
||||
|
||||
@@ -9,7 +9,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
> A peer-to-peer hypermedia protocol. Aims to make the web more open.
|
||||
> More information: <https://docs.ipfs.tech/reference/kubo/cli/>.
|
||||
|
||||
- Add a file from local to the filesystem, pin it and print the relative hash:
|
||||
- Add a file from local to the filesystem, pin it, and print the relative hash:
|
||||
|
||||
`ipfs add {{path/to/file}}`
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# ippeveprinter
|
||||
|
||||
> A simple IPP Everywhere printer server.
|
||||
> See also: `ippeveps`, `ippevepcl`.
|
||||
> See also: `ippeveps`.
|
||||
> More information: <https://openprinting.github.io/cups/doc/man-ippeveprinter.html>.
|
||||
|
||||
- Run the server with a specific service name:
|
||||
|
||||
@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
> Print to Adobe PostScript printers.
|
||||
> Supports PDF, PostScript, JPEG, PWG Raster or Apple Raster files.
|
||||
> See also: `ippevepcl`, `ippeveprinter`.
|
||||
> See also: `ippeveprinter`.
|
||||
> More information: <https://openprinting.github.io/cups/doc/man-ippevepcl.html>.
|
||||
|
||||
- Print a file to `stdout` (status and progress messages are sent to `stderr`):
|
||||
|
||||
12
tldr/jira-browse
Normal file
12
tldr/jira-browse
Normal file
@@ -0,0 +1,12 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# jira browse
|
||||
|
||||
> This command is an alias of `jira open`.
|
||||
|
||||
- View documentation for the original command:
|
||||
|
||||
`tldr jira open`
|
||||
12
tldr/jira-navigate
Normal file
12
tldr/jira-navigate
Normal file
@@ -0,0 +1,12 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# jira navigate
|
||||
|
||||
> This command is an alias of `jira open`.
|
||||
|
||||
- View documentation for the original command:
|
||||
|
||||
`tldr jira open`
|
||||
25
tldr/jira-open
Normal file
25
tldr/jira-open
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# jira open
|
||||
|
||||
> Open a Jira issue or project in the browser.
|
||||
> More information: <https://github.com/ankitpokhrel/jira-cli#other-commands>.
|
||||
|
||||
- Open the Jira project in the browser and print the URL:
|
||||
|
||||
`jira open`
|
||||
|
||||
- Open a specific issue in the browser and print the URL:
|
||||
|
||||
`jira open {{issue_id}}`
|
||||
|
||||
- Print the URL without opening in the browser:
|
||||
|
||||
`jira open {{issue_id}} {{[-n|--no-browser]}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`jira open {{[-h|--help]}}`
|
||||
17
tldr/jira-project
Normal file
17
tldr/jira-project
Normal file
@@ -0,0 +1,17 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# jira project
|
||||
|
||||
> Manage Jira projects.
|
||||
> More information: <https://github.com/ankitpokhrel/jira-cli#other-commands>.
|
||||
|
||||
- List all projects:
|
||||
|
||||
`jira project {{[ls|list]}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`jira project {{[-h|--help]}}`
|
||||
12
tldr/jira-projects
Normal file
12
tldr/jira-projects
Normal file
@@ -0,0 +1,12 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# jira projects
|
||||
|
||||
> This command is an alias of `jira project`.
|
||||
|
||||
- View documentation for the original command:
|
||||
|
||||
`tldr jira project`
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# kops
|
||||
|
||||
> Create, destroy, upgrade and maintain Kubernetes clusters.
|
||||
> Create, destroy, upgrade, and maintain Kubernetes clusters.
|
||||
> More information: <https://kops.sigs.k8s.io/cli/kops/>.
|
||||
|
||||
- Create a cluster from the configuration specification:
|
||||
|
||||
@@ -18,7 +18,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Convert PDF file (pages 1 through 3) to an image with 150 dpi resolution:
|
||||
|
||||
`gs -dQUIET -dBATCH -dNOPAUSE -sDEVICE=jpeg -r150 -dFirstPage={{1}} -dLastPage={{3}} -sOutputFile={{output_%d.jpg}} {{input.pdf}}`
|
||||
`gs -dQUIET -dBATCH -dNOPAUSE -sDEVICE=jpeg -r150 -dFirstPage=1 -dLastPage=3 -sOutputFile={{output_%d.jpg}} {{input.pdf}}`
|
||||
|
||||
- Extract pages from a PDF file:
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Write output of specified file to the specified host on the specified port:
|
||||
|
||||
`ncat {{address}} {{port}} < {{path/to/file}}`
|
||||
`ncat < {{path/to/file}} {{address}} {{port}}`
|
||||
|
||||
- Accept multiple incoming connections on an encrypted channel evading detection of traffic content:
|
||||
|
||||
|
||||
33
tldr/linux/pkgstats
Normal file
33
tldr/linux/pkgstats
Normal file
@@ -0,0 +1,33 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# pkgstats
|
||||
|
||||
> Submit and view Arch Linux package popularity statistics.
|
||||
> More information: <https://github.com/archlinux-de/pkgstats-cli#usage>.
|
||||
|
||||
- Send installed package data:
|
||||
|
||||
`pkgstats submit`
|
||||
|
||||
- View the sent data:
|
||||
|
||||
`pkgstats submit {{[-d|--dump-json]}}`
|
||||
|
||||
- Search for packages:
|
||||
|
||||
`pkgstats search {{search_term}}`
|
||||
|
||||
- Limit search result count (10 by default):
|
||||
|
||||
`pkgstats search {{search_term}} {{[-l|--limit]}} {{count}}`
|
||||
|
||||
- Pick packages for comparison:
|
||||
|
||||
`pkgstats show {{package1 package2 ...}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`pkgstats {{[-h|--help]}}`
|
||||
@@ -6,7 +6,6 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# postfix
|
||||
|
||||
> Postfix mail transfer agent (MTA) control program.
|
||||
> See also: `dovecot`, a mail delivery agent (MDA) that integrates with Postfix.
|
||||
> More information: <https://www.postfix.org/postfix.1.html>.
|
||||
|
||||
- Check the configuration:
|
||||
|
||||
@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
> Search SELinux policy rules.
|
||||
> Part of the `setools` package.
|
||||
> See also: `seinfo`, `semodule`.
|
||||
> See also: `semodule`.
|
||||
> More information: <https://manned.org/sesearch>.
|
||||
|
||||
- Search for all allow rules:
|
||||
|
||||
@@ -6,7 +6,6 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# swww
|
||||
|
||||
> Efficient animated wallpaper daemon for Wayland.
|
||||
> See also: `swww-daemon`.
|
||||
> More information: <https://github.com/LGFae/swww#usage>.
|
||||
|
||||
- Set wallpaper:
|
||||
|
||||
@@ -6,7 +6,7 @@ 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`.
|
||||
> See also: `systemctl show-environment`, `systemctl 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:
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# urpmi
|
||||
|
||||
> Install packages in Mageia.
|
||||
> See also: `urpm.update`, `urpme`, `urpmi.addmedia`, `urpmi.removemedia`, `urpmf`, `urpmq`.
|
||||
> See also: `urpmi.update`, `urpme`, `urpmi.addmedia`, `urpmi.removemedia`, `urpmf`, `urpmq`.
|
||||
> More information: <https://man.linuxreviews.org/man8/urpmi.8.html>.
|
||||
|
||||
- Install a package from the repository or from a local RPM file:
|
||||
|
||||
@@ -15,7 +15,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Upload a file with a POST request:
|
||||
|
||||
`lwp-request -m POST {{http://example.com/some/path}} < {{path/to/file}}`
|
||||
`lwp-request < {{path/to/file}} -m POST {{http://example.com/some/path}}`
|
||||
|
||||
- Make a request with a custom user agent:
|
||||
|
||||
|
||||
@@ -6,7 +6,6 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# lzegrep
|
||||
|
||||
> This command is an alias of `xzgrep --extended-regexp`.
|
||||
> See also: `egrep`.
|
||||
|
||||
- View documentation for the original command:
|
||||
|
||||
|
||||
@@ -6,7 +6,6 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# lzfgrep
|
||||
|
||||
> This command is an alias of `xzgrep --fixed-strings`.
|
||||
> See also: `fgrep`.
|
||||
|
||||
- View documentation for the original command:
|
||||
|
||||
|
||||
2
tldr/mlr
2
tldr/mlr
@@ -24,7 +24,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`mlr --icsv --opprint sort -nr {{field}} {{example.csv}}`
|
||||
|
||||
- Convert CSV to JSON, performing calculations and display those calculations:
|
||||
- Convert CSV to JSON, performing calculations, and display those calculations:
|
||||
|
||||
`mlr --icsv --ojson put '${{newField1}} = ${{oldFieldA}}/${{oldFieldB}}' {{example.csv}}`
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# neofetch
|
||||
|
||||
> Display information about the operating system, software and hardware.
|
||||
> Display information about the operating system, software, and hardware.
|
||||
> Note: `neofetch` is no longer maintained.
|
||||
> See also: `fastfetch`.
|
||||
> More information: <https://manned.org/neofetch>.
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# pamcut
|
||||
|
||||
> Cut out a rectangular region from a Netpbm image.
|
||||
> See also: `pamcrop`, `pamdice`, `pamcomp`.
|
||||
> See also: `pamdice`, `pamcomp`.
|
||||
> More information: <https://netpbm.sourceforge.net/doc/pamcut.html>.
|
||||
|
||||
- Discard the specified number of columns/rows on each side of the image:
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# pastel
|
||||
|
||||
> Generate, analyze, convert and manipulate colors.
|
||||
> Generate, analyze, convert, and manipulate colors.
|
||||
> More information: <https://manned.org/pastel>.
|
||||
|
||||
- Convert colors from one format to another. Here from RGB to HSL:
|
||||
|
||||
@@ -6,7 +6,6 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# pio update
|
||||
|
||||
> Update installed PlatformIO Core packages, development platforms, and global libraries.
|
||||
> See also: `pio platform update`, `pio lib update`.
|
||||
> More information: <https://docs.platformio.org/en/latest/core/userguide/cmd_update.html>.
|
||||
|
||||
- Perform a full update of all packages, development platforms, and global libraries:
|
||||
|
||||
2
tldr/pm2
2
tldr/pm2
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# pm2
|
||||
|
||||
> Process manager for Node.js.
|
||||
> Used for log management, monitoring and configuring processes.
|
||||
> Used for log management, monitoring, and configuring processes.
|
||||
> More information: <https://pm2.keymetrics.io/docs/usage/quick-start/>.
|
||||
|
||||
- Start a process with a name that can be used for later operations:
|
||||
|
||||
@@ -6,7 +6,6 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# pnmmercator
|
||||
|
||||
> Perform Mercator transformations on Netpbm images.
|
||||
> See also: `pnmglobe`.
|
||||
> More information: <https://netpbm.sourceforge.net/doc/pnmmercator.html>.
|
||||
|
||||
- Convert a rectangular projection worldmap to Mercator projection:
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# podman
|
||||
|
||||
> Simple management tool for pods, containers and images.
|
||||
> Simple management tool for pods, containers, and images.
|
||||
> Podman provides a Docker-CLI comparable command-line. Simply put: `alias docker=podman`.
|
||||
> More information: <https://github.com/containers/podman/blob/main/commands-demo.md>.
|
||||
|
||||
|
||||
@@ -32,9 +32,9 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`podman ps {{[-a|--all]}} {{[-f|--filter]}} "exited={{code}}"`
|
||||
|
||||
- Filter containers by status (created, running, removing, paused, exited and dead):
|
||||
- Filter containers by status:
|
||||
|
||||
`podman ps {{[-f|--filter]}} "status={{status}}"`
|
||||
`podman ps {{[-f|--filter]}} "status={{created|running|removing|paused|exited|dead}}"`
|
||||
|
||||
- Filter containers that mount a specific volume or have a volume mounted in a specific path:
|
||||
|
||||
|
||||
@@ -34,7 +34,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
`printf -v {{myvar}} {{"This is %s = %d
|
||||
" "a year" 2016}}`
|
||||
|
||||
- Print a hexadecimal, octal and scientific number:
|
||||
- Print a hexadecimal, octal, and scientific number:
|
||||
|
||||
`printf "{{hex=%x octal=%o scientific=%e
|
||||
}}" 0x{{FF}} 0{{377}} {{100000}}`
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# psysh
|
||||
|
||||
> A runtime developer console, interactive debugger and REPL for PHP.
|
||||
> A runtime developer console, interactive debugger, and REPL for PHP.
|
||||
> More information: <https://github.com/bobthecow/psysh/wiki/CLI-options>.
|
||||
|
||||
- Open a shell in the current directory:
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# pueue group
|
||||
|
||||
> Display, add or remove groups.
|
||||
> Display, add, or remove groups.
|
||||
> More information: <https://github.com/Nukesor/pueue#how-to-use-it>.
|
||||
|
||||
- Show all groups with their statuses and number of parallel jobs:
|
||||
|
||||
@@ -6,7 +6,6 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# pwqgen
|
||||
|
||||
> Generate a random passphrase.
|
||||
> See also: `libpasswdqc`.
|
||||
> More information: <https://manned.org/pwqgen>.
|
||||
|
||||
- Generate a passphrase:
|
||||
|
||||
@@ -7,6 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
> Restricted Bash shell, equivalent to `bash --restricted`.
|
||||
> Does not permit changing the working directory, redirecting command output, or modifying environment variables, among other things.
|
||||
> See also: `!` and `^` for history expansion.
|
||||
> More information: <https://www.gnu.org/software/bash/manual/bash.html#The-Restricted-Shell>.
|
||||
|
||||
- Start an interactive shell session:
|
||||
|
||||
@@ -38,4 +38,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Read `stdin` and perform an action on every line:
|
||||
|
||||
`while read line; do {{echo|ls|rm|...}} "$line"; done < {{/dev/stdin|path/to/file|...}}`
|
||||
`cat {{/dev/stdin|path/to/file|...}} | while read line; do {{echo|ls|rm|...}} "$line"; done`
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# restic
|
||||
|
||||
> A fast, secure and secure backup program.
|
||||
> A fast and secure backup program.
|
||||
> More information: <https://restic.readthedocs.io/en/stable/manual_rest.html#usage-help>.
|
||||
|
||||
- Initialize a backup repository in the specified local directory:
|
||||
|
||||
24
tldr/rgrep
24
tldr/rgrep
@@ -5,26 +5,8 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# rgrep
|
||||
|
||||
> Recursively find patterns in files using `regex`.
|
||||
> Equivalent to `grep -r`.
|
||||
> More information: <https://www.gnu.org/software/grep/manual/grep.html#Command_002dline-Options>.
|
||||
> This command is an alias of `grep --recursive`.
|
||||
|
||||
- Recursively search for a pattern in the current working directory:
|
||||
- View documentation for the original command:
|
||||
|
||||
`rgrep "{{search_pattern}}"`
|
||||
|
||||
- Recursively search for a case-insensitive pattern in the current working directory:
|
||||
|
||||
`rgrep {{[-i|--ignore-case]}} "{{search_pattern}}"`
|
||||
|
||||
- Recursively search for an extended `regex` pattern (supports `?`, `+`, `{}`, `()`, and `|`) in the current working directory:
|
||||
|
||||
`rgrep {{[-E|--extended-regexp]}} "{{search_pattern}}"`
|
||||
|
||||
- Recursively search for an exact string (disables `regex`) in the current working directory:
|
||||
|
||||
`rgrep {{[-F|--fixed-strings]}} "{{exact_string}}"`
|
||||
|
||||
- Recursively search for a pattern in a specified directory (or file):
|
||||
|
||||
`rgrep "{{search_pattern}}" {{path/to/file_or_directory}}`
|
||||
`tldr grep`
|
||||
|
||||
@@ -6,6 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# ruff
|
||||
|
||||
> An extremely fast Python linter and code formatter, written in Rust.
|
||||
> See also: `black`.
|
||||
> More information: <https://docs.astral.sh/ruff/tutorial>.
|
||||
|
||||
- View documentation for the Ruff linter:
|
||||
|
||||
@@ -17,7 +17,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`scamper -I "{{ping}} {{192.0.2.1}}" -I "{{trace}} {{192.0.2.2}}"`
|
||||
|
||||
- Ping several hosts with UDP, use a specific port number for the first ping and increase it for each subsequent ping:
|
||||
- Ping several hosts with UDP, use a specific port number for the first ping, and increase it for each subsequent ping:
|
||||
|
||||
`scamper -c "{{ping}} -P {{UDP-dport}} -d {{33434}}" -i {{192.0.2.1}} -i {{192.0.2.2}}`
|
||||
|
||||
|
||||
2
tldr/sh
2
tldr/sh
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# sh
|
||||
|
||||
> Bourne shell, the standard command language interpreter.
|
||||
> See also: `histexpand` for history expansion.
|
||||
> See also: `!` and `^` for history expansion.
|
||||
> More information: <https://manned.org/sh>.
|
||||
|
||||
- Start an interactive shell session:
|
||||
|
||||
@@ -28,6 +28,6 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`shred {{[-u|--remove]}} {{path/to/file}}`
|
||||
|
||||
- Overwrite a file 100 times, add a final overwrite with zeros, remove the file after overwriting it and show verbose progress on the screen:
|
||||
- Overwrite a file 100 times, add a final overwrite with zeros, remove the file after overwriting it, and show verbose progress on the screen:
|
||||
|
||||
`shred {{[-vzu|--verbose --zero --remove]}} {{[-n|--iterations]}} 100 {{path/to/file}}`
|
||||
|
||||
2
tldr/tee
2
tldr/tee
@@ -20,6 +20,6 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`echo "example" | tee {{/dev/tty}} | {{xargs printf "[%s]"}}`
|
||||
|
||||
- Create a directory called "example", count the number of characters in "example" and write "example" to the terminal:
|
||||
- Create a directory called "example", count the number of characters in "example", and write "example" to the terminal:
|
||||
|
||||
`echo "example" | tee >(xargs mkdir) >(wc {{[-c|--bytes]}})`
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# tidy
|
||||
|
||||
> Clean up and pretty print HTML, XHTML and XML files.
|
||||
> Clean up and pretty print HTML, XHTML, and XML files.
|
||||
> Note: `tidy` cannot preserve original indentation.
|
||||
> More information: <https://api.html-tidy.org/tidy/tidylib_api_next/group__options__cli.html#gad7a9fcaf7b2a712a82e625e84c042b28>.
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
> Manage packages and configuration options of an existing TeX Live installation.
|
||||
> Some subcommands such as `paper` have their own usage documentation.
|
||||
> More information: <https://www.tug.org/texlive/doc/tlmgr.html#ACTIONS>.
|
||||
> More information: <https://www.tug.org/texlive/doc/tlmgr.html#NAME>.
|
||||
|
||||
- Install a package and its dependencies:
|
||||
|
||||
|
||||
@@ -10,20 +10,20 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- List all available platforms in the package repository:
|
||||
|
||||
`tlmgr platform list`
|
||||
`tlmgr {{[arch|platform]}} list`
|
||||
|
||||
- Add the executables for a specific platform:
|
||||
|
||||
`sudo tlmgr platform add {{platform}}`
|
||||
`sudo tlmgr {{[arch|platform]}} add {{platform}}`
|
||||
|
||||
- Remove the executables for a specific platform:
|
||||
|
||||
`sudo tlmgr platform remove {{platform}}`
|
||||
`sudo tlmgr {{[arch|platform]}} remove {{platform}}`
|
||||
|
||||
- Auto-detect and switch to the current platform:
|
||||
|
||||
`sudo tlmgr platform set auto`
|
||||
`sudo tlmgr {{[arch|platform]}} set auto`
|
||||
|
||||
- Switch to a specific platform:
|
||||
|
||||
`sudo tlmgr platform set {{platform}}`
|
||||
`sudo tlmgr {{[arch|platform]}} set {{platform}}`
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# uncrustify
|
||||
|
||||
> C, C++, C#, D, Java and Pawn source code formatter.
|
||||
> C, C++, C#, D, Java, and Pawn source code formatter.
|
||||
> More information: <https://manned.org/uncrustify>.
|
||||
|
||||
- Format a single file:
|
||||
|
||||
@@ -8,7 +8,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
> Tell how long the system has been running and other information.
|
||||
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/uptime-invocation.html>.
|
||||
|
||||
- Print current time, uptime, number of logged-in users and other information:
|
||||
- Print current time, uptime, number of logged-in users, and other information:
|
||||
|
||||
`uptime`
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
> Delay execution for a specific interval in microseconds.
|
||||
> Largely deprecated in favor of `nanosleep`.
|
||||
> See also: `sleep`, `nanosleep`.
|
||||
> See also: `sleep`.
|
||||
> More information: <https://manned.org/usleep.1>.
|
||||
|
||||
- Delay in microseconds:
|
||||
|
||||
2
tldr/w
2
tldr/w
@@ -21,6 +21,6 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`w {{[-h|--no-header]}}`
|
||||
|
||||
- Display information without including the login, JCPU and PCPU columns:
|
||||
- Display information without including the login, JCPU, and PCPU columns:
|
||||
|
||||
`w {{[-s|--short]}}`
|
||||
|
||||
@@ -12,7 +12,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`whence "{{command}}"`
|
||||
|
||||
- Display type of `command`, with location if defined as a function, or binary (equivalent to the `type` and `command -V` builtins):
|
||||
- Display type of `command`, with location if defined as a function or binary (equivalent to the `type` and `command -V` builtins):
|
||||
|
||||
`whence -v "{{command}}"`
|
||||
|
||||
@@ -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,8 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# powershell
|
||||
|
||||
> Command-line shell and scripting language designed especially for system administration.
|
||||
> This command refers to PowerShell version 5.1 and below (also known as the legacy Windows PowerShell). To use the newer, cross-platform version of PowerShell (also known as PowerShell Core), use `pwsh` instead of `powershell`.
|
||||
> This command refers to PowerShell version 5.1 and below (also known as the legacy Windows PowerShell).
|
||||
> To use the newer, cross-platform version of PowerShell (also known as PowerShell Core), use `pwsh` instead of `powershell`.
|
||||
> More information: <https://learn.microsoft.com/windows-server/administration/windows-commands/powershell>.
|
||||
|
||||
- Start an interactive shell session:
|
||||
|
||||
2
tldr/wlc
2
tldr/wlc
@@ -12,7 +12,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`wlc {{[-c|--config]}} {{path/to/file}} list-projects`
|
||||
|
||||
- List components in a project, and override API URL and API key:
|
||||
- List components in a project and override API URL and API key:
|
||||
|
||||
`wlc {{[-u|--url]}} {{URL}} {{[-k|--key]}} {{key}} ls {{project}}`
|
||||
|
||||
|
||||
@@ -6,7 +6,6 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# xzegrep
|
||||
|
||||
> This command is an alias of `xzgrep --extended-regexp`.
|
||||
> See also: `egrep`.
|
||||
|
||||
- View documentation for the original command:
|
||||
|
||||
|
||||
@@ -6,7 +6,6 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# xzfgrep
|
||||
|
||||
> This command is an alias of `xzgrep --fixed-strings`.
|
||||
> See also: `fgrep`.
|
||||
|
||||
- View documentation for the original command:
|
||||
|
||||
|
||||
@@ -6,7 +6,6 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# yadm git-crypt
|
||||
|
||||
> Git Crypt enables transparent encryption and decryption of files in a git repository.
|
||||
> See also: `git-crypt`.
|
||||
> More information: <https://github.com/AGWA/git-crypt>.
|
||||
|
||||
- Initialize repo to use Git Crypt:
|
||||
|
||||
@@ -17,7 +17,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`ykman openpgp access set-retries {{3}} {{3}} {{3}}`
|
||||
|
||||
- Change the User PIN, Reset Code or Admin PIN:
|
||||
- Change the User PIN, Reset Code, or Admin PIN:
|
||||
|
||||
`ykman openpgp access change-{{pin|reset-code|admin-pin}}`
|
||||
|
||||
|
||||
2
tldr/zdb
2
tldr/zdb
@@ -16,6 +16,6 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`zdb {{[-C|--config]}} {{poolname}}`
|
||||
|
||||
- Show statistics about number, size and deduplication of blocks:
|
||||
- Show statistics about number, size, and deduplication of blocks:
|
||||
|
||||
`zdb {{[-b|--block-stats]}} {{poolname}}`
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user