mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-05 17:44:33 +00:00
Update cheatsheets
This commit is contained in:
@@ -15,11 +15,11 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Download a specific anime by specifying an episode range:
|
||||
|
||||
`animdl download {{anime_title}} {{-r|--range}} {{start_episode}}-{{end_episode}}`
|
||||
`animdl download {{anime_title}} {{[-r|--range]}} {{start_episode}}-{{end_episode}}`
|
||||
|
||||
- Download a specific anime by specifying a download directory:
|
||||
|
||||
`animdl download {{anime_title}} {{-d|--download-dir}} {{path/to/download_directory}}`
|
||||
`animdl download {{anime_title}} {{[-d|--download-dir]}} {{path/to/download_directory}}`
|
||||
|
||||
- Grab the stream URL for a specific anime:
|
||||
|
||||
@@ -39,4 +39,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Stream the latest episode of a specific anime:
|
||||
|
||||
`animdl stream {{anime_title}} {{-s|--special}} latest`
|
||||
`animdl stream {{anime_title}} {{[-s|--special]}} latest`
|
||||
|
||||
@@ -34,4 +34,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Display help about roles or collections:
|
||||
|
||||
`ansible-galaxy {{role|collection}} {{-h|--help}}`
|
||||
`ansible-galaxy {{role|collection}} {{[-h|--help]}}`
|
||||
|
||||
@@ -31,7 +31,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Make a new recording, limiting any idle time to at most 2.5 seconds:
|
||||
|
||||
`asciinema rec {{-i|--idle-time-limit}} 2.5`
|
||||
`asciinema rec {{[-i|--idle-time-limit]}} 2.5`
|
||||
|
||||
- Print the full output of a locally saved recording:
|
||||
|
||||
|
||||
@@ -10,15 +10,15 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Use an existing location as workspace path:
|
||||
|
||||
`azurite {{-l|--location}} {{path/to/directory}}`
|
||||
`azurite {{[-l|--location]}} {{path/to/directory}}`
|
||||
|
||||
- Disable access log displayed in console:
|
||||
|
||||
`azurite {{-s|--silent}}`
|
||||
`azurite {{[-s|--silent]}}`
|
||||
|
||||
- Enable debug log by providing a file path as log destination:
|
||||
|
||||
`azurite {{-d|--debug}} {{path/to/debug.log}}`
|
||||
`azurite {{[-d|--debug]}} {{path/to/debug.log}}`
|
||||
|
||||
- Customize the listening address of Blob/Queue/Table service:
|
||||
|
||||
|
||||
@@ -14,11 +14,11 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Wrap encoded output at a specific width (`0` disables wrapping):
|
||||
|
||||
`base32 {{-w|--wrap}} {{0|76|...}} {{path/to/file}}`
|
||||
`base32 {{[-w|--wrap]}} {{0|76|...}} {{path/to/file}}`
|
||||
|
||||
- Decode a file:
|
||||
|
||||
`base32 {{-d|--decode}} {{path/to/file}}`
|
||||
`base32 {{[-d|--decode]}} {{path/to/file}}`
|
||||
|
||||
- Encode from `stdin`:
|
||||
|
||||
@@ -26,4 +26,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Decode from `stdin`:
|
||||
|
||||
`{{command}} | base32 {{-d|--decode}}`
|
||||
`{{command}} | base32 {{[-d|--decode]}}`
|
||||
|
||||
@@ -14,11 +14,11 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Wrap encoded output at a specific width (`0` disables wrapping):
|
||||
|
||||
`base64 {{-w|--wrap}} {{0|76|...}} {{path/to/file}}`
|
||||
`base64 {{[-w|--wrap]}} {{0|76|...}} {{path/to/file}}`
|
||||
|
||||
- Decode a file:
|
||||
|
||||
`base64 {{-d|--decode}} {{path/to/file}}`
|
||||
`base64 {{[-d|--decode]}} {{path/to/file}}`
|
||||
|
||||
- Encode from `stdin`:
|
||||
|
||||
@@ -26,4 +26,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Decode from `stdin`:
|
||||
|
||||
`{{command}} | base64 {{-d|--decode}}`
|
||||
`{{command}} | base64 {{[-d|--decode]}}`
|
||||
|
||||
10
tldr/bat
10
tldr/bat
@@ -23,20 +23,20 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Highlight a specific line or a range of lines with a different background color:
|
||||
|
||||
`bat {{-H|--highlight-line}} {{10|5:10|:10|10:|10:+5}} {{path/to/file}}`
|
||||
`bat {{[-H|--highlight-line]}} {{10|5:10|:10|10:|10:+5}} {{path/to/file}}`
|
||||
|
||||
- Show non-printable characters like space, tab or newline:
|
||||
|
||||
`bat {{-A|--show-all}} {{path/to/file}}`
|
||||
`bat {{[-A|--show-all]}} {{path/to/file}}`
|
||||
|
||||
- Remove all decorations except line numbers in the output:
|
||||
|
||||
`bat {{-n|--number}} {{path/to/file}}`
|
||||
`bat {{[-n|--number]}} {{path/to/file}}`
|
||||
|
||||
- Syntax highlight a JSON file by explicitly setting the language:
|
||||
|
||||
`bat {{-l|--language}} json {{path/to/file.json}}`
|
||||
`bat {{[-l|--language]}} json {{path/to/file.json}}`
|
||||
|
||||
- Display all supported languages:
|
||||
|
||||
`bat {{-L|--list-languages}}`
|
||||
`bat {{[-L|--list-languages]}}`
|
||||
|
||||
@@ -27,7 +27,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Recursively add all e-books under a directory to the library:
|
||||
|
||||
`calibredb add {{-r|--recurse}} {{path/to/directory}}`
|
||||
`calibredb add {{[-r|--recurse]}} {{path/to/directory}}`
|
||||
|
||||
- Remove one or more e-books from the library. You need the e-book IDs (see above):
|
||||
|
||||
|
||||
14
tldr/clang
14
tldr/clang
@@ -11,31 +11,31 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Compile multiple source files into an executable:
|
||||
|
||||
`clang {{path/to/source1.c path/to/source2.c ...}} {{-o|--output}} {{path/to/output_executable}}`
|
||||
`clang {{path/to/source1.c path/to/source2.c ...}} {{[-o|--output]}} {{path/to/output_executable}}`
|
||||
|
||||
- Activate output of all errors and warnings:
|
||||
|
||||
`clang {{path/to/source.c}} -Wall {{-o|--output}} {{output_executable}}`
|
||||
`clang {{path/to/source.c}} -Wall {{[-o|--output]}} {{output_executable}}`
|
||||
|
||||
- Show common warnings, debug symbols in output, and optimize without affecting debugging:
|
||||
|
||||
`clang {{path/to/source.c}} -Wall {{-g|--debug}} -Og {{-o|--output}} {{path/to/output_executable}}`
|
||||
`clang {{path/to/source.c}} -Wall {{[-g|--debug]}} -Og {{[-o|--output]}} {{path/to/output_executable}}`
|
||||
|
||||
- Include libraries from a different path:
|
||||
|
||||
`clang {{path/to/source.c}} {{-o|--output}} {{path/to/output_executable}} -I{{path/to/header}} -L{{path/to/library}} -l{{library_name}}`
|
||||
`clang {{path/to/source.c}} {{[-o|--output]}} {{path/to/output_executable}} -I{{path/to/header}} -L{{path/to/library}} -l{{library_name}}`
|
||||
|
||||
- Compile source code into LLVM Intermediate Representation (IR):
|
||||
|
||||
`clang {{-S|--assemble}} -emit-llvm {{path/to/source.c}} {{-o|--output}} {{path/to/output.ll}}`
|
||||
`clang {{[-S|--assemble]}} -emit-llvm {{path/to/source.c}} {{[-o|--output]}} {{path/to/output.ll}}`
|
||||
|
||||
- Compile source code into an object file without linking:
|
||||
|
||||
`clang {{-c|--compile}} {{path/to/source.c}}`
|
||||
`clang {{[-c|--compile]}} {{path/to/source.c}}`
|
||||
|
||||
- Optimize the compiled program for performance:
|
||||
|
||||
`clang {{path/to/source.c}} -O{{1|2|3|fast}} {{-o|--output}} {{path/to/output_executable}}`
|
||||
`clang {{path/to/source.c}} -O{{1|2|3|fast}} {{[-o|--output]}} {{path/to/output_executable}}`
|
||||
|
||||
- Display version:
|
||||
|
||||
|
||||
14
tldr/clang++
14
tldr/clang++
@@ -11,31 +11,31 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Compile a set of source code files into an executable binary:
|
||||
|
||||
`clang++ {{path/to/source1.cpp path/to/source2.cpp ...}} {{-o|--output}} {{path/to/output_executable}}`
|
||||
`clang++ {{path/to/source1.cpp path/to/source2.cpp ...}} {{[-o|--output]}} {{path/to/output_executable}}`
|
||||
|
||||
- Activate output of all errors and warnings:
|
||||
|
||||
`clang++ {{path/to/source.cpp}} -Wall {{-o|--output}} {{output_executable}}`
|
||||
`clang++ {{path/to/source.cpp}} -Wall {{[-o|--output]}} {{output_executable}}`
|
||||
|
||||
- Show common warnings, debug symbols in output, and optimize without affecting debugging:
|
||||
|
||||
`clang++ {{path/to/source.cpp}} -Wall {{-g|--debug}} -Og {{-o|--output}} {{path/to/output_executable}}`
|
||||
`clang++ {{path/to/source.cpp}} -Wall {{[-g|--debug]}} -Og {{[-o|--output]}} {{path/to/output_executable}}`
|
||||
|
||||
- Choose a language standard to compile for:
|
||||
|
||||
`clang++ {{path/to/source.cpp}} -std={{c++20}} {{-o|--output}} {{path/to/output_executable}}`
|
||||
`clang++ {{path/to/source.cpp}} -std={{c++20}} {{[-o|--output]}} {{path/to/output_executable}}`
|
||||
|
||||
- Include libraries located at a different path than the source file:
|
||||
|
||||
`clang++ {{path/to/source.cpp}} {{-o|--output}} {{path/to/output_executable}} -I{{path/to/header_path}} -L{{path/to/library_path}} -l{{path/to/library_name}}`
|
||||
`clang++ {{path/to/source.cpp}} {{[-o|--output]}} {{path/to/output_executable}} -I{{path/to/header_path}} -L{{path/to/library_path}} -l{{path/to/library_name}}`
|
||||
|
||||
- Compile source code into LLVM Intermediate Representation (IR):
|
||||
|
||||
`clang++ {{-S|--assemble}} -emit-llvm {{path/to/source.cpp}} {{-o|--output}} {{path/to/output.ll}}`
|
||||
`clang++ {{[-S|--assemble]}} -emit-llvm {{path/to/source.cpp}} {{[-o|--output]}} {{path/to/output.ll}}`
|
||||
|
||||
- Optimize the compiled program for performance:
|
||||
|
||||
`clang++ {{path/to/source.cpp}} -O{{1|2|3|fast}} {{-o|--output}} {{path/to/output_executable}}`
|
||||
`clang++ {{path/to/source.cpp}} -O{{1|2|3|fast}} {{[-o|--output]}} {{path/to/output_executable}}`
|
||||
|
||||
- Display version:
|
||||
|
||||
|
||||
@@ -27,8 +27,8 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Enable debug logs for a subcommand:
|
||||
|
||||
`crane {{-v|--verbose}} {{subcommand}}`
|
||||
`crane {{[-v|--verbose]}} {{subcommand}}`
|
||||
|
||||
- Display help for a subcommand:
|
||||
|
||||
`crane {{-h|--help}} {{subcommand}}`
|
||||
`crane {{[-h|--help]}} {{subcommand}}`
|
||||
|
||||
@@ -11,19 +11,19 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Push image based on a base image:
|
||||
|
||||
`crane append {{-b|--base}} {{image_name}}`
|
||||
`crane append {{[-b|--base]}} {{image_name}}`
|
||||
|
||||
- Push image with appended layer from tarball:
|
||||
|
||||
`crane append {{-f|--new_layer}} {{layer_name1 layer_name2 ...}}`
|
||||
`crane append {{[-f|--new_layer]}} {{layer_name1 layer_name2 ...}}`
|
||||
|
||||
- Push image with appended layer with new tag:
|
||||
|
||||
`crane append {{-t|--new_tag}} {{tag_name}}`
|
||||
`crane append {{[-t|--new_tag]}} {{tag_name}}`
|
||||
|
||||
- Push resulting image to new tarball:
|
||||
|
||||
`crane append {{-o|--output}} {{path/to/tarball}}`
|
||||
`crane append {{[-o|--output]}} {{path/to/tarball}}`
|
||||
|
||||
- Use empty base image of type OCI media instead of Docker:
|
||||
|
||||
@@ -35,4 +35,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Display help:
|
||||
|
||||
`crane append {{-h|--help}}`
|
||||
`crane append {{[-h|--help]}}`
|
||||
|
||||
@@ -14,20 +14,20 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Implement credential helper:
|
||||
|
||||
`crane auth get {{registry_address}} {{-h|--help}}`
|
||||
`crane auth get {{registry_address}} {{[-h|--help]}}`
|
||||
|
||||
- Log in to a registry:
|
||||
|
||||
`crane auth login {{registry_address}} {{-h|--help}} {{-p|--password}} {{password}} {{-password-stdin}} {{-u|--username}} {{username}}`
|
||||
`crane auth login {{registry_address}} {{[-h|--help]}} {{[-p|--password]}} {{password}} {{-password-stdin}} {{[-u|--username]}} {{username}}`
|
||||
|
||||
- Log out of a registry:
|
||||
|
||||
`crane auth logout {{registry_address}} {{-h|--help}}`
|
||||
`crane auth logout {{registry_address}} {{[-h|--help]}}`
|
||||
|
||||
- Retrieve a token for a remote repository:
|
||||
|
||||
`crane auth token {{registry_address}} {{-H|--header}} {{-h|--help}} {{-m|--mount}} {{scope1 scope2 ...}} --push`
|
||||
`crane auth token {{registry_address}} {{[-H|--header]}} {{[-h|--help]}} {{[-m|--mount]}} {{scope1 scope2 ...}} --push`
|
||||
|
||||
- Display help:
|
||||
|
||||
`crane auth {{-h|--help}}`
|
||||
`crane auth {{[-h|--help]}}`
|
||||
|
||||
@@ -14,4 +14,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Display help:
|
||||
|
||||
`crane blob {{-h|--help}}`
|
||||
`crane blob {{[-h|--help]}}`
|
||||
|
||||
@@ -18,4 +18,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Display help:
|
||||
|
||||
`crane catalog {{-h|--help}}`
|
||||
`crane catalog {{[-h|--help]}}`
|
||||
|
||||
@@ -14,4 +14,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Display help:
|
||||
|
||||
`crane config {{-h|--help}}`
|
||||
`crane config {{[-h|--help]}}`
|
||||
|
||||
@@ -14,16 +14,16 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Copy all tags:
|
||||
|
||||
`crane copy {{source}} {{target}} {{-a|--all-tags}}`
|
||||
`crane copy {{source}} {{target}} {{[-a|--all-tags]}}`
|
||||
|
||||
- Set the maximum number of concurrent copies, defaults to GOMAXPROCS:
|
||||
|
||||
`crane copy {{source}} {{target}} {{-j|--jobs}} {{int}}`
|
||||
`crane copy {{source}} {{target}} {{[-j|--jobs]}} {{int}}`
|
||||
|
||||
- Avoid overwriting existing tags in target:
|
||||
|
||||
`crane copy {{source}} {{target}} {{-n|--no-clobber}}`
|
||||
`crane copy {{source}} {{target}} {{[-n|--no-clobber]}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`crane copy {{-h|--help}}`
|
||||
`crane copy {{[-h|--help]}}`
|
||||
|
||||
@@ -14,4 +14,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Display help:
|
||||
|
||||
`crane delete {{-h|--help}}`
|
||||
`crane delete {{[-h|--help]}}`
|
||||
|
||||
@@ -22,4 +22,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Display help:
|
||||
|
||||
`crane digest {{-h|--help}}`
|
||||
`crane digest {{[-h|--help]}}`
|
||||
|
||||
@@ -15,8 +15,8 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Apply new tag to flattened image:
|
||||
|
||||
`crane flatten {{-t|--tag}} {{tag_name}}`
|
||||
`crane flatten {{[-t|--tag]}} {{tag_name}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`crane flatten {{-h|--help}}`
|
||||
`crane flatten {{[-h|--help]}}`
|
||||
|
||||
@@ -19,4 +19,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Display help:
|
||||
|
||||
`crane index {{-h|--help}}`
|
||||
`crane index {{[-h|--help]}}`
|
||||
|
||||
@@ -16,11 +16,11 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Reference to manifests to append to the base index:
|
||||
|
||||
`crane index append {{-m|--manifest}} {{manifest_name1 manifest_name2 ...}}`
|
||||
`crane index append {{[-m|--manifest]}} {{manifest_name1 manifest_name2 ...}}`
|
||||
|
||||
- Tag to apply to resulting image:
|
||||
|
||||
`crane index append {{-t|--tag}} {{tag_name}}`
|
||||
`crane index append {{[-t|--tag]}} {{tag_name}}`
|
||||
|
||||
- Empty base index will have Docker media types instead of OCI:
|
||||
|
||||
@@ -32,4 +32,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Display help:
|
||||
|
||||
`crane index append {{-h|--help}}`
|
||||
`crane index append {{[-h|--help]}}`
|
||||
|
||||
@@ -18,8 +18,8 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Tag to apply to resulting image:
|
||||
|
||||
`crane index filter {{-t|--tags}} {{tag_name}}`
|
||||
`crane index filter {{[-t|--tags]}} {{tag_name}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`crane index filter {{-h|--help}}`
|
||||
`crane index filter {{[-h|--help]}}`
|
||||
|
||||
@@ -18,8 +18,8 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Omit digest tags:
|
||||
|
||||
`crane ls {{-o|--omit-digest-tags}}`
|
||||
`crane ls {{[-o|--omit-digest-tags]}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`crane ls {{-h|--help}}`
|
||||
`crane ls {{[-h|--help]}}`
|
||||
|
||||
@@ -14,4 +14,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Display help:
|
||||
|
||||
`crane manifest {{-h|--help}}`
|
||||
`crane manifest {{[-h|--help]}}`
|
||||
|
||||
@@ -11,15 +11,15 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- New annotations to set (default []):
|
||||
|
||||
`crane mutate {{-a|--annotation}}/{{-l|--label}} {{annotation/label}}`
|
||||
`crane mutate {{[-a|--annotation]}}/{{[-l|--label]}} {{annotation/label}}`
|
||||
|
||||
- Path to tarball/command/entrypoint/environment variable/exposed-ports to append to image:
|
||||
|
||||
`crane mutate {{--append}}/{{--cmd}}/{{--entrypoint}}/{{-e|--env}}/{{--exposed-ports}} {{var1 var2 ...}}`
|
||||
`crane mutate {{--append}}/{{--cmd}}/{{--entrypoint}}/{{[-e|--env]}}/{{--exposed-ports}} {{var1 var2 ...}}`
|
||||
|
||||
- Path to new tarball of resulting image:
|
||||
|
||||
`crane mutate {{-o|--output}} {{path/to/tarball}}`
|
||||
`crane mutate {{[-o|--output]}} {{path/to/tarball}}`
|
||||
|
||||
- Repository in the form os/arch{{/variant}}{{:osversion}}{{,<platform>}} to push mutated image:
|
||||
|
||||
@@ -27,16 +27,16 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- New tag reference to apply to mutated image:
|
||||
|
||||
`crane mutate {{-t|--tag}} {{tag_name}}`
|
||||
`crane mutate {{[-t|--tag]}} {{tag_name}}`
|
||||
|
||||
- New user to set:
|
||||
|
||||
`crane mutate {{-u|--user}} {{username}}`
|
||||
`crane mutate {{[-u|--user]}} {{username}}`
|
||||
|
||||
- New working dir to set:
|
||||
|
||||
`crane mutate {{-w|--workdir}} {{path/to/workdir}}`
|
||||
`crane mutate {{[-w|--workdir]}} {{path/to/workdir}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`crane mutate {{-h|--help}}`
|
||||
`crane mutate {{[-h|--help]}}`
|
||||
|
||||
@@ -18,7 +18,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Path to cache image layers:
|
||||
|
||||
`crane pull {{image_name}} {{path/to/tarball}} {{-c|--cache_path}} {{path/to/cache}}`
|
||||
`crane pull {{image_name}} {{path/to/tarball}} {{[-c|--cache_path]}} {{path/to/cache}}`
|
||||
|
||||
- Format in which to save images (default 'tarball'):
|
||||
|
||||
@@ -26,4 +26,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Display help:
|
||||
|
||||
`crane pull {{-h|--help}}`
|
||||
`crane pull {{[-h|--help]}}`
|
||||
|
||||
@@ -22,4 +22,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Display help:
|
||||
|
||||
`crane push {{-h|--help}}`
|
||||
`crane push {{[-h|--help]}}`
|
||||
|
||||
@@ -22,8 +22,8 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Tag to apply to rebased image:
|
||||
|
||||
`crane rebase {{-t|--tag}} {{tag_name}}`
|
||||
`crane rebase {{[-t|--tag]}} {{tag_name}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`crane rebase {{-h|--help}}`
|
||||
`crane rebase {{[-h|--help]}}`
|
||||
|
||||
@@ -23,8 +23,8 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Display help for `crane registry`:
|
||||
|
||||
`crane registry {{-h|--help}}`
|
||||
`crane registry {{[-h|--help]}}`
|
||||
|
||||
- Display help for `crane registry serve`:
|
||||
|
||||
`crane registry serve {{-h|--help}}`
|
||||
`crane registry serve {{[-h|--help]}}`
|
||||
|
||||
@@ -15,4 +15,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Display help:
|
||||
|
||||
`crane tag {{-h|--help}}`
|
||||
`crane tag {{[-h|--help]}}`
|
||||
|
||||
@@ -26,4 +26,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Display help:
|
||||
|
||||
`crane validate {{-h|--help}}`
|
||||
`crane validate {{[-h|--help]}}`
|
||||
|
||||
@@ -15,4 +15,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Display help:
|
||||
|
||||
`crane version {{-h|--help}}`
|
||||
`crane version {{[-h|--help]}}`
|
||||
|
||||
14
tldr/diff
14
tldr/diff
@@ -14,28 +14,28 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Compare files, ignoring white spaces:
|
||||
|
||||
`diff {{-w|--ignore-all-space}} {{old_file}} {{new_file}}`
|
||||
`diff {{[-w|--ignore-all-space]}} {{old_file}} {{new_file}}`
|
||||
|
||||
- Compare files, showing the differences side by side:
|
||||
|
||||
`diff {{-y|--side-by-side}} {{old_file}} {{new_file}}`
|
||||
`diff {{[-y|--side-by-side]}} {{old_file}} {{new_file}}`
|
||||
|
||||
- Compare files, showing the differences in unified format (as used by `git diff`):
|
||||
|
||||
`diff {{-u|--unified}} {{old_file}} {{new_file}}`
|
||||
`diff {{[-u|--unified]}} {{old_file}} {{new_file}}`
|
||||
|
||||
- Compare directories recursively (shows names for differing files/directories as well as changes made to files):
|
||||
|
||||
`diff {{-r|--recursive}} {{old_directory}} {{new_directory}}`
|
||||
`diff {{[-r|--recursive]}} {{old_directory}} {{new_directory}}`
|
||||
|
||||
- Compare directories, only showing the names of files that differ:
|
||||
|
||||
`diff {{-r|--recursive}} {{-q|--brief}} {{old_directory}} {{new_directory}}`
|
||||
`diff {{[-r|--recursive]}} {{[-q|--brief]}} {{old_directory}} {{new_directory}}`
|
||||
|
||||
- Create a patch file for Git from the differences of two text files, treating nonexistent files as empty:
|
||||
|
||||
`diff {{-a|--text}} {{-u|--unified}} {{-N|--new-file}} {{old_file}} {{new_file}} > {{diff.patch}}`
|
||||
`diff {{[-a|--text]}} {{[-u|--unified]}} {{[-N|--new-file]}} {{old_file}} {{new_file}} > {{diff.patch}}`
|
||||
|
||||
- Compare files, showing output in color and try hard to find smaller set of changes:
|
||||
|
||||
`diff {{-d|--minimal}} --color=always {{old_file}} {{new_file}}`
|
||||
`diff {{[-d|--minimal]}} --color=always {{old_file}} {{new_file}}`
|
||||
|
||||
@@ -18,12 +18,12 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Upload a file with password:
|
||||
|
||||
`ffsend upload {{path/to/file}} {{-p|--password}} {{password}}`
|
||||
`ffsend upload {{path/to/file}} {{[-p|--password]}} {{password}}`
|
||||
|
||||
- Download a file protected by password:
|
||||
|
||||
`ffsend download {{url}} {{-p|--password}} {{password}}`
|
||||
`ffsend download {{url}} {{[-p|--password]}} {{password}}`
|
||||
|
||||
- Upload a file and allow 4 downloads:
|
||||
|
||||
`ffsend upload {{path/to/file}} {{-d|--downloads}} {{4}}`
|
||||
`ffsend upload {{path/to/file}} {{[-d|--downloads]}} {{4}}`
|
||||
|
||||
@@ -14,28 +14,28 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Start a new server instance serving a specific root directory:
|
||||
|
||||
`filebrowser {{-r|--root}} {{path/to/directory}}`
|
||||
`filebrowser {{[-r|--root]}} {{path/to/directory}}`
|
||||
|
||||
- Start an instance with different host address (defaults to `127.0.0.1`) and port (defaults to `8080`):
|
||||
|
||||
`filebrowser {{-a|--address}} {{host}} {{-p|--port}} {{port}} {{-r|--root}} {{path/to/directory}}`
|
||||
`filebrowser {{[-a|--address]}} {{host}} {{[-p|--port]}} {{port}} {{[-r|--root]}} {{path/to/directory}}`
|
||||
|
||||
- Start an instance with a specified configuration file, storing the application database in a specific location (defaults to `filebrowser.db` on the current directory):
|
||||
|
||||
`filebrowser {{-c|--config}} {{path/to/file}} {{-d|--database}} {{path/to/database.db}} {{-r|--root}} {{path/to/directory}}`
|
||||
`filebrowser {{[-c|--config]}} {{path/to/file}} {{[-d|--database]}} {{path/to/database.db}} {{[-r|--root]}} {{path/to/directory}}`
|
||||
|
||||
- Set up a different default first-time account username and password (both default to `admin`) when setting up a new instance:
|
||||
|
||||
`filebrowser --username {{username}} --password {{password}} {{-r|--root}} {{path/to/directory}}`
|
||||
`filebrowser --username {{username}} --password {{password}} {{[-r|--root]}} {{path/to/directory}}`
|
||||
|
||||
- Set up the maximum amount of image processors used when generating thumbnails (defaults to `4`):
|
||||
|
||||
`filebrowser --img-processors {{4}} {{-r|--root}} {{path/to/directory}}`
|
||||
`filebrowser --img-processors {{4}} {{[-r|--root]}} {{path/to/directory}}`
|
||||
|
||||
- Disable image thumbnails as well as the Command Runner feature, limiting access for hosted script files from being executed inside the app:
|
||||
|
||||
`filebrowser --disable-exec --disable-thumbnails {{-r|--root}} {{path/to/directory}}`
|
||||
`filebrowser --disable-exec --disable-thumbnails {{[-r|--root]}} {{path/to/directory}}`
|
||||
|
||||
- Disable resizing of image previews as well as detecting file types by reading their headers:
|
||||
|
||||
`filebrowser --disable-preview-resize --disable-type-detection-by-header {{-r|--root}} {{path/to/directory}}`
|
||||
`filebrowser --disable-preview-resize --disable-type-detection-by-header {{[-r|--root]}} {{path/to/directory}}`
|
||||
|
||||
@@ -15,15 +15,15 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Start the service, using the newer TOML configuration file (`frps.toml` instead of `frps.ini`) in the current directory:
|
||||
|
||||
`frpc {{-c|--config}} ./frps.toml`
|
||||
`frpc {{[-c|--config]}} ./frps.toml`
|
||||
|
||||
- Start the service, using a specific configuration file:
|
||||
|
||||
`frpc {{-c|--config}} {{path/to/file}}`
|
||||
`frpc {{[-c|--config]}} {{path/to/file}}`
|
||||
|
||||
- Check if the configuration file is valid:
|
||||
|
||||
`frpc verify {{-c|--config}} {{path/to/file}}`
|
||||
`frpc verify {{[-c|--config]}} {{path/to/file}}`
|
||||
|
||||
- Print autocompletion setup script for Bash, fish, PowerShell, or Zsh:
|
||||
|
||||
@@ -31,4 +31,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Display version:
|
||||
|
||||
`frpc {{-v|--version}}`
|
||||
`frpc {{[-v|--version]}}`
|
||||
|
||||
@@ -15,15 +15,15 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Start the service, using the newer TOML configuration file (`frps.toml` instead of `frps.ini`) in the current directory:
|
||||
|
||||
`frps {{-c|--config}} ./frps.toml`
|
||||
`frps {{[-c|--config]}} ./frps.toml`
|
||||
|
||||
- Start the service, using a specified config file:
|
||||
|
||||
`frps {{-c|--config}} {{path/to/file}}`
|
||||
`frps {{[-c|--config]}} {{path/to/file}}`
|
||||
|
||||
- Check if the configuration file is valid:
|
||||
|
||||
`frps verify {{-c|--config}} {{path/to/file}}`
|
||||
`frps verify {{[-c|--config]}} {{path/to/file}}`
|
||||
|
||||
- Print autocompletion setup script for Bash, fish, PowerShell, or Zsh:
|
||||
|
||||
@@ -31,4 +31,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Display version:
|
||||
|
||||
`frps {{-v|--version}}`
|
||||
`frps {{[-v|--version]}}`
|
||||
|
||||
14
tldr/g++
14
tldr/g++
@@ -11,31 +11,31 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Compile a source code file into an executable binary:
|
||||
|
||||
`g++ {{path/to/source1.cpp path/to/source2.cpp ...}} {{-o|--output}} {{path/to/output_executable}}`
|
||||
`g++ {{path/to/source1.cpp path/to/source2.cpp ...}} {{[-o|--output]}} {{path/to/output_executable}}`
|
||||
|
||||
- Activate output of all errors and warnings:
|
||||
|
||||
`g++ {{path/to/source.cpp}} -Wall {{-o|--output}} {{output_executable}}`
|
||||
`g++ {{path/to/source.cpp}} -Wall {{[-o|--output]}} {{output_executable}}`
|
||||
|
||||
- Show common warnings, debug symbols in output, and optimize without affecting debugging:
|
||||
|
||||
`g++ {{path/to/source.cpp}} -Wall {{-g|--debug}} -Og {{-o|--output}} {{path/to/output_executable}}`
|
||||
`g++ {{path/to/source.cpp}} -Wall {{[-g|--debug]}} -Og {{[-o|--output]}} {{path/to/output_executable}}`
|
||||
|
||||
- Choose a language standard to compile for (C++98/C++11/C++14/C++17):
|
||||
|
||||
`g++ {{path/to/source.cpp}} -std={{c++98|c++11|c++14|c++17}} {{-o|--output}} {{path/to/output_executable}}`
|
||||
`g++ {{path/to/source.cpp}} -std={{c++98|c++11|c++14|c++17}} {{[-o|--output]}} {{path/to/output_executable}}`
|
||||
|
||||
- Include libraries located at a different path than the source file:
|
||||
|
||||
`g++ {{path/to/source.cpp}} {{-o|--output}} {{path/to/output_executable}} -I{{path/to/header}} -L{{path/to/library}} -l{{library_name}}`
|
||||
`g++ {{path/to/source.cpp}} {{[-o|--output]}} {{path/to/output_executable}} -I{{path/to/header}} -L{{path/to/library}} -l{{library_name}}`
|
||||
|
||||
- Compile and link multiple source code files into an executable binary:
|
||||
|
||||
`g++ {{-c|--compile}} {{path/to/source1.cpp path/to/source2.cpp ...}} && g++ {{-o|--output}} {{path/to/output_executable}} {{path/to/source1.o path/to/source2.o ...}}`
|
||||
`g++ {{[-c|--compile]}} {{path/to/source1.cpp path/to/source2.cpp ...}} && g++ {{[-o|--output]}} {{path/to/output_executable}} {{path/to/source1.o path/to/source2.o ...}}`
|
||||
|
||||
- Optimize the compiled program for performance:
|
||||
|
||||
`g++ {{path/to/source.cpp}} -O{{1|2|3|fast}} {{-o|--output}} {{path/to/output_executable}}`
|
||||
`g++ {{path/to/source.cpp}} -O{{1|2|3|fast}} {{[-o|--output]}} {{path/to/output_executable}}`
|
||||
|
||||
- Display version:
|
||||
|
||||
|
||||
14
tldr/gcc
14
tldr/gcc
@@ -11,31 +11,31 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Compile multiple source files into an executable:
|
||||
|
||||
`gcc {{path/to/source1.c path/to/source2.c ...}} {{-o|--output}} {{path/to/output_executable}}`
|
||||
`gcc {{path/to/source1.c path/to/source2.c ...}} {{[-o|--output]}} {{path/to/output_executable}}`
|
||||
|
||||
- Activate output of all errors and warnings:
|
||||
|
||||
`gcc {{path/to/source.c}} -Wall {{-o|--output}} {{output_executable}}`
|
||||
`gcc {{path/to/source.c}} -Wall {{[-o|--output]}} {{output_executable}}`
|
||||
|
||||
- Show common warnings, debug symbols in output, and optimize without affecting debugging:
|
||||
|
||||
`gcc {{path/to/source.c}} -Wall {{-g|--debug}} -Og {{-o|--output}} {{path/to/output_executable}}`
|
||||
`gcc {{path/to/source.c}} -Wall {{[-g|--debug]}} -Og {{[-o|--output]}} {{path/to/output_executable}}`
|
||||
|
||||
- Include libraries from a different path:
|
||||
|
||||
`gcc {{path/to/source.c}} {{-o|--output}} {{path/to/output_executable}} -I{{path/to/header}} -L{{path/to/library}} -l{{library_name}}`
|
||||
`gcc {{path/to/source.c}} {{[-o|--output]}} {{path/to/output_executable}} -I{{path/to/header}} -L{{path/to/library}} -l{{library_name}}`
|
||||
|
||||
- Compile source code into Assembler instructions:
|
||||
|
||||
`gcc {{-S|--assemble}} {{path/to/source.c}}`
|
||||
`gcc {{[-S|--assemble]}} {{path/to/source.c}}`
|
||||
|
||||
- Compile source code into an object file without linking:
|
||||
|
||||
`gcc {{-c|--compile}} {{path/to/source.c}}`
|
||||
`gcc {{[-c|--compile]}} {{path/to/source.c}}`
|
||||
|
||||
- Optimize the compiled program for performance:
|
||||
|
||||
`gcc {{path/to/source.c}} -O{{1|2|3|fast}} {{-o|--output}} {{path/to/output_executable}}`
|
||||
`gcc {{path/to/source.c}} -O{{1|2|3|fast}} {{[-o|--output]}} {{path/to/output_executable}}`
|
||||
|
||||
- Display version:
|
||||
|
||||
|
||||
@@ -29,8 +29,8 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Enable debug logs:
|
||||
|
||||
`gcrane {{-v|--verbose}} {{subcommand}}`
|
||||
`gcrane {{[-v|--verbose]}} {{subcommand}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`gcrane {{-h|--help}}`
|
||||
`gcrane {{[-h|--help]}}`
|
||||
|
||||
@@ -10,16 +10,16 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Copy an image from source to target:
|
||||
|
||||
`gcrane {{cp|copy}} {{source}} {{target}}`
|
||||
`gcrane {{[cp|copy]}} {{source}} {{target}}`
|
||||
|
||||
- Set the maximum number of concurrent copies, defaults to 20:
|
||||
|
||||
`gcrane copy {{source}} {{target}} {{-j|--jobs}} {{nr_of_copies}}`
|
||||
`gcrane copy {{source}} {{target}} {{[-j|--jobs]}} {{nr_of_copies}}`
|
||||
|
||||
- Whether to recurse through repositories:
|
||||
|
||||
`gcrane copy {{source}} {{target}} {{-r|--recursive}}`
|
||||
`gcrane copy {{source}} {{target}} {{[-r|--recursive]}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`gcrane copy {{-h|--help}}`
|
||||
`gcrane copy {{[-h|--help]}}`
|
||||
|
||||
@@ -16,8 +16,8 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Whether to recurse through repositories:
|
||||
|
||||
`gcrane gc {{repository}} {{-r|--recursive}}`
|
||||
`gcrane gc {{repository}} {{[-r|--recursive]}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`gcrane gc {{-h|--help}}`
|
||||
`gcrane gc {{[-h|--help]}}`
|
||||
|
||||
@@ -14,4 +14,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Display help:
|
||||
|
||||
`gcrane help {{-h|--help}}`
|
||||
`gcrane help {{[-h|--help]}}`
|
||||
|
||||
@@ -19,8 +19,8 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Whether to recurse through repositories:
|
||||
|
||||
`gcrane ls {{repository}} {{-r|--recursive}}`
|
||||
`gcrane ls {{repository}} {{[-r|--recursive]}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`gcrane ls {{-h|--help}}`
|
||||
`gcrane ls {{[-h|--help]}}`
|
||||
|
||||
@@ -14,8 +14,8 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Create a new bug report file in the specified directory, creating it if it does not exist:
|
||||
|
||||
`git bugreport {{-o|--output-directory}} {{path/to/directory}}`
|
||||
`git bugreport {{[-o|--output-directory]}} {{path/to/directory}}`
|
||||
|
||||
- Create a new bug report file with the specified filename suffix in `strftime` format:
|
||||
|
||||
`git bugreport {{-s|--suffix}} {{%m%d%y}}`
|
||||
`git bugreport {{[-s|--suffix]}} {{%m%d%y}}`
|
||||
|
||||
@@ -14,7 +14,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Generate a changelog from commits starting from the latest tag and print it to `stdout`:
|
||||
|
||||
`git cliff {{-l|--latest}}`
|
||||
`git cliff {{[-l|--latest]}}`
|
||||
|
||||
- Generate a changelog from commits that belong to the current tag (use `git checkout` on a tag before this):
|
||||
|
||||
@@ -22,8 +22,8 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Generate a changelog from commits that do not belong to a tag:
|
||||
|
||||
`git cliff {{-u|--unreleased}}`
|
||||
`git cliff {{[-u|--unreleased]}}`
|
||||
|
||||
- Write the default config file to `cliff.toml` in the current directory:
|
||||
|
||||
`git cliff {{-i|--init}}`
|
||||
`git cliff {{[-i|--init]}}`
|
||||
|
||||
@@ -10,19 +10,19 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Commit staged files to the repository with a message:
|
||||
|
||||
`git commit --message "{{message}}"`
|
||||
`git commit {{[-m|--message]}} "{{message}}"`
|
||||
|
||||
- Commit staged files with a message read from a file:
|
||||
|
||||
`git commit --file {{path/to/commit_message_file}}`
|
||||
`git commit {{[-F|--file]}} {{path/to/commit_message_file}}`
|
||||
|
||||
- Auto stage all modified and deleted files and commit with a message:
|
||||
|
||||
`git commit --all --message "{{message}}"`
|
||||
`git commit {{[-a|--all]}} {{[-m|--message]}} "{{message}}"`
|
||||
|
||||
- Commit staged files and sign them with the specified GPG key (or the one defined in the configuration file if no argument is specified):
|
||||
|
||||
`git commit --gpg-sign {{key_id}} --message "{{message}}"`
|
||||
`git commit {{[-S|--gpg-sign]}} {{key_id}} {{[-m|--message]}} "{{message}}"`
|
||||
|
||||
- Update the last commit by adding the currently staged changes, changing the commit's hash:
|
||||
|
||||
@@ -34,4 +34,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Create a commit, even if there are no staged files:
|
||||
|
||||
`git commit --message "{{message}}" --allow-empty`
|
||||
`git commit {{[-m|--message]}} "{{message}}" --allow-empty`
|
||||
|
||||
@@ -14,7 +14,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Download changes from default remote repository and use fast-forward:
|
||||
|
||||
`git pull --rebase`
|
||||
`git pull {{[-r|--rebase]}}`
|
||||
|
||||
- Download changes from given remote repository and branch, then merge them into HEAD:
|
||||
|
||||
|
||||
@@ -15,11 +15,11 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Create a new branch and switch to it:
|
||||
|
||||
`git switch --create {{branch_name}}`
|
||||
`git switch {{[-c|--create]}} {{branch_name}}`
|
||||
|
||||
- Create a new branch based on an existing commit and switch to it:
|
||||
|
||||
`git switch --create {{branch_name}} {{commit}}`
|
||||
`git switch {{[-c|--create]}} {{branch_name}} {{commit}}`
|
||||
|
||||
- Switch to the previous branch:
|
||||
|
||||
@@ -31,4 +31,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Switch to a branch and automatically merge the current branch and any uncommitted changes into it:
|
||||
|
||||
`git switch --merge {{branch_name}}`
|
||||
`git switch {{[-m|--merge]}} {{branch_name}}`
|
||||
|
||||
12
tldr/grep
12
tldr/grep
@@ -14,15 +14,15 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Search for an exact string (disables regular expressions):
|
||||
|
||||
`grep {{-F|--fixed-strings}} "{{exact_string}}" {{path/to/file}}`
|
||||
`grep {{[-F|--fixed-strings]}} "{{exact_string}}" {{path/to/file}}`
|
||||
|
||||
- Search for a pattern in all files recursively in a directory, showing line numbers of matches, ignoring binary files:
|
||||
|
||||
`grep {{-r|--recursive}} {{-n|--line-number}} --binary-files {{without-match}} "{{search_pattern}}" {{path/to/directory}}`
|
||||
`grep {{[-r|--recursive]}} {{[-n|--line-number]}} --binary-files {{without-match}} "{{search_pattern}}" {{path/to/directory}}`
|
||||
|
||||
- Use extended regular expressions (supports `?`, `+`, `{}`, `()`, and `|`), in case-insensitive mode:
|
||||
|
||||
`grep {{-E|--extended-regexp}} {{-i|--ignore-case}} "{{search_pattern}}" {{path/to/file}}`
|
||||
`grep {{[-E|--extended-regexp]}} {{[-i|--ignore-case]}} "{{search_pattern}}" {{path/to/file}}`
|
||||
|
||||
- Print 3 lines of context around, before, or after each match:
|
||||
|
||||
@@ -30,12 +30,12 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Print file name and line number for each match with color output:
|
||||
|
||||
`grep {{-H|--with-filename}} {{-n|--line-number}} --color=always "{{search_pattern}}" {{path/to/file}}`
|
||||
`grep {{[-H|--with-filename]}} {{[-n|--line-number]}} --color=always "{{search_pattern}}" {{path/to/file}}`
|
||||
|
||||
- Search for lines matching a pattern, printing only the matched text:
|
||||
|
||||
`grep {{-o|--only-matching}} "{{search_pattern}}" {{path/to/file}}`
|
||||
`grep {{[-o|--only-matching]}} "{{search_pattern}}" {{path/to/file}}`
|
||||
|
||||
- Search `stdin` for lines that do not match a pattern:
|
||||
|
||||
`cat {{path/to/file}} | grep {{-v|--invert-match}} "{{search_pattern}}"`
|
||||
`cat {{path/to/file}} | grep {{[-v|--invert-match]}} "{{search_pattern}}"`
|
||||
|
||||
12
tldr/gzip
12
tldr/gzip
@@ -14,24 +14,24 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Decompress a file, replacing it with the original uncompressed version:
|
||||
|
||||
`gzip {{-d|--decompress}} {{path/to/file.gz}}`
|
||||
`gzip {{[-d|--decompress]}} {{path/to/file.gz}}`
|
||||
|
||||
- Compress a file, keeping the original file:
|
||||
|
||||
`gzip {{-k|--keep}} {{path/to/file}}`
|
||||
`gzip {{[-k|--keep]}} {{path/to/file}}`
|
||||
|
||||
- Compress a file, specifying the output filename:
|
||||
|
||||
`gzip {{-c|--stdout}} {{path/to/file}} > {{path/to/compressed_file.gz}}`
|
||||
`gzip {{[-c|--stdout]}} {{path/to/file}} > {{path/to/compressed_file.gz}}`
|
||||
|
||||
- Decompress a `gzip` archive specifying the output filename:
|
||||
|
||||
`gzip {{-c|--stdout}} {{-d|--decompress}} {{path/to/file.gz}} > {{path/to/uncompressed_file}}`
|
||||
`gzip {{[-c|--stdout]}} {{[-d|--decompress]}} {{path/to/file.gz}} > {{path/to/uncompressed_file}}`
|
||||
|
||||
- Specify the compression level. 1 is the fastest (low compression), 9 is the slowest (high compression), 6 is the default:
|
||||
|
||||
`gzip -{{1..9}} {{-c|--stdout}} {{path/to/file}} > {{path/to/compressed_file.gz}}`
|
||||
`gzip -{{1..9}} {{[-c|--stdout]}} {{path/to/file}} > {{path/to/compressed_file.gz}}`
|
||||
|
||||
- Display the name and reduction percentage for each file compressed or decompressed:
|
||||
|
||||
`gzip {{-v|--verbose}} {{-d|--decompress}} {{path/to/file.gz}}`
|
||||
`gzip {{[-v|--verbose]}} {{[-d|--decompress]}} {{path/to/file.gz}}`
|
||||
|
||||
@@ -22,7 +22,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Follow any `3xx` redirects and specify additional headers in a request:
|
||||
|
||||
`http {{-F|--follow}} {{https://example.com}} {{'User-Agent: Mozilla/5.0' 'Accept-Encoding: gzip'}}`
|
||||
`http {{[-F|--follow]}} {{https://example.com}} {{'User-Agent: Mozilla/5.0' 'Accept-Encoding: gzip'}}`
|
||||
|
||||
- Authenticate to a server using different authentication methods:
|
||||
|
||||
|
||||
@@ -14,4 +14,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Resize the image to the specified width and height before displaying it:
|
||||
|
||||
`img2sixel {{-w|--width}} {{number}} {{-h|--height}} {{number}} {{path/to/image}}`
|
||||
`img2sixel {{[-w|--width]}} {{number}} {{[-h|--height]}} {{number}} {{path/to/image}}`
|
||||
|
||||
@@ -16,7 +16,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Assume `stdin` is already connected to a `tty` and set a timeout for the login:
|
||||
|
||||
`agetty {{-t|--timeout}} {{timeout_in_seconds}} -`
|
||||
`agetty {{[-t|--timeout]}} {{timeout_in_seconds}} -`
|
||||
|
||||
- Assume the `tty` is [8]-bit, overriding the `TERM` environment variable set by `init`:
|
||||
|
||||
@@ -24,12 +24,12 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Skip the login (no login) and invoke, as root, another login program instead of `/bin/login`:
|
||||
|
||||
`agetty {{-n|--skip-login}} {{-l|--login-program}} {{login_program}} {{tty}}`
|
||||
`agetty {{[-n|--skip-login]}} {{[-l|--login-program]}} {{login_program}} {{tty}}`
|
||||
|
||||
- Do not display the pre-login (issue) file (`/etc/issue` by default) before writing the login prompt:
|
||||
|
||||
`agetty {{-i|--noissue}} -`
|
||||
`agetty {{[-i|--noissue]}} -`
|
||||
|
||||
- Change the root directory and write a specific fake host into the `utmp` file:
|
||||
|
||||
`agetty {{-r|--chroot}} {{/path/to/root_directory}} {{-H|--host}} {{fake_host}} -`
|
||||
`agetty {{[-r|--chroot]}} {{/path/to/root_directory}} {{[-H|--host]}} {{fake_host}} -`
|
||||
|
||||
@@ -10,20 +10,20 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Register (command) a new reservation with a given key on a given device:
|
||||
|
||||
`blkpr {{-c|--command}} register {{-k|--key}} {{reservation_key}} {{path/to/device}}`
|
||||
`blkpr {{[-c|--command]}} register {{[-k|--key]}} {{reservation_key}} {{path/to/device}}`
|
||||
|
||||
- Set the type of an existing reservation to exclusive access:
|
||||
|
||||
`blkpr -c reserve {{-k|--key}} {{reservation_key}} {{-t|--type}} exclusive-access {{path/to/device}}`
|
||||
`blkpr -c reserve {{[-k|--key]}} {{reservation_key}} {{[-t|--type]}} exclusive-access {{path/to/device}}`
|
||||
|
||||
- Preempt the existing reservation with a given key and replace it with a new reservation:
|
||||
|
||||
`blkpr -c preempt {{-K|--oldkey}} {{old_key}} {{-k|--key}} {{new_key}} {{-t|--type}} write-exclusive {{path/to/device}}`
|
||||
`blkpr -c preempt {{[-K|--oldkey]}} {{old_key}} {{[-k|--key]}} {{new_key}} {{[-t|--type]}} write-exclusive {{path/to/device}}`
|
||||
|
||||
- Release a reservation with a given key and type on a given device:
|
||||
|
||||
`blkpr -c release {{-k|--key}} {{reservation_key}} {{-t|--type}} {{reservation_type}} {{path/to/device}}`
|
||||
`blkpr -c release {{[-k|--key]}} {{reservation_key}} {{[-t|--type]}} {{reservation_type}} {{path/to/device}}`
|
||||
|
||||
- Clear all reservations from a given device:
|
||||
|
||||
`blkpr -c clear {{-k|--key}} {{key}} {{path/to/device}}`
|
||||
`blkpr -c clear {{[-k|--key]}} {{key}} {{path/to/device}}`
|
||||
|
||||
@@ -16,11 +16,11 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Create a copy with Unix-style line endings:
|
||||
|
||||
`dos2unix {{-n|--newfile}} {{path/to/file}} {{path/to/new_file}}`
|
||||
`dos2unix {{[-n|--newfile]}} {{path/to/file}} {{path/to/new_file}}`
|
||||
|
||||
- Display file information:
|
||||
|
||||
`dos2unix {{-i|--info}} {{path/to/file}}`
|
||||
`dos2unix {{[-i|--info]}} {{path/to/file}}`
|
||||
|
||||
- Keep/add/remove Byte Order Mark:
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- List all boot options with their numbers:
|
||||
|
||||
`efibootmgr {{-u|--unicode}}`
|
||||
`efibootmgr {{[-u|--unicode]}}`
|
||||
|
||||
- Add UEFI Shell v2 as a boot option:
|
||||
|
||||
@@ -22,8 +22,8 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Change the current boot order:
|
||||
|
||||
`sudo efibootmgr {{-o|--bootorder}} {{0002,0008,0001,0005}}`
|
||||
`sudo efibootmgr {{[-o|--bootorder]}} {{0002,0008,0001,0005}}`
|
||||
|
||||
- Delete a boot option:
|
||||
|
||||
`sudo efibootmgr {{-b|--bootnum}} {{0008}} {{-B|--delete-bootnum}}`
|
||||
`sudo efibootmgr {{[-b|--bootnum]}} {{0008}} {{[-B|--delete-bootnum]}}`
|
||||
|
||||
@@ -15,7 +15,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Update all packages, including dependencies:
|
||||
|
||||
`sudo emerge {{-avuDN|--ask --verbose --update --deep --newuse}} @world`
|
||||
`sudo emerge {{[-avuDN|--ask --verbose --update --deep --newuse]}} @world`
|
||||
|
||||
- Resume a failed updated, skipping the failing package:
|
||||
|
||||
@@ -23,16 +23,16 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Install a new package, with confirmation:
|
||||
|
||||
`sudo emerge {{-av|--ask --verbose}} {{package}}`
|
||||
`sudo emerge {{[-av|--ask --verbose]}} {{package}}`
|
||||
|
||||
- Remove a package and its dependencies with confirmation:
|
||||
|
||||
`sudo emerge {{-avc|--ask --verbose --depclean}} {{package}}`
|
||||
`sudo emerge {{[-avc|--ask --verbose --depclean]}} {{package}}`
|
||||
|
||||
- Remove orphaned packages (installed as dependencies but no longer required by any package):
|
||||
|
||||
`sudo emerge {{-avc|--ask --verbose --depclean}}`
|
||||
`sudo emerge {{[-avc|--ask --verbose --depclean]}}`
|
||||
|
||||
- Search the package database for a keyword:
|
||||
|
||||
`emerge {{-S|--searchdesc}} {{keyword}}`
|
||||
`emerge {{[-S|--searchdesc]}} {{keyword}}`
|
||||
|
||||
@@ -14,4 +14,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Print file access events on the mount of the current directory, with timestamps, to `stdout`:
|
||||
|
||||
`sudo fatrace {{-c|--current-mount}} {{-t|--timestamp}}`
|
||||
`sudo fatrace {{[-c|--current-mount]}} {{[-t|--timestamp]}}`
|
||||
|
||||
@@ -14,7 +14,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Run `fuzzel` in dmenu mode:
|
||||
|
||||
`fuzzel {{-d|--dmenu}}`
|
||||
`fuzzel {{[-d|--dmenu]}}`
|
||||
|
||||
- Display a menu of the output of the `ls` command:
|
||||
|
||||
|
||||
@@ -39,4 +39,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Display help:
|
||||
|
||||
`gcrane completion {{shell_name}} {{-h|--help}}`
|
||||
`gcrane completion {{shell_name}} {{[-h|--help]}}`
|
||||
|
||||
@@ -19,4 +19,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Show the current setting of all booleans with explanations:
|
||||
|
||||
`sudo semanage boolean {{-l|--list}}`
|
||||
`sudo semanage boolean {{[-l|--list]}}`
|
||||
|
||||
@@ -10,4 +10,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Create a password hash for GRUB 2 using PBKDF2 and print it to `stdout`:
|
||||
|
||||
`sudo grub2-mkpasswd-pbkdf2 {{-c|--iteration-count}} {{number_of_pbkdf2_iterations}} {{-s|--salt}} {{salt_length}}`
|
||||
`sudo grub2-mkpasswd-pbkdf2 {{[-c|--iteration-count]}} {{number_of_pbkdf2_iterations}} {{[-s|--salt]}} {{salt_length}}`
|
||||
|
||||
@@ -30,7 +30,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Force an operation:
|
||||
|
||||
`hyprpm {{-f|--force}} {{operation}}`
|
||||
`hyprpm {{[-f|--force]}} {{operation}}`
|
||||
|
||||
- List all installed plugins:
|
||||
|
||||
|
||||
@@ -10,32 +10,32 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Display the routing table:
|
||||
|
||||
`ip route show`
|
||||
`ip {{[r|route]}} show`
|
||||
|
||||
- Display the main routing table (same as first example):
|
||||
|
||||
`ip route show {{main|254}}`
|
||||
`ip {{[r|route]}} show {{main|254}}`
|
||||
|
||||
- Display the local routing table:
|
||||
|
||||
`ip route show table {{local|255}}`
|
||||
`ip {{[r|route]}} show table {{local|255}}`
|
||||
|
||||
- Display all routing tables:
|
||||
|
||||
`ip route show table {{all|unspec|0}}`
|
||||
`ip {{[r|route]}} show table {{all|unspec|0}}`
|
||||
|
||||
- List routes from a given device only:
|
||||
|
||||
`ip route show dev {{eth0}}`
|
||||
`ip {{[r|route]}} show dev {{eth0}}`
|
||||
|
||||
- List routes within a given scope:
|
||||
|
||||
`ip route show scope link`
|
||||
`ip {{[r|route]}} show scope link`
|
||||
|
||||
- Display the routing cache:
|
||||
|
||||
`ip route show cache`
|
||||
`ip {{[r|route]}} show cache`
|
||||
|
||||
- Display only IPv6 or IPv4 routes:
|
||||
|
||||
`ip {{-6|-4}} route show`
|
||||
`ip {{-6|-4}} {{[r|route]}} show`
|
||||
|
||||
@@ -16,11 +16,11 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Case-insensitively search only on blank and alphanumeric characters:
|
||||
|
||||
`look {{-f|--ignore-case}} {{-d|--alphanum}} {{prefix}} {{path/to/file}}`
|
||||
`look {{[-f|--ignore-case]}} {{[-d|--alphanum]}} {{prefix}} {{path/to/file}}`
|
||||
|
||||
- Specify a string termination character (space by default):
|
||||
|
||||
`look {{-t|--terminate}} {{,}}`
|
||||
`look {{[-t|--terminate]}} {{,}}`
|
||||
|
||||
- Search in `/usr/share/dict/words` (`--ignore-case` and `--alphanum` are assumed):
|
||||
|
||||
@@ -28,4 +28,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Search in `/usr/share/dict/web2` (`--ignore-case` and `--alphanum` are assumed):
|
||||
|
||||
`look {{-a|--alternative}} {{prefix}}`
|
||||
`look {{[-a|--alternative]}} {{prefix}}`
|
||||
|
||||
@@ -16,11 +16,11 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Create a copy with Unix-style line endings:
|
||||
|
||||
`mac2unix {{-n|--newfile}} {{path/to/file}} {{path/to/new_file}}`
|
||||
`mac2unix {{[-n|--newfile]}} {{path/to/file}} {{path/to/new_file}}`
|
||||
|
||||
- Display file information:
|
||||
|
||||
`mac2unix {{-i|--info}} {{path/to/file}}`
|
||||
`mac2unix {{[-i|--info]}} {{path/to/file}}`
|
||||
|
||||
- Keep/add/remove Byte Order Mark:
|
||||
|
||||
|
||||
@@ -10,23 +10,23 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Connect to ProtonVPN interactively:
|
||||
|
||||
`protonvpn {{c|connect}}`
|
||||
`protonvpn {{[c|connect]}}`
|
||||
|
||||
- Connect to ProtonVPN using the fastest server available:
|
||||
|
||||
`protonvpn {{c|connect}} {{-f|--fastest}}`
|
||||
`protonvpn {{[c|connect]}} {{[-f|--fastest]}}`
|
||||
|
||||
- Connect to ProtonVPN using a specific server with a specific protocol:
|
||||
|
||||
`protonvpn {{c|connect}} {{server_name}} -p {{udp|tcp}}`
|
||||
`protonvpn {{[c|connect]}} {{server_name}} -p {{udp|tcp}}`
|
||||
|
||||
- Connect to ProtonVPN using a random server with a specific protocol:
|
||||
|
||||
`protonvpn {{c|connect}} {{-r|--random}} -p {{udp|tcp}}`
|
||||
`protonvpn {{[c|connect]}} {{[-r|--random]}} -p {{udp|tcp}}`
|
||||
|
||||
- Connect to ProtonVPN using the fastest Tor-supporting server:
|
||||
|
||||
`protonvpn {{c|connect}} --tor`
|
||||
`protonvpn {{[c|connect]}} --tor`
|
||||
|
||||
- Display help:
|
||||
|
||||
|
||||
@@ -15,27 +15,27 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Read objects from `pw-dump` JSON file:
|
||||
|
||||
`pw-dot {{-j|--json}} {{path/to/file.json}}`
|
||||
`pw-dot {{[-j|--json]}} {{path/to/file.json}}`
|
||||
|
||||
- Specify an [o]utput file, showing all object types:
|
||||
|
||||
`pw-dot --output {{path/to/file.dot}} {{-a|--all}}`
|
||||
`pw-dot --output {{path/to/file.dot}} {{[-a|--all]}}`
|
||||
|
||||
- Print `.dot` graph to `stdout`, showing all object properties:
|
||||
|
||||
`pw-dot --output - {{-d|--detail}}`
|
||||
`pw-dot --output - {{[-d|--detail]}}`
|
||||
|
||||
- Generate a graph from a [r]emote instance, showing only linked objects:
|
||||
|
||||
`pw-dot --remote {{remote_name}} {{-s|--smart}}`
|
||||
`pw-dot --remote {{remote_name}} {{[-s|--smart]}}`
|
||||
|
||||
- Lay the graph from left to right, instead of dot's default top to bottom:
|
||||
|
||||
`pw-dot {{-L|--lr}}`
|
||||
`pw-dot {{[-L|--lr]}}`
|
||||
|
||||
- Lay the graph using 90-degree angles in edges:
|
||||
|
||||
`pw-dot {{-9|--90}}`
|
||||
`pw-dot {{[-9|--90]}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
|
||||
@@ -15,19 +15,19 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Show metadata with ID 0 in `settings`:
|
||||
|
||||
`pw-metadata {{-n|--name}} {{settings}} {{0}}`
|
||||
`pw-metadata {{[-n|--name]}} {{settings}} {{0}}`
|
||||
|
||||
- List all available metadata objects:
|
||||
|
||||
`pw-metadata {{-l|--list}}`
|
||||
`pw-metadata {{[-l|--list]}}`
|
||||
|
||||
- Keep running and log the changes to the metadata:
|
||||
|
||||
`pw-metadata {{-m|--monitor}}`
|
||||
`pw-metadata {{[-m|--monitor]}}`
|
||||
|
||||
- Delete all metadata:
|
||||
|
||||
`pw-metadata {{-d|--delete}}`
|
||||
`pw-metadata {{[-d|--delete]}}`
|
||||
|
||||
- Set `log.level` to 1 in `settings`:
|
||||
|
||||
|
||||
@@ -15,4 +15,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Run a command as another user and/or group:
|
||||
|
||||
`run0 {{-u|--user}} {{username|uid}} {{-g|--group}} {{group_name|gid}} {{command}}`
|
||||
`run0 {{[-u|--user]}} {{username|uid}} {{[-g|--group]}} {{group_name|gid}} {{command}}`
|
||||
|
||||
@@ -27,7 +27,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Sign an EFI binary with the created key and save the file to the database:
|
||||
|
||||
`sbctl sign {{-s|--save}} {{path/to/efi_binary}}`
|
||||
`sbctl sign {{[-s|--save]}} {{path/to/efi_binary}}`
|
||||
|
||||
- Re-sign all the saved files:
|
||||
|
||||
|
||||
@@ -11,15 +11,15 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Set or unset a SELinux boolean. Booleans allow the administrator to customize how policy rules affect confined process types (a.k.a domains):
|
||||
|
||||
`sudo semanage boolean {{-m|--modify}} {{-1|--on|-0|--off}} {{haproxy_connect_any}}`
|
||||
`sudo semanage boolean {{[-m|--modify]}} {{-1|--on|-0|--off}} {{haproxy_connect_any}}`
|
||||
|
||||
- Add a user-defined file context labeling rule. File contexts define what files confined domains are allowed to access:
|
||||
|
||||
`sudo semanage fcontext {{-a|--add}} {{-t|--type}} {{samba_share_t}} '/mnt/share(/.*)?'`
|
||||
`sudo semanage fcontext {{[-a|--add]}} {{[-t|--type]}} {{samba_share_t}} '/mnt/share(/.*)?'`
|
||||
|
||||
- Add a user-defined port labeling rule. Port labels define what ports confined domains are allowed to listen on:
|
||||
|
||||
`sudo semanage port {{-a|--add}} {{-t|--type}} {{ssh_port_t}} {{-p|--proto}} {{tcp}} {{22000}}`
|
||||
`sudo semanage port {{[-a|--add]}} {{[-t|--type]}} {{ssh_port_t}} {{[-p|--proto]}} {{tcp}} {{22000}}`
|
||||
|
||||
- Set or unset permissive mode for a confined domain. Per-domain permissive mode allows more granular control compared to `setenforce`:
|
||||
|
||||
@@ -27,8 +27,8 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Output local customizations in the default store:
|
||||
|
||||
`sudo semanage export {{-f|--output_file}} {{path/to/file}}`
|
||||
`sudo semanage export {{[-f|--output_file]}} {{path/to/file}}`
|
||||
|
||||
- Import a file generated by `semanage export` into local customizations (CAREFUL: may remove current customizations!):
|
||||
|
||||
`sudo semanage import {{-f|--input_file}} {{path/to/file}}`
|
||||
`sudo semanage import {{[-f|--input_file]}} {{path/to/file}}`
|
||||
|
||||
@@ -11,12 +11,12 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- List all booleans settings:
|
||||
|
||||
`sudo semanage boolean {{-l|--list}}`
|
||||
`sudo semanage boolean {{[-l|--list]}}`
|
||||
|
||||
- List all user-defined boolean settings without headings:
|
||||
|
||||
`sudo semanage boolean {{-l|--list}} {{-C|--locallist}} {{-n|--noheading}}`
|
||||
`sudo semanage boolean {{[-l|--list]}} {{[-C|--locallist]}} {{[-n|--noheading]}}`
|
||||
|
||||
- Set or unset a boolean persistently:
|
||||
|
||||
`sudo semanage boolean {{-m|--modify}} {{-1|--on|-0|--off}} {{haproxy_connect_any}}`
|
||||
`sudo semanage boolean {{[-m|--modify]}} {{-1|--on|-0|--off}} {{haproxy_connect_any}}`
|
||||
|
||||
@@ -12,7 +12,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- List all process types (a.k.a domains) that are in permissive mode:
|
||||
|
||||
`sudo semanage permissive {{-l|--list}}`
|
||||
`sudo semanage permissive {{[-l|--list]}}`
|
||||
|
||||
- Set or unset permissive mode for a domain:
|
||||
|
||||
|
||||
@@ -11,20 +11,20 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- List all port labeling rules:
|
||||
|
||||
`sudo semanage port {{-l|--list}}`
|
||||
`sudo semanage port {{[-l|--list]}}`
|
||||
|
||||
- List all user-defined port labeling rules without headings:
|
||||
|
||||
`sudo semanage port {{-l|--list}} {{-C|--locallist}} {{-n|--noheading}}`
|
||||
`sudo semanage port {{[-l|--list]}} {{[-C|--locallist]}} {{[-n|--noheading]}}`
|
||||
|
||||
- Add a user-defined rule that assigns a label to a protocol-port pair:
|
||||
|
||||
`sudo semanage port {{-a|--add}} {{-t|--type}} {{ssh_port_t}} {{-p|--proto}} {{tcp}} {{22000}}`
|
||||
`sudo semanage port {{[-a|--add]}} {{[-t|--type]}} {{ssh_port_t}} {{[-p|--proto]}} {{tcp}} {{22000}}`
|
||||
|
||||
- Add a user-defined rule that assigns a label to a protocol-port-range pair:
|
||||
|
||||
`sudo semanage port {{-a|--add}} {{-t|--type}} {{http_port_t}} {{-p|--proto}} {{tcp}} {{80-88}}`
|
||||
`sudo semanage port {{[-a|--add]}} {{[-t|--type]}} {{http_port_t}} {{[-p|--proto]}} {{tcp}} {{80-88}}`
|
||||
|
||||
- Delete a user-defined rule using its protocol-port pair:
|
||||
|
||||
`sudo semanage port {{-d|--delete}} {{-p|--proto}} {{udp}} {{11940}}`
|
||||
`sudo semanage port {{[-d|--delete]}} {{[-p|--proto]}} {{udp}} {{11940}}`
|
||||
|
||||
@@ -27,4 +27,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Set or unset a boolean persistently (alternative method using `semanage-boolean`):
|
||||
|
||||
`sudo semanage boolean {{-m|--modify}} {{-1|--on|-0|--off}} {{haproxy_connect_any}}`
|
||||
`sudo semanage boolean {{[-m|--modify]}} {{-1|--on|-0|--off}} {{haproxy_connect_any}}`
|
||||
|
||||
@@ -14,15 +14,15 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Display scancodes in hexadecimal:
|
||||
|
||||
`sudo showkey {{-s|--scancodes}}`
|
||||
`sudo showkey {{[-s|--scancodes]}}`
|
||||
|
||||
- Display keycodes in decimal (default):
|
||||
|
||||
`sudo showkey {{-k|--keycodes}}`
|
||||
`sudo showkey {{[-k|--keycodes]}}`
|
||||
|
||||
- Display keycodes in ASCII, decimal, and hexadecimal:
|
||||
|
||||
`sudo showkey {{-a|--ascii}}`
|
||||
`sudo showkey {{[-a|--ascii]}}`
|
||||
|
||||
- Exit the program:
|
||||
|
||||
|
||||
@@ -14,12 +14,12 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Display the size of sections in a given object or executable file in [o]ctal:
|
||||
|
||||
`size {{-o|--radix=8}} {{path/to/file}}`
|
||||
`size {{[-o|--radix=8]}} {{path/to/file}}`
|
||||
|
||||
- Display the size of sections in a given object or executable file in [d]ecimal:
|
||||
|
||||
`size {{-d|--radix=10}} {{path/to/file}}`
|
||||
`size {{[-d|--radix=10]}} {{path/to/file}}`
|
||||
|
||||
- Display the size of sections in a given object or executable file in he[x]adecimal:
|
||||
|
||||
`size {{-x|--radix=16}} {{path/to/file}}`
|
||||
`size {{[-x|--radix=16]}} {{path/to/file}}`
|
||||
|
||||
@@ -10,32 +10,32 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Show all TCP/UDP/RAW/UNIX sockets:
|
||||
|
||||
`ss -a {{-t|-u|-w|-x}}`
|
||||
`ss {{[-a|--all]}} {{-t|-u|-w|-x}}`
|
||||
|
||||
- Filter TCP sockets by states, only/exclude:
|
||||
|
||||
`ss {{state/exclude}} {{bucket/big/connected/synchronized/...}}`
|
||||
`ss {{state|exclude}} {{bucket|big|connected|synchronized|...}}`
|
||||
|
||||
- Show all TCP sockets connected to the local HTTPS port (443):
|
||||
|
||||
`ss -t src :{{443}}`
|
||||
`ss {{[-t|--tcp]}} src :{{443}}`
|
||||
|
||||
- Show all TCP sockets listening on the local 8080 port:
|
||||
|
||||
`ss -lt src :{{8080}}`
|
||||
`ss {{[-lt|--listening --tcp]}} src :{{8080}}`
|
||||
|
||||
- Show all TCP sockets along with processes connected to a remote SSH port:
|
||||
|
||||
`ss -pt dst :{{ssh}}`
|
||||
`ss {{[-pt|--processes --tcp]}} dst :{{ssh}}`
|
||||
|
||||
- Show all UDP sockets connected on specific source and destination ports:
|
||||
|
||||
`ss -u 'sport == :{{source_port}} and dport == :{{destination_port}}'`
|
||||
`ss {{[-u|--udp]}} 'sport == :{{source_port}} and dport == :{{destination_port}}'`
|
||||
|
||||
- Show all TCP IPv4 sockets locally connected on the subnet 192.168.0.0/16:
|
||||
|
||||
`ss -4t src {{192.168/16}}`
|
||||
`ss {{[-4t|--ipv4 --tcp]}} src {{192.168/16}}`
|
||||
|
||||
- Kill IPv4 or IPv6 Socket Connection with destination IP 192.168.1.17 and destination port 8080:
|
||||
|
||||
`ss --kill dst {{192.168.1.17}} dport = {{8080}}`
|
||||
`ss {{[-K|--kill]}} dst {{192.168.1.17}} dport = {{8080}}`
|
||||
|
||||
@@ -10,28 +10,28 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Add constant network delay to outbound packages:
|
||||
|
||||
`tc qdisc add dev {{eth0}} root netem delay {{delay_in_milliseconds}}ms`
|
||||
`sudo tc {{[q|qdisc]}} {{[a|add]}} dev {{eth0}} root netem delay {{delay_in_milliseconds}}ms`
|
||||
|
||||
- Add normal distributed network delay to outbound packages:
|
||||
|
||||
`tc qdisc add dev {{eth0}} root netem delay {{mean_delay_ms}}ms {{delay_std_ms}}ms`
|
||||
`sudo tc {{[q|qdisc]}} {{[a|add]}} dev {{eth0}} root netem delay {{mean_delay_ms}}ms {{delay_std_ms}}ms`
|
||||
|
||||
- Add package corruption/loss/duplication to a portion of packages:
|
||||
|
||||
`tc qdisc add dev {{eth0}} root netem {{corruption|loss|duplication}} {{effect_percentage}}%`
|
||||
`sudo tc {{[q|qdisc]}} {{[a|add]}} dev {{eth0}} root netem {{corruption|loss|duplication}} {{effect_percentage}}%`
|
||||
|
||||
- Limit bandwidth, burst rate and max latency:
|
||||
|
||||
`tc qdisc add dev eth0 root tbf rate {{max_bandwidth_mb}}mbit burst {{max_burst_rate_kb}}kbit latency {{max_latency_before_drop_ms}}ms`
|
||||
`sudo tc {{[q|qdisc]}} {{[a|add]}} dev eth0 root tbf rate {{max_bandwidth_mb}}mbit burst {{max_burst_rate_kb}}kbit latency {{max_latency_before_drop_ms}}ms`
|
||||
|
||||
- Show active traffic control policies:
|
||||
|
||||
`tc qdisc show dev {{eth0}}`
|
||||
`tc {{[q|qdisc]}} {{[s|show]}} dev {{eth0}}`
|
||||
|
||||
- Delete all traffic control rules:
|
||||
|
||||
`tc qdisc del dev {{eth0}}`
|
||||
`sudo tc {{[q|qdisc]}} {{[d|delete]}} dev {{eth0}}`
|
||||
|
||||
- Change traffic control rule:
|
||||
|
||||
`tc qdisc change dev {{eth0}} root netem {{policy}} {{policy_parameters}}`
|
||||
`sudo tc {{[q|qdisc]}} {{[c|change]}} dev {{eth0}} root netem {{policy}} {{policy_parameters}}`
|
||||
|
||||
@@ -23,11 +23,11 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Show configuration:
|
||||
|
||||
`sudo tlp-stat {{-c|--config}}`
|
||||
`sudo tlp-stat {{[-c|--config]}}`
|
||||
|
||||
- Monitor [p]ower supply `udev` [ev]ents:
|
||||
|
||||
`sudo tlp-stat {{-P|--pev}}`
|
||||
`sudo tlp-stat {{[-P|--pev]}}`
|
||||
|
||||
- Show [p]ower [sup]ply diagonistics:
|
||||
|
||||
@@ -35,8 +35,8 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Show [temp]eratures and fan speed:
|
||||
|
||||
`sudo tlp-stat {{-t|--temp}}`
|
||||
`sudo tlp-stat {{[-t|--temp]}}`
|
||||
|
||||
- Show general system information:
|
||||
|
||||
`sudo tlp-stat {{-s|--system}}`
|
||||
`sudo tlp-stat {{[-s|--system]}}`
|
||||
|
||||
@@ -10,24 +10,24 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Print the volume label of a filesystem:
|
||||
|
||||
`tune.exfat {{-l|--print-label}} {{/dev/sdXY}}`
|
||||
`tune.exfat {{[-l|--print-label]}} {{/dev/sdXY}}`
|
||||
|
||||
- Set the volume label of a filesystem:
|
||||
|
||||
`tune.exfat {{-L|--set-label}} {{new_label}} {{/dev/sdXY}}`
|
||||
`tune.exfat {{[-L|--set-label]}} {{new_label}} {{/dev/sdXY}}`
|
||||
|
||||
- Print the volume GUID of a filesystem:
|
||||
|
||||
`tune.exfat {{-u|--print-guid}} {{/dev/sdXY}}`
|
||||
`tune.exfat {{[-u|--print-guid]}} {{/dev/sdXY}}`
|
||||
|
||||
- Set the volume GUID of a filesystem:
|
||||
|
||||
`tune.exfat {{-U|--set-guid}} {{new_guid}} {{/dev/sdXY}}`
|
||||
`tune.exfat {{[-U|--set-guid]}} {{new_guid}} {{/dev/sdXY}}`
|
||||
|
||||
- Print the volume serial of a filesystem:
|
||||
|
||||
`tune.exfat {{-i|--print-serial}} {{/dev/sdXY}}`
|
||||
`tune.exfat {{[-i|--print-serial]}} {{/dev/sdXY}}`
|
||||
|
||||
- Set the volume serial of a filesystem:
|
||||
|
||||
`tune.exfat {{-I|--set-serial}} {{new_serial}} {{/dev/sdXY}}`
|
||||
`tune.exfat {{[-I|--set-serial]}} {{new_serial}} {{/dev/sdXY}}`
|
||||
|
||||
@@ -16,11 +16,11 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Create a copy with DOS-style line endings:
|
||||
|
||||
`unix2dos {{-n|--newfile}} {{path/to/file}} {{path/to/new_file}}`
|
||||
`unix2dos {{[-n|--newfile]}} {{path/to/file}} {{path/to/new_file}}`
|
||||
|
||||
- Display file information:
|
||||
|
||||
`unix2dos {{-i|--info}} {{path/to/file}}`
|
||||
`unix2dos {{[-i|--info]}} {{path/to/file}}`
|
||||
|
||||
- Keep/add/remove Byte Order Mark:
|
||||
|
||||
|
||||
@@ -16,11 +16,11 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Create a copy with macOS-style line endings:
|
||||
|
||||
`unix2mac {{-n|--newfile}} {{path/to/file}} {{path/to/new_file}}`
|
||||
`unix2mac {{[-n|--newfile]}} {{path/to/file}} {{path/to/new_file}}`
|
||||
|
||||
- Display file information:
|
||||
|
||||
`unix2mac {{-i|--info}} {{path/to/file}}`
|
||||
`unix2mac {{[-i|--info]}} {{path/to/file}}`
|
||||
|
||||
- Keep/add/remove Byte Order Mark:
|
||||
|
||||
|
||||
@@ -32,4 +32,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Display help:
|
||||
|
||||
`unopkg {{-h|--help}}`
|
||||
`unopkg {{[-h|--help]}}`
|
||||
|
||||
@@ -15,24 +15,24 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Create a new user with the specified user ID:
|
||||
|
||||
`sudo useradd {{-u|--uid}} {{id}} {{username}}`
|
||||
`sudo useradd {{[-u|--uid]}} {{id}} {{username}}`
|
||||
|
||||
- Create a new user with the specified shell:
|
||||
|
||||
`sudo useradd {{-s|--shell}} {{path/to/shell}} {{username}}`
|
||||
`sudo useradd {{[-s|--shell]}} {{path/to/shell}} {{username}}`
|
||||
|
||||
- Create a new user belonging to additional groups (mind the lack of whitespace):
|
||||
|
||||
`sudo useradd {{-G|--groups}} {{group1,group2,...}} {{username}}`
|
||||
`sudo useradd {{[-G|--groups]}} {{group1,group2,...}} {{username}}`
|
||||
|
||||
- Create a new user with the default home directory:
|
||||
|
||||
`sudo useradd {{-m|--create-home}} {{username}}`
|
||||
`sudo useradd {{[-m|--create-home]}} {{username}}`
|
||||
|
||||
- Create a new user with the home directory filled by template directory files:
|
||||
|
||||
`sudo useradd {{-k|--skel}} {{path/to/template_directory}} {{-m|--create-home}} {{username}}`
|
||||
`sudo useradd {{[-k|--skel]}} {{path/to/template_directory}} {{[-m|--create-home]}} {{username}}`
|
||||
|
||||
- Create a new system user without the home directory:
|
||||
|
||||
`sudo useradd {{-r|--system}} {{username}}`
|
||||
`sudo useradd {{[-r|--system]}} {{username}}`
|
||||
|
||||
@@ -15,8 +15,8 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Remove a user in other root directory:
|
||||
|
||||
`sudo userdel {{-R|--root}} {{path/to/other/root}} {{username}}`
|
||||
`sudo userdel {{[-R|--root]}} {{path/to/other/root}} {{username}}`
|
||||
|
||||
- Remove a user along with the home directory and mail spool:
|
||||
|
||||
`sudo userdel {{-r|--remove}} {{username}}`
|
||||
`sudo userdel {{[-r|--remove]}} {{username}}`
|
||||
|
||||
@@ -11,20 +11,20 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Change a username:
|
||||
|
||||
`sudo usermod {{-l|--login}} {{new_username}} {{username}}`
|
||||
`sudo usermod {{[-l|--login]}} {{new_username}} {{username}}`
|
||||
|
||||
- Change a user ID:
|
||||
|
||||
`sudo usermod {{-u|--uid}} {{id}} {{username}}`
|
||||
`sudo usermod {{[-u|--uid]}} {{id}} {{username}}`
|
||||
|
||||
- Change a user shell:
|
||||
|
||||
`sudo usermod {{-s|--shell}} {{path/to/shell}} {{username}}`
|
||||
`sudo usermod {{[-s|--shell]}} {{path/to/shell}} {{username}}`
|
||||
|
||||
- Add a user to supplementary groups (mind the lack of whitespace):
|
||||
|
||||
`sudo usermod {{-a|--append}} {{-G|--groups}} {{group1,group2,...}} {{username}}`
|
||||
`sudo usermod {{[-a|--append]}} {{[-G|--groups]}} {{group1,group2,...}} {{username}}`
|
||||
|
||||
- Change a user home directory:
|
||||
|
||||
`sudo usermod {{-m|--move-home}} {{-d|--home}} {{path/to/new_home}} {{username}}`
|
||||
`sudo usermod {{[-m|--move-home]}} {{[-d|--home]}} {{path/to/new_home}} {{username}}`
|
||||
|
||||
@@ -19,7 +19,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Print al[L] available information about each file in the archive (it's very long):
|
||||
|
||||
`lsar {{-L|--verylong}} {{path/to/archive}}`
|
||||
`lsar {{[-L|--verylong]}} {{path/to/archive}}`
|
||||
|
||||
- Test the integrity of the files in the archive (if possible):
|
||||
|
||||
|
||||
@@ -15,11 +15,11 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Start `mitmproxy` bound to a custom address and port:
|
||||
|
||||
`mitmproxy --listen-host {{ip_address}} {{-p|--listen-port}} {{port}}`
|
||||
`mitmproxy --listen-host {{ip_address}} {{[-p|--listen-port]}} {{port}}`
|
||||
|
||||
- Start `mitmproxy` using a script to process traffic:
|
||||
|
||||
`mitmproxy {{-s|--scripts}} {{path/to/script.py}}`
|
||||
`mitmproxy {{[-s|--scripts]}} {{path/to/script.py}}`
|
||||
|
||||
- Export the logs with SSL/TLS master keys to external programs (wireshark, etc.):
|
||||
|
||||
@@ -27,7 +27,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Specify mode of operation of the proxy server (`regular` is the default):
|
||||
|
||||
`mitmproxy {{-m|--mode}} {{regular|transparent|socks5|...}}`
|
||||
`mitmproxy {{[-m|--mode]}} {{regular|transparent|socks5|...}}`
|
||||
|
||||
- Set the console layout:
|
||||
|
||||
|
||||
@@ -14,12 +14,12 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Run a port scan on targets:
|
||||
|
||||
`nettacker {{-m|--modules}} port_scan {{-i|--targets}} {{192.168.0.1/24,owasp.org,scanme.org,...}}`
|
||||
`nettacker {{[-m|--modules]}} port_scan {{[-i|--targets]}} {{192.168.0.1/24,owasp.org,scanme.org,...}}`
|
||||
|
||||
- Run a port scan on specific ports and targets listed in a file (newline separated):
|
||||
|
||||
`nettacker {{-m|--modules}} port_scan {{-g|--ports}} {{22,80,443,...}} {{-l|--targets-list}} {{path/to/targets.txt}}`
|
||||
`nettacker {{[-m|--modules]}} port_scan {{[-g|--ports]}} {{22,80,443,...}} {{[-l|--targets-list]}} {{path/to/targets.txt}}`
|
||||
|
||||
- Run ping test before scan and then run multiple scan types on target:
|
||||
|
||||
`nettacker --ping-before-scan {{-m|--modules}} {{port_scan,subdomain_scan,waf_scan,...}} {{-g|--ports}} {{80,443}} {{-i|--targets}} {{owasp.org}}`
|
||||
`nettacker --ping-before-scan {{[-m|--modules]}} {{port_scan,subdomain_scan,waf_scan,...}} {{[-g|--ports]}} {{80,443}} {{[-i|--targets]}} {{owasp.org}}`
|
||||
|
||||
@@ -19,7 +19,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Force an automatic fix to dependencies with vulnerabilities:
|
||||
|
||||
`npm audit fix {{-f|--force}}`
|
||||
`npm audit fix {{[-f|--force]}}`
|
||||
|
||||
- Update the lock file without modifying the `node_modules` directory:
|
||||
|
||||
|
||||
@@ -22,4 +22,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Download the latest version of a package and install it globally:
|
||||
|
||||
`npm install {{-g|--global}} {{package_name}}`
|
||||
`npm install {{[-g|--global]}} {{package_name}}`
|
||||
|
||||
@@ -11,7 +11,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Directly run your command:
|
||||
|
||||
`ntfyme exec {{-c|--cmd}} {{command}}`
|
||||
`ntfyme exec {{[-c|--cmd]}} {{command}}`
|
||||
|
||||
- Pipe your command and run:
|
||||
|
||||
@@ -23,7 +23,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Track and terminate the process after prolonged suspension:
|
||||
|
||||
`ntfyme exec {{-t|--track-process}} {{-c|--cmd}} {{command}}`
|
||||
`ntfyme exec {{-t|--track-process}} {{[-c|--cmd]}} {{command}}`
|
||||
|
||||
- Setup the tool configurations interactively:
|
||||
|
||||
|
||||
@@ -34,8 +34,8 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Ignore the specified files and directories:
|
||||
|
||||
`onefetch {{-e|--exclude}} {{path/to/file_or_directory|regular_expression}}`
|
||||
`onefetch {{[-e|--exclude]}} {{path/to/file_or_directory|regular_expression}}`
|
||||
|
||||
- Only detect languages from the specified categories (default: programming and markup):
|
||||
|
||||
`onefetch {{-T|--type}} {{programming|markup|prose|data}}`
|
||||
`onefetch {{[-T|--type]}} {{programming|markup|prose|data}}`
|
||||
|
||||
@@ -10,15 +10,15 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Convert file to PDF (the output format is determined by file extension):
|
||||
|
||||
`pandoc {{path/to/input.md}} {{-o|--output}} {{path/to/output.pdf}}`
|
||||
`pandoc {{path/to/input.md}} {{[-o|--output]}} {{path/to/output.pdf}}`
|
||||
|
||||
- Convert to a standalone file with the appropriate headers/footers (for LaTeX, HTML, etc.):
|
||||
|
||||
`pandoc {{path/to/input.md}} {{-s|--standalone}} {{-o|--output}} {{path/to/output.html}}`
|
||||
`pandoc {{path/to/input.md}} {{[-s|--standalone]}} {{[-o|--output]}} {{path/to/output.html}}`
|
||||
|
||||
- Manually specify format detection and conversion (overriding automatic format detection using filename extension or when filename extension is missing altogether):
|
||||
|
||||
`pandoc {{-f|-r|--from|--read}} {{docx|...}} {{path/to/input}} {{-t|-w|--to|--write}} {{pdf|...}} {{-o|--output}} {{path/to/output}}`
|
||||
`pandoc {{-f|-r|--from|--read}} {{docx|...}} {{path/to/input}} {{-t|-w|--to|--write}} {{pdf|...}} {{[-o|--output]}} {{path/to/output}}`
|
||||
|
||||
- List all supported input formats:
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Dump all databases using a specific username:
|
||||
|
||||
`pg_dumpall {{-U|--username}} {{username}} > {{path/to/file.sql}}`
|
||||
`pg_dumpall {{[-U|--username]}} {{username}} > {{path/to/file.sql}}`
|
||||
|
||||
- Same as above, customize host and port:
|
||||
|
||||
@@ -22,7 +22,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Dump only database data into an SQL-script file:
|
||||
|
||||
`pg_dumpall {{-a|--data-only}} > {{path/to/file.sql}}`
|
||||
`pg_dumpall {{[-a|--data-only]}} > {{path/to/file.sql}}`
|
||||
|
||||
- Dump only schema (data definitions) into an SQL-script file:
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Start all containers using an alternate compose file:
|
||||
|
||||
`podman-compose {{-f|--file}} {{path/to/file.yaml}} up`
|
||||
`podman-compose {{[-f|--file]}} {{path/to/file.yaml}} up`
|
||||
|
||||
- Stop all running containers:
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user