Update cheatsheets

This commit is contained in:
ivuorinen
2024-04-19 00:13:37 +00:00
parent 7de5092ed1
commit 48aff03a74
104 changed files with 150 additions and 146 deletions

View File

@@ -18,11 +18,11 @@ source: https://github.com/tldr-pages/tldr.git
- Convert specific Python 2 language features to Python 3:
`2to3 --write {{path/to/file.py}} --fix={{raw_input}} --fix={{print}}`
`2to3 --write {{path/to/file.py}} --fix {{raw_input}} --fix {{print}}`
- Convert all Python 2 language features except the specified ones to Python 3:
`2to3 --write {{path/to/file.py}} --nofix={{has_key}} --nofix={{isinstance}}`
`2to3 --write {{path/to/file.py}} --nofix {{has_key}} --nofix {{isinstance}}`
- List all available language features that can be converted from Python 2 to Python 3:
@@ -30,8 +30,8 @@ source: https://github.com/tldr-pages/tldr.git
- Convert all Python 2 files in a directory to Python 3:
`2to3 --output-dir={{path/to/python3_directory}} --write-unchanged-files --nobackups {{path/to/python2_directory}}`
`2to3 --output-dir {{path/to/python3_directory}} --write-unchanged-files --nobackups {{path/to/python2_directory}}`
- Run 2to3 with multiple threads:
`2to3 --processes={{4}} --output-dir={{path/to/python3_directory}} --write --nobackups --no-diff {{path/to/python2_directory}}`
`2to3 --processes {{4}} --output-dir {{path/to/python3_directory}} --write --nobackups --no-diff {{path/to/python2_directory}}`

View File

@@ -23,11 +23,11 @@ source: https://github.com/tldr-pages/tldr.git
- Limit search to files of a specific type:
`ack --type={{ruby}} "{{search_pattern}}"`
`ack --type {{ruby}} "{{search_pattern}}"`
- Do not search in files of a specific type:
`ack --type=no{{ruby}} "{{search_pattern}}"`
`ack --type no{{ruby}} "{{search_pattern}}"`
- Count the total number of matches found:

View File

@@ -30,11 +30,11 @@ source: https://github.com/tldr-pages/tldr.git
- Display logs for a specific PID:
`adb logcat --pid={{pid}}`
`adb logcat --pid {{pid}}`
- Display logs for the process of a specific package:
`adb logcat --pid=$(adb shell pidof -s {{package}})`
`adb logcat --pid $(adb shell pidof -s {{package}})`
- Color the log (usually use with filters):

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# alias
> Creates aliases -- words that are replaced by a command string.
> Create aliases - words that are replaced by a command string.
> Aliases expire with the current shell session unless defined in the shell's configuration file, e.g. `~/.bashrc`.
> More information: <https://tldp.org/LDP/abs/html/aliases.html>.

View File

@@ -22,8 +22,8 @@ source: https://github.com/tldr-pages/tldr.git
- Display logs for a specific PID:
`logcat --pid={{pid}}`
`logcat --pid {{pid}}`
- Display logs for the process of a specific package:
`logcat --pid=$(pidof -s {{package}})`
`logcat --pid $(pidof -s {{package}})`

View File

@@ -14,11 +14,11 @@ source: https://github.com/tldr-pages/tldr.git
- Create a new encrypted vault file using a vault key file to encrypt it:
`ansible-vault create --vault-password-file={{password_file}} {{vault_file}}`
`ansible-vault create --vault-password-file {{password_file}} {{vault_file}}`
- Encrypt an existing file using an optional password file:
`ansible-vault encrypt --vault-password-file={{password_file}} {{vault_file}}`
`ansible-vault encrypt --vault-password-file {{password_file}} {{vault_file}}`
- Encrypt a string using Ansible's encrypted string format, displaying interactive prompts:
@@ -26,8 +26,8 @@ source: https://github.com/tldr-pages/tldr.git
- View an encrypted file, using a password file to decrypt:
`ansible-vault view --vault-password-file={{password_file}} {{vault_file}}`
`ansible-vault view --vault-password-file {{password_file}} {{vault_file}}`
- Re-key already encrypted vault file with a new password file:
`ansible-vault rekey --vault-password-file={{old_password_file}} --new-vault-password-file={{new_password_file}} {{vault_file}}`
`ansible-vault rekey --vault-password-file {{old_password_file}} --new-vault-password-file {{new_password_file}} {{vault_file}}`

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# apg
> Creates arbitrarily complex random passwords.
> Create arbitrarily complex random passwords.
> More information: <https://manned.org/apg>.
- Create random passwords (default password length is 8):

View File

@@ -15,7 +15,7 @@ source: https://github.com/tldr-pages/tldr.git
- Download a file from a URI with a specific output name:
`aria2c --out={{path/to/file}} "{{url}}"`
`aria2c --out {{path/to/file}} "{{url}}"`
- Download multiple different files in parallel:
@@ -27,16 +27,16 @@ source: https://github.com/tldr-pages/tldr.git
- Download the URIs listed in a file with a specific number of parallel downloads:
`aria2c --input-file={{path/to/file}} --max-concurrent-downloads={{number_of_downloads}}`
`aria2c --input-file {{path/to/file}} --max-concurrent-downloads {{number_of_downloads}}`
- Download with multiple connections:
`aria2c --split={{number_of_connections}} "{{url}}"`
`aria2c --split {{number_of_connections}} "{{url}}"`
- FTP download with username and password:
`aria2c --ftp-user={{username}} --ftp-passwd={{password}} "{{url}}"`
`aria2c --ftp-user {{username}} --ftp-passwd {{password}} "{{url}}"`
- Limit download speed in bytes/s:
`aria2c --max-download-limit={{speed}} "{{url}}"`
`aria2c --max-download-limit {{speed}} "{{url}}"`

View File

@@ -14,7 +14,7 @@ source: https://github.com/tldr-pages/tldr.git
- Convert a specific `.adoc` file to HTML and link a CSS stylesheet:
`asciidoctor -a stylesheet={{path/to/stylesheet.css}} {{path/to/file.adoc}}`
`asciidoctor -a stylesheet {{path/to/stylesheet.css}} {{path/to/file.adoc}}`
- Convert a specific `.adoc` file to embeddable HTML, removing everything except the body:
@@ -22,4 +22,4 @@ source: https://github.com/tldr-pages/tldr.git
- Convert a specific `.adoc` file to a PDF using the `asciidoctor-pdf` library:
`asciidoctor --backend={{pdf}} --require={{asciidoctor-pdf}} {{path/to/file.adoc}}`
`asciidoctor --backend {{pdf}} --require {{asciidoctor-pdf}} {{path/to/file.adoc}}`

View File

@@ -18,4 +18,4 @@ source: https://github.com/tldr-pages/tldr.git
- Generate a configuration script from the specified template (even if the input file has not changed) and write the output to a file:
`autoconf --force --output={{outfile}} {{template-file}}`
`autoconf --force --output {{outfile}} {{template-file}}`

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# aws glue
> CLI for AWS Glue.
> Defines the public endpoint for the AWS Glue service.
> Define the public endpoint for the AWS Glue service.
> More information: <https://docs.aws.amazon.com/cli/latest/reference/glue/>.
- List jobs:

View File

@@ -18,7 +18,7 @@ source: https://github.com/tldr-pages/tldr.git
- Run all tests from the specified suite:
`behat --suite={{suite_name}}`
`behat --suite {{suite_name}}`
- Run tests with a specific output formatter:

View File

@@ -26,7 +26,7 @@ source: https://github.com/tldr-pages/tldr.git
- Run the profiler and collect 10 samples:
`blackfire --samples={{10}} run {{php path/to/file.php}}`
`blackfire --samples {{10}} run {{php path/to/file.php}}`
- Run the profiler and output results as JSON:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# borg
> Deduplicating backup tool.
> Creates local or remote backups that are mountable as filesystems.
> Create local or remote backups that are mountable as filesystems.
> More information: <https://borgbackup.readthedocs.io/en/stable/usage/general.html>.
- Initialize a (local) repository:

View File

@@ -26,7 +26,7 @@ source: https://github.com/tldr-pages/tldr.git
- Batch load data from a specific file in formats such as CSV, JSON, Parquet, and Avro to a table:
`bq load --location={{location}} --source_format={{CSV|JSON|PARQUET|AVRO}} {{dataset}}.{{table}} {{path_to_source}}`
`bq load --location {{location}} --source_format {{CSV|JSON|PARQUET|AVRO}} {{dataset}}.{{table}} {{path_to_source}}`
- Copy one table to another:

View File

@@ -14,7 +14,7 @@ source: https://github.com/tldr-pages/tldr.git
- Install packages from a specific Brewfile at a specific path:
`brew bundle --file={{path/to/file}}`
`brew bundle --file {{path/to/file}}`
- Create a Brewfile from all installed packages:

View File

@@ -23,4 +23,4 @@ source: https://github.com/tldr-pages/tldr.git
- Browse for both SSH and VNC servers in a specified domain:
`bshell --domain={{domain}}`
`bshell --domain {{domain}}`

View File

@@ -23,4 +23,4 @@ source: https://github.com/tldr-pages/tldr.git
- Browse for SSH servers in a specified domain:
`bssh --domain={{domain}}`
`bssh --domain {{domain}}`

View File

@@ -15,28 +15,28 @@ source: https://github.com/tldr-pages/tldr.git
- Generate APKs from an application bundle (prompts for keystore password):
`bundletool build-apks --bundle={{path/to/bundle.aab}} --ks={{path/to/key.keystore}} --ks-key-alias={{key_alias}} --output={{path/to/file.apks}}`
`bundletool build-apks --bundle {{path/to/bundle.aab}} --ks {{path/to/key.keystore}} --ks-key-alias {{key_alias}} --output {{path/to/file.apks}}`
- Generate APKs from an application bundle giving the keystore password:
`bundletool build-apks --bundle={{path/to/bundle.aab}} --ks={{path/to/key.keystore}} --ks-key-alias={{key_alias}} ks-pass={{pass:the_password}} --output={{path/to/file.apks}}`
`bundletool build-apks --bundle {{path/to/bundle.aab}} --ks {{path/to/key.keystore}} --ks-key-alias {{key_alias}} ks-pass {{pass:the_password}} --output {{path/to/file.apks}}`
- Generate APKs including only one single APK for universal usage:
`bundletool build-apks --bundle={{path/to/bundle.aab}} --mode={{universal}} --ks={{path/to/key.keystore}} --ks-key-alias={{key_alias}} --output={{path/to/file.apks}}`
`bundletool build-apks --bundle {{path/to/bundle.aab}} --mode {{universal}} --ks {{path/to/key.keystore}} --ks-key-alias {{key_alias}} --output {{path/to/file.apks}}`
- Install the right combination of APKs to an emulator or device:
`bundletool install-apks --apks={{path/to/file.apks}}`
`bundletool install-apks --apks {{path/to/file.apks}}`
- Estimate the download size of an application:
`bundletool get-size total --apks={{path/to/file.apks}}`
`bundletool get-size total --apks {{path/to/file.apks}}`
- Generate a device specification JSON file for an emulator or device:
`bundletool get-device-spec --output={{path/to/file.json}}`
`bundletool get-device-spec --output {{path/to/file.json}}`
- Verify a bundle and display detailed information about it:
`bundletool validate --bundle={{path/to/bundle.aab}}`
`bundletool validate --bundle {{path/to/bundle.aab}}`

View File

@@ -10,28 +10,28 @@ source: https://github.com/tldr-pages/tldr.git
- Display the `AndroidManifest.xml` of the base module:
`bundletool dump manifest --bundle={{path/to/bundle.aab}}`
`bundletool dump manifest --bundle {{path/to/bundle.aab}}`
- Display a specific value from the `AndroidManifest.xml` using XPath:
`bundletool dump manifest --bundle={{path/to/bundle.aab}} --xpath={{/manifest/@android:versionCode}}`
`bundletool dump manifest --bundle {{path/to/bundle.aab}} --xpath {{/manifest/@android:versionCode}}`
- Display the `AndroidManifest.xml` of a specific module:
`bundletool dump manifest --bundle={{path/to/bundle.aab}} --module={{name}}`
`bundletool dump manifest --bundle {{path/to/bundle.aab}} --module {{name}}`
- Display all the resources in the application bundle:
`bundletool dump resources --bundle={{path/to/bundle.aab}}`
`bundletool dump resources --bundle {{path/to/bundle.aab}}`
- Display the configuration for a specific resource:
`bundletool dump resources --bundle={{path/to/bundle.aab}} --resource={{type/name}}`
`bundletool dump resources --bundle {{path/to/bundle.aab}} --resource {{type/name}}`
- Display the configuration and values for a specific resource using the ID:
`bundletool dump resources --bundle={{path/to/bundle.aab}} --resource={{0x7f0e013a}} --values`
`bundletool dump resources --bundle {{path/to/bundle.aab}} --resource {{0x7f0e013a}} --values`
- Display the contents of the bundle configuration file:
`bundletool dump config --bundle={{path/to/bundle.aab}}`
`bundletool dump config --bundle {{path/to/bundle.aab}}`

View File

@@ -10,4 +10,4 @@ source: https://github.com/tldr-pages/tldr.git
- Verify a bundle and display detailed information about it:
`bundletool validate --bundle={{path/to/bundle.aab}}`
`bundletool validate --bundle {{path/to/bundle.aab}}`

View File

@@ -23,4 +23,4 @@ source: https://github.com/tldr-pages/tldr.git
- Browse for VNC servers in a specified domain:
`bvnc --domain={{domain}}`
`bvnc --domain {{domain}}`

View File

@@ -22,4 +22,4 @@ source: https://github.com/tldr-pages/tldr.git
- Change the owner group of a file/directory to match a reference file:
`chgrp --reference={{path/to/reference_file}} {{path/to/file_or_directory}}`
`chgrp --reference {{path/to/reference_file}} {{path/to/file_or_directory}}`

View File

@@ -30,4 +30,4 @@ source: https://github.com/tldr-pages/tldr.git
- Change the owner of a file/directory to match a reference file:
`chown --reference={{path/to/reference_file}} {{path/to/file_or_directory}}`
`chown --reference {{path/to/reference_file}} {{path/to/file_or_directory}}`

View File

@@ -18,7 +18,7 @@ source: https://github.com/tldr-pages/tldr.git
- Format a file using a predefined coding style:
`clang-format --style={{LLVM|GNU|Google|Chromium|Microsoft|Mozilla|WebKit}} {{path/to/file}}`
`clang-format --style {{LLVM|GNU|Google|Chromium|Microsoft|Mozilla|WebKit}} {{path/to/file}}`
- Format a file using the `.clang-format` file in one of the parent directories of the source file:
@@ -26,4 +26,4 @@ source: https://github.com/tldr-pages/tldr.git
- Generate a custom `.clang-format` file:
`clang-format --style={{LLVM|GNU|Google|Chromium|Microsoft|Mozilla|WebKit}} --dump-config > {{.clang-format}}`
`clang-format --style {{LLVM|GNU|Google|Chromium|Microsoft|Mozilla|WebKit}} --dump-config > {{.clang-format}}`

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# conan frogarian
> Displays the conan frogarian.
> Display the conan frogarian.
> More information: <https://docs.conan.io/>.
- Display the conan frogarian:

View File

@@ -19,7 +19,7 @@ source: https://github.com/tldr-pages/tldr.git
- Check a given file, specifying which tests to perform (by default only errors are shown):
`cppcheck --enable={{error|warning|style|performance|portability|information|all}} {{path/to/file.cpp}}`
`cppcheck --enable {{error|warning|style|performance|portability|information|all}} {{path/to/file.cpp}}`
- List available tests:
@@ -27,7 +27,7 @@ source: https://github.com/tldr-pages/tldr.git
- Check a given file, ignoring specific tests:
`cppcheck --suppress={{test_id1}} --suppress={{test_id2}} {{path/to/file.cpp}}`
`cppcheck --suppress {{test_id1}} --suppress {{test_id2}} {{path/to/file.cpp}}`
- Check the current directory, providing paths for include files located outside it (e.g. external libraries):
@@ -35,4 +35,4 @@ source: https://github.com/tldr-pages/tldr.git
- Check a Microsoft Visual Studio project (`*.vcxproj`) or solution (`*.sln`):
`cppcheck --project={{path/to/project.sln}}`
`cppcheck --project {{path/to/project.sln}}`

View File

@@ -14,7 +14,7 @@ source: https://github.com/tldr-pages/tldr.git
- Run on a project where the headers are in the `inc1/` and `inc2/` directories:
`cppclean {{path/to/project}} --include-path={{inc1}} --include-path={{inc2}}`
`cppclean {{path/to/project}} --include-path {{inc1}} --include-path {{inc2}}`
- Run on a specific file `main.cpp`:
@@ -22,4 +22,4 @@ source: https://github.com/tldr-pages/tldr.git
- Run on the current directory, excluding the "build" directory:
`cppclean {{.}} --exclude={{build}}`
`cppclean {{.}} --exclude {{build}}`

View File

@@ -14,8 +14,8 @@ source: https://github.com/tldr-pages/tldr.git
- Create a database owned by a specific user with a description:
`createdb --owner={{username}} {{database_name}} '{{description}}'`
`createdb --owner {{username}} {{database_name}} '{{description}}'`
- Create a database from a template:
`createdb --template={{template_name}} {{database_name}}`
`createdb --template {{template_name}} {{database_name}}`

View File

@@ -10,12 +10,12 @@ source: https://github.com/tldr-pages/tldr.git
- Display a human-readable summary of differences between files using a specific column as a unique identifier:
`csv-diff {{path/to/file1.csv}} {{path/to/file2.csv}} --key={{column_name}}`
`csv-diff {{path/to/file1.csv}} {{path/to/file2.csv}} --key {{column_name}}`
- Display a human-readable summary of differences between files that includes unchanged values in rows with at least one change:
`csv-diff {{path/to/file1.csv}} {{path/to/file2.csv}} --key={{column_name}} --show-unchanged`
`csv-diff {{path/to/file1.csv}} {{path/to/file2.csv}} --key {{column_name}} --show-unchanged`
- Display a summary of differences between files in JSON format using a specific column as a unique identifier:
`csv-diff {{path/to/file1.csv}} {{path/to/file2.csv}} --key={{column_name}} --json`
`csv-diff {{path/to/file1.csv}} {{path/to/file2.csv}} --key {{column_name}} --json`

View File

@@ -10,12 +10,12 @@ source: https://github.com/tldr-pages/tldr.git
- Print a specific character/field range of each line:
`{{command}} | cut --{{characters|fields}}={{1|1,10|1-10|1-|-10}}`
`{{command}} | cut --{{characters|fields}} {{1|1,10|1-10|1-|-10}}`
- Print a field range of each line with a specific delimiter:
`{{command}} | cut --delimiter="{{,}}" --fields={{1}}`
`{{command}} | cut --delimiter="{{,}}" --fields {{1}}`
- Print a character range of each line of the specific file:
`cut --characters={{1}} {{path/to/file}}`
`cut --characters {{1}} {{path/to/file}}`

View File

@@ -30,7 +30,7 @@ source: https://github.com/tldr-pages/tldr.git
- Display the current date using the RFC-3339 format (`YYYY-MM-DD hh:mm:ss TZ`):
`date --rfc-3339=s`
`date --rfc-3339 s`
- Set the current date using the format `MMDDhhmmYYYY.ss` (`YYYY` and `.ss` are optional):

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# dirs
> Displays or manipulates the directory stack.
> Display or manipulate the directory stack.
> The directory stack is a list of recently visited directories that can be manipulated with the `pushd` and `popd` commands.
> More information: <https://www.gnu.org/software/bash/manual/bash.html#Directory-Stack-Builtins>.

View File

@@ -14,23 +14,23 @@ source: https://github.com/tldr-pages/tldr.git
- Apply a `CMD` Dockerfile instruction to the created image:
`docker commit --change="CMD {{command}}" {{container}} {{image}}:{{tag}}`
`docker commit --change "CMD {{command}}" {{container}} {{image}}:{{tag}}`
- Apply an `ENV` Dockerfile instruction to the created image:
`docker commit --change="ENV {{name}}={{value}}" {{container}} {{image}}:{{tag}}`
`docker commit --change "ENV {{name}}={{value}}" {{container}} {{image}}:{{tag}}`
- Create an image with a specific author in the metadata:
`docker commit --author="{{author}}" {{container}} {{image}}:{{tag}}`
`docker commit --author "{{author}}" {{container}} {{image}}:{{tag}}`
- Create an image with a specific comment in the metadata:
`docker commit --message="{{comment}}" {{container}} {{image}}:{{tag}}`
`docker commit --message "{{comment}}" {{container}} {{image}}:{{tag}}`
- Create an image without pausing the container during commit:
`docker commit --pause={{false}} {{container}} {{image}}:{{tag}}`
`docker commit --pause {{false}} {{container}} {{image}}:{{tag}}`
- Display help:

View File

@@ -22,7 +22,7 @@ source: https://github.com/tldr-pages/tldr.git
- Filter containers that contain a substring in their name:
`docker ps --filter="name={{name}}"`
`docker ps --filter "name={{name}}"`
- Filter containers that share a given image as an ancestor:
@@ -34,8 +34,8 @@ source: https://github.com/tldr-pages/tldr.git
- Filter containers by status (created, running, removing, paused, exited and dead):
`docker ps --filter="status={{status}}"`
`docker ps --filter "status={{status}}"`
- Filter containers that mount a specific volume or have a volume mounted in a specific path:
`docker ps --filter="volume={{path/to/directory}}" --format "table {{.ID}} {{.Image}} {{.Names}} {{.Mounts}}"`
`docker ps --filter "volume={{path/to/directory}}" --format "table {{.ID}} {{.Image}} {{.Names}} {{.Mounts}}"`

View File

@@ -26,7 +26,7 @@ source: https://github.com/tldr-pages/tldr.git
- Remove unused data created more than a specified amount of time in the past:
`docker system prune --filter="until={{hours}}h{{minutes}}m"`
`docker system prune --filter "until={{hours}}h{{minutes}}m"`
- Display real-time events from the Docker daemon:

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# dolt blame
> Displays commit information for each row of a Dolt table.
> Display commit information for each row of a Dolt table.
> More information: <https://docs.dolthub.com/cli-reference/cli#dolt-blame>.
- Display the latest commit for each row of a table:

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# dolt version
> Displays the current dolt CLI version.
> Display the current dolt CLI version.
> More information: <https://docs.dolthub.com/cli-reference/cli#dolt-version>.
- Display version:

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# duplicity
> Creates incremental, compressed, encrypted and versioned backups.
> Create incremental, compressed, encrypted and versioned backups.
> Can also upload the backups to a variety of backend services.
> More information: <http://duplicity.nongnu.org>.

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# factor
> Prints the prime factorization of a number.
> Print the prime factorization of a number.
> More information: <https://www.gnu.org/software/coreutils/factor>.
- Display the prime-factorization of a number:

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# from
> Prints mail header lines from the current user's mailbox.
> Print mail header lines from the current user's mailbox.
> More information: <https://mailutils.org/manual/html_chapter/Programs.html#frm-and-from>.
- List mail:

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# gcal
> Displays calendar.
> Display calendar.
> More information: <https://www.gnu.org/software/gcal>.
- Display calendar for the current month:

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# gh api
> Makes authenticated HTTP requests to the GitHub API and prints the response.
> Make authenticated HTTP requests to the GitHub API and print the response.
> More information: <https://cli.github.com/manual/gh_api>.
- Display the releases for the current repository in JSON format:

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# git var
> Prints a Git logical variable's value.
> Print a Git logical variable's value.
> See `git config`, which is preferred over `git var`.
> More information: <https://git-scm.com/docs/git-var>.

View File

@@ -5,8 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# go fmt
> Format Go source files.
> Prints the filenames that are changed.
> Format Go source files, printing the changed filenames.
> More information: <https://pkg.go.dev/cmd/go#hdr-Gofmt__reformat__package_sources>.
- Format Go source files in the current directory:

View File

@@ -18,7 +18,7 @@ source: https://github.com/tldr-pages/tldr.git
- Search for a pattern in all files recursively in a directory, showing line numbers of matches, ignoring binary files:
`grep --recursive --line-number --binary-files={{without-match}} "{{search_pattern}}" {{path/to/directory}}`
`grep --recursive --line-number --binary-files {{without-match}} "{{search_pattern}}" {{path/to/directory}}`
- Use extended regular expressions (supports `?`, `+`, `{}`, `()` and `|`), in case-insensitive mode:
@@ -26,7 +26,7 @@ source: https://github.com/tldr-pages/tldr.git
- Print 3 lines of context around, before, or after each match:
`grep --{{context|before-context|after-context}}={{3}} "{{search_pattern}}" {{path/to/file}}`
`grep --{{context|before-context|after-context}} {{3}} "{{search_pattern}}" {{path/to/file}}`
- Print file name and line number for each match with color output:

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# hostid
> Prints the numeric identifier for the current host (not necessarily the IP address).
> Print the numeric identifier for the current host (not necessarily the IP address).
> More information: <https://www.gnu.org/software/coreutils/hostid>.
- Display the numeric identifier for the current host in hexadecimal:

View File

@@ -5,7 +5,8 @@ source: https://github.com/tldr-pages/tldr.git
---
# kubectl apply
> Manages applications through files defining Kubernetes resources. It creates and updates resources in a cluster.
> Manage applications through files defining Kubernetes resources.
> Create and update resources in a cluster.
> More information: <https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#apply>.
- Apply a configuration to a resource by file name or `stdin`:

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# add-apt-repository
> Manages `apt` repository definitions.
> Manage `apt` repository definitions.
> More information: <https://manned.org/apt-add-repository>.
- Add a new `apt` repository:

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# apt-add-repository
> Manages `apt` repository definitions.
> Manage `apt` repository definitions.
> More information: <https://manpages.debian.org/latest/software-properties-common/apt-add-repository.1.html>.
- Add a new `apt` repository:

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# avahi-browse
> Displays services and hosts exposed on the local network via mDNS/DNS-SD.
> Display services and hosts exposed on the local network via mDNS/DNS-SD.
> Avahi is compatible with Bonjour (Zeroconf) found in Apple devices.
> More information: <https://www.avahi.org/>.

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# caja
> Manages files and directories in MATE desktop environment.
> Manage files and directories in the MATE desktop environment.
> See also: `nautilus`, `dolphin`, `thunar`, `ranger`.
> More information: <https://manned.org/caja>.

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# dmenu
> Dynamic menu.
> Creates a menu from a text input with each item on a new line.
> Create a menu from a text input with each item on a new line.
> More information: <https://manned.org/dmenu>.
- Display a menu of the output of the `ls` command:

View File

@@ -26,4 +26,4 @@ source: https://github.com/tldr-pages/tldr.git
- Run and set a specific log level:
`dockerd --log-level={{debug|info|warn|error|fatal}}`
`dockerd --log-level {{debug|info|warn|error|fatal}}`

View File

@@ -23,3 +23,7 @@ source: https://github.com/tldr-pages/tldr.git
- Append a pathname to the environment variable `PATH`:
`export PATH=$PATH:{{path/to/append}}`
- Display a list of active exported variables in shell command form:
`export -p`

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# fatlabel
> Sets or gets the label of a FAT32 partition.
> Get or set the label of a FAT32 partition.
> More information: <https://manned.org/fatlabel>.
- Get the label of a FAT32 partition:

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# ico
> Displays an animation of a polyhedron.
> Display an animation of a polyhedron.
> More information: <https://manned.org/ico.1>.
- Display the wireframe of an icosahedron that changes its position every 0.1 seconds:

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# id3v2
> Manages id3v2 tags, converts and lists id3v1.
> Manage id3v2 tags, converts and lists id3v1.
> More information: <https://manned.org/id3v2.1>.
- List all genres:

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# lscpu
> Displays information about the CPU architecture.
> Display information about the CPU architecture.
> More information: <https://manned.org/lscpu>.
- Display information about all CPUs:

View File

@@ -34,7 +34,7 @@ source: https://github.com/tldr-pages/tldr.git
- Display the man page using a specific locale:
`man --locale={{locale}} {{command}}`
`man --locale {{locale}} {{command}}`
- Search for manpages containing a search string:

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# mashtree
> Makes a fast tree from genomes.
> Make a fast tree from genomes.
> Does not make a phylogeny.
> More information: <https://github.com/lskatz/mashtree>.

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# mke2fs
> Creates a Linux filesystem inside a partition.
> Create a Linux filesystem inside a partition.
> More information: <https://manned.org/mke2fs>.
- Create an ext2 filesystem in partition 1 of device b (`sdb1`):

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# mkfs.cramfs
> Creates a ROM filesystem inside a partition.
> Create a ROM filesystem inside a partition.
> More information: <https://manned.org/mkfs.cramfs>.
- Create a ROM filesystem inside partition 1 on device b (`sdb1`):

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# mkfs.exfat
> Creates an exfat filesystem inside a partition.
> Create an exfat filesystem inside a partition.
> More information: <https://manned.org/mkfs.exfat>.
- Create an exfat filesystem inside partition 1 on device b (`sdb1`):

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# mkfs.ext4
> Creates an ext4 filesystem inside a partition.
> Create an ext4 filesystem inside a partition.
> More information: <https://manned.org/mkfs.ext4>.
- Create an ext4 filesystem inside partition 1 on device b (`sdb1`):

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# mkfs.f2fs
> Creates an F2FS filesystem inside a partition.
> Create an F2FS filesystem inside a partition.
> More information: <https://manned.org/mkfs.f2fs>.
- Create an F2FS filesystem inside partition 1 on device b (`sdb1`):

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# mkfs.fat
> Creates an MS-DOS filesystem inside a partition.
> Create an MS-DOS filesystem inside a partition.
> More information: <https://manned.org/mkfs.fat>.
- Create a fat filesystem inside partition 1 on device b (`sdb1`):

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# mkfs.minix
> Creates a Minix filesystem inside a partition.
> Create a Minix filesystem inside a partition.
> More information: <https://manned.org/mkfs.minix>.
- Create a Minix filesystem inside partition 1 on device b (`sdb1`):

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# mkfs.ntfs
> Creates a NTFS filesystem inside a partition.
> Create a NTFS filesystem inside a partition.
> More information: <https://manned.org/mkfs.ntfs>.
- Create a NTFS filesystem inside partition 1 on device b (`sdb1`):

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# mkfs.vfat
> Creates an MS-DOS filesystem inside a partition.
> Create an MS-DOS filesystem inside a partition.
> More information: <https://manned.org/mkfs.vfat>.
- Create a vfat filesystem inside partition 1 on device b (`sdb1`):

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# nemo
> Manages files and directories in Cinnamon desktop environment.
> Manage files and directories in Cinnamon desktop environment.
> More information: <https://manned.org/nemo>.
- Open the current user home directory:

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# pidof
> Gets the ID of a process using its name.
> Get the ID of a process using its name.
> More information: <https://manned.org/pidof>.
- List all process IDs with given name:

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# readelf
> Displays information about ELF files.
> Display information about ELF files.
> More information: <http://man7.org/linux/man-pages/man1/readelf.1.html>.
- Display all information about the ELF file:

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# readpe
> Displays information about PE files.
> Display information about PE files.
> More information: <https://manned.org/readpe>.
- Display all information about a PE file:

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# rpcinfo
> Makes an RPC call to an RPC server and reports what it finds.
> Make an RPC call to an RPC server and reports what it finds.
> More information: <https://manned.org/rpcinfo>.
- Show full table of all RPC services registered on localhost:

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# size
> Displays the sizes of sections inside binary files.
> Display the sizes of sections inside binary files.
> More information: <https://sourceware.org/binutils/docs/binutils/size.html>.
- Display the size of sections in a given object or executable file:

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# sm
> Displays a short message fullscreen.
> Display a short message fullscreen.
> More information: <https://github.com/nomeata/screen-message>.
- Display a message in full-screen:

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# toolbox help
> Displays help information about `toolbox`.
> Display help information about `toolbox`.
> More information: <https://manned.org/toolbox-help.1>.
- Display the `toolbox` manual:

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# uprecords
> Displays a summary of historical uptime records.
> Display a summary of historical uptime records.
> More information: <https://manned.org/uprecords>.
- Display a summary of the top 10 historical uptime records:

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# usermod
> Modifies a user account.
> Modify a user account.
> See also: `users`, `useradd`, `userdel`.
> More information: <https://manned.org/usermod>.

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# xmount
> Convert on-the-fly between multiple input and output hard disk image types with optional write cache support.
> Creates a virtual file system using FUSE (Filesystem in Userspace) that contains a virtual representation of the input image.
> Create a virtual file system using FUSE (Filesystem in Userspace) that contains a virtual representation of the input image.
> More information: <https://manned.org/xmount>.
- Mount a `.raw` image file into a DMG container file:

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# ln
> Creates links to files and directories.
> Create links to files and directories.
> More information: <https://www.gnu.org/software/coreutils/ln>.
- Create a symbolic link to a file or directory:

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# mkfifo
> Makes FIFOs (named pipes).
> Make FIFOs (named pipes).
> More information: <https://www.gnu.org/software/coreutils/mkfifo>.
- Create a named pipe at a given path:

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# netstat
> Displays network-related information such as open connections, open socket ports, etc.
> Display network-related information such as open connections, open socket ports, etc.
> More information: <https://man7.org/linux/man-pages/man8/netstat.8.html>.
- List all ports:

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# airportd
> Manages wireless interfaces.
> Manage wireless interfaces.
> It should not be invoked manually.
> More information: <https://keith.github.io/xcode-man-pages/airportd.8.html>.

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# backupd
> Creates Time Machine backups and manages its backup history.
> Create Time Machine backups and manages its backup history.
> It should not be invoked manually.
> More information: <https://keith.github.io/xcode-man-pages/backupd.8.html>.

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# cal
> Prints calendar information.
> Print calendar information.
> More information: <https://keith.github.io/xcode-man-pages/cal.1.html>.
- Display a calendar for the current month:

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# corebrightnessd
> Manages Night Shift.
> Manage Night Shift.
> It should not be invoked manually.
> More information: <https://keith.github.io/xcode-man-pages/corebrightnessd.8.html>.

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# fontd
> Makes fonts available to the system.
> Make fonts available to the system.
> It should not be invoked manually.
> More information: <https://keith.github.io/xcode-man-pages/fontd.8.html>.

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# InternetSharing
> Sets up Internet Sharing.
> Set up Internet Sharing.
> It should not be invoked manually.
> More information: <https://www.manpagez.com/man/8/InternetSharing/>.

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# setfile
> Sets file attributes on files in an HFS+ directory.
> Set file attributes on files in an HFS+ directory.
> More information: <https://ss64.com/osx/setfile.html>.
- Set creation date for specific files:

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# watchlistd
> Manages the Apple TV app's watch list.
> Manage the Apple TV app's watch list.
> It should not be invoked manually.
> More information: <https://keith.github.io/xcode-man-pages/watchlistd.8.html>.

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# pipenv
> Simple and unified Python development workflow.
> Manages packages and the virtual environment for a project.
> Manage packages and the virtual environment for a project.
> More information: <https://pypi.org/project/pipenv>.
- Create a new project:

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# salt-key
> Manages salt minion keys on the salt master.
> Manage salt minion keys on the salt master.
> Needs to be run on the salt master, likely as root or with sudo.
> More information: <https://docs.saltproject.io/en/latest/ref/cli/salt-key.html>.

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# tlmgr
> Manages packages and configuration options of an existing TeX Live installation.
> Manage packages and configuration options of an existing TeX Live installation.
> Some subcommands such as `tlmgr paper` have their own usage documentation.
> More information: <https://www.tug.org/texlive/tlmgr.html>.

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# trawl
> Prints out network interface information to the console, much like ifconfig/ipconfig/ip/ifdata.
> Print out network interface information to the console, much like ifconfig/ipconfig/ip/ifdata.
> More information: <https://github.com/robphoenix/trawl>.
- Show column names:

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# date
> Displays or sets the system date.
> Display or set the system date.
> More information: <https://learn.microsoft.com/windows-server/administration/windows-commands/date>.
- Display the current system date and prompt to enter a new date (leave empty to keep unchanged):

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# fsutil
> Displays information about file system volumes.
> Display information about file system volumes.
> More information: <https://learn.microsoft.com/windows-server/administration/windows-commands/fsutil>.
- Display a list of volumes:

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# Get-Acl
> Gets the security descriptor for a resource, such as a file or registry key.
> Get the security descriptor for a resource, such as a file or registry key.
> This command can only be used through PowerShell.
> More information: <https://learn.microsoft.com/powershell/module/microsoft.powershell.security/get-acl>.

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# Get-Date
> Gets the current date and time.
> Get the current date and time.
> This command can only be used through PowerShell.
> More information: <https://learn.microsoft.com/powershell/module/microsoft.powershell.utility/get-date>.

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