Update cheatsheets

This commit is contained in:
ivuorinen
2024-02-21 11:19:49 +00:00
parent 4e88a1b42f
commit 3d653cc7e6
4803 changed files with 127002 additions and 0 deletions

29
! Normal file
View File

@@ -0,0 +1,29 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# Exclamation mark
> Bash builtin to substitute with a command found in history.
> More information: <https://www.gnu.org/software/bash/manual/bash.html#Event-Designators>.
- Substitute with the previous command and run it with `sudo`:
`sudo !!`
- Substitute with a command based on its line number found with `history`:
`!{{number}}`
- Substitute with a command that was used a specified number of lines back:
`!-{{number}}`
- Substitute with the most recent command that starts with a string:
`!{{string}}`
- Substitute with the arguments of the latest command:
`{{command}} !*`

37
2to3 Normal file
View File

@@ -0,0 +1,37 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# 2to3
> Automated Python 2 to 3 code conversion.
> More information: <https://docs.python.org/3/library/2to3.html>.
- Display the changes that would be performed without performing them (dry-run):
`2to3 {{path/to/file.py}}`
- Convert a Python 2 file to Python 3:
`2to3 --write {{path/to/file.py}}`
- Convert specific Python 2 language features to Python 3:
`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}}`
- List all available language features that can be converted from Python 2 to Python 3:
`2to3 --list-fixes`
- 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}}`
- Run 2to3 with multiple threads:
`2to3 --processes={{4}} --output-dir={{path/to/python3_directory}} --write --nobackups --no-diff {{path/to/python2_directory}}`

41
7z Normal file
View File

@@ -0,0 +1,41 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# 7z
> File archiver with a high compression ratio.
> More information: <https://manned.org/7z>.
- [a]dd a file or directory to a new or existing archive:
`7z a {{path/to/archive.7z}} {{path/to/file_or_directory}}`
- Encrypt an existing archive (including filenames):
`7z a {{path/to/encrypted.7z}} -p{{password}} -mhe=on {{path/to/archive.7z}}`
- E[x]tract an archive preserving the original directory structure:
`7z x {{path/to/archive.7z}}`
- E[x]tract an archive to a specific directory:
`7z x {{path/to/archive.7z}} -o{{path/to/output}}`
- E[x]tract an archive to `stdout`:
`7z x {{path/to/archive.7z}} -so`
- [a]rchive using a specific archive type:
`7z a -t{{7z|bzip2|gzip|lzip|tar|zip}} {{path/to/archive}} {{path/to/file_or_directory}}`
- [l]ist the contents of an archive:
`7z l {{path/to/archive.7z}}`
- Set the level of compression (higher means more compression, but slower):
`7z a {{path/to/archive.7z}} -mx={{0|1|3|5|7|9}} {{path/to/file_or_directory}}`

42
7za Normal file
View File

@@ -0,0 +1,42 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# 7za
> File archiver with a high compression ratio.
> Similar to `7z` except that it supports fewer file types but is cross-platform.
> More information: <https://manned.org/7za>.
- [a]rchive a file or directory:
`7za a {{path/to/archive.7z}} {{path/to/file_or_directory}}`
- Encrypt an existing archive (including file names):
`7za a {{path/to/encrypted.7z}} -p{{password}} -mhe={{on}} {{path/to/archive.7z}}`
- E[x]tract an archive preserving the original directory structure:
`7za x {{path/to/archive.7z}}`
- E[x]tract an archive to a specific directory:
`7za x {{path/to/archive.7z}} -o{{path/to/output}}`
- E[x]tract an archive to `stdout`:
`7za x {{path/to/archive.7z}} -so`
- [a]rchive using a specific archive type:
`7za a -t{{7z|bzip2|gzip|lzip|tar|...}} {{path/to/archive.7z}} {{path/to/file_or_directory}}`
- [l]ist the contents of an archive:
`7za l {{path/to/archive.7z}}`
- Set the level of compression (higher means more compression, but slower):
`7za a {{path/to/archive.7z}} -mx={{0|1|3|5|7|9}} {{path/to/file_or_directory}}`

38
7zr Normal file
View File

@@ -0,0 +1,38 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# 7zr
> File archiver with a high compression ratio.
> Similar to `7z` except that it only supports `.7z` files.
> More information: <https://manned.org/7zr>.
- [a]rchive a file or directory:
`7zr a {{path/to/archive.7z}} {{path/to/file_or_directory}}`
- Encrypt an existing archive (including file names):
`7zr a {{path/to/encrypted.7z}} -p{{password}} -mhe={{on}} {{path/to/archive.7z}}`
- E[x]tract an archive preserving the original directory structure:
`7zr x {{path/to/archive.7z}}`
- E[x]tract an archive to a specific directory:
`7zr x {{path/to/archive.7z}} -o{{path/to/output}}`
- E[x]tract an archive to `stdout`:
`7zr x {{path/to/archive.7z}} -so`
- [l]ist the contents of an archive:
`7zr l {{path/to/archive.7z}}`
- Set the level of compression (higher means more compression, but slower):
`7zr a {{path/to/archive.7z}} -mx={{0|1|3|5|7|9}} {{path/to/file_or_directory}}`

38
[ Normal file
View File

@@ -0,0 +1,38 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# [
> Check file types and compare values.
> Returns a status of 0 if the condition evaluates to true, 1 if it evaluates to false.
> More information: <https://www.gnu.org/software/bash/manual/bash.html#index-test>.
- Test if a given variable is equal/not equal to the specified string:
`[ "${{variable}}" {{=|!=}} "{{string}}" ]`
- Test if a given variable is [eq]ual/[n]ot [e]qual/[g]reater [t]han/[l]ess [t]han/[g]reater than or [e]qual/[l]ess than or [e]qual to the specified number:
`[ "${{variable}}" -{{eq|ne|gt|lt|ge|le}} {{integer}} ]`
- Test if the specified variable has a [n]on-empty value:
`[ -n "${{variable}}" ]`
- Test if the specified variable has an empty value:
`[ -z "${{variable}}" ]`
- Test if the specified [f]ile exists:
`[ -f {{path/to/file}} ]`
- Test if the specified [d]irectory exists:
`[ -d {{path/to/directory}} ]`
- Test if the specified file or directory [e]xists:
`[ -e {{path/to/file_or_directory}} ]`

42
[[ Normal file
View File

@@ -0,0 +1,42 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# [[
> Check file types and compare values.
> Returns a status of 0 if the condition evaluates to true, 1 if it evaluates to false.
> More information: <https://www.gnu.org/software/bash/manual/bash.html#index-_005b_005b>.
- Test if a given variable is equal/not equal to the specified string:
`[[ ${{variable}} {{==|!=}} "{{string}}" ]]`
- Test if a given string conforms the specified glob/regex:
`[[ ${{variable}} {{==|=~}} {{pattern}} ]]`
- Test if a given variable is [eq]ual/[n]ot [e]qual/[g]reater [t]han/[l]ess [t]han/[g]reater than or [e]qual/[l]ess than or [e]qual to the specified number:
`[[ ${{variable}} -{{eq|ne|gt|lt|ge|le}} {{integer}} ]]`
- Test if the specified variable has a [n]on-empty value:
`[[ -n ${{variable}} ]]`
- Test if the specified variable has an empty value:
`[[ -z ${{variable}} ]]`
- Test if the specified [f]ile exists:
`[[ -f {{path/to/file}} ]]`
- Test if the specified [d]irectory exists:
`[[ -d {{path/to/directory}} ]]`
- Test if the specified file or directory [e]xists:
`[[ -e {{path/to/file_or_directory}} ]]`

37
a2ping Normal file
View File

@@ -0,0 +1,37 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# a2ping
> Convert images into EPS or PDF files.
> More information: <https://manned.org/a2ping>.
- Convert an image to PDF (Note: Specifying an output filename is optional):
`a2ping {{path/to/image.ext}} {{path/to/output.pdf}}`
- Compress the document using the specified method:
`a2ping --nocompress {{none|zip|best|flate}} {{path/to/file}}`
- Scan HiResBoundingBox if present (defaults to yes):
`a2ping --nohires {{path/to/file}}`
- Allow page content below and left of the origin (defaults to no):
`a2ping --below {{path/to/file}}`
- Pass extra arguments to `gs`:
`a2ping --gsextra {{arguments}} {{path/to/file}}`
- Pass extra arguments to external program (i.e `pdftops`):
`a2ping --extra {{arguments}} {{path/to/file}}`
- Display help:
`a2ping -h`

21
aapt Normal file
View File

@@ -0,0 +1,21 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# aapt
> Android Asset Packaging Tool: compile and package an Android app's resources.
> More information: <https://elinux.org/Android_aapt>.
- List files contained in an APK archive:
`aapt list {{path/to/app.apk}}`
- Display an app's metadata (version, permissions, etc.):
`aapt dump badging {{path/to/app.apk}}`
- Create a new APK archive with files from the specified directory:
`aapt package -F {{path/to/app.apk}} {{path/to/directory}}`

33
ab Normal file
View File

@@ -0,0 +1,33 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# ab
> Apache HTTP server benchmarking tool.
> More information: <https://httpd.apache.org/docs/current/programs/ab.html>.
- Execute 100 HTTP GET requests to a given URL:
`ab -n 100 {{url}}`
- Execute 100 HTTP GET requests, in concurrent batches of 10, to a URL:
`ab -n 100 -c 10 {{url}}`
- Execute 100 HTTP POST requests to a URL, using a JSON payload from a file:
`ab -n 100 -T {{application/json}} -p {{path/to/file.json}} {{url}}`
- Use HTTP [k]eep-Alive, i.e. perform multiple requests within one HTTP session:
`ab -k {{url}}`
- Set the maximum number of seconds ([t]imeout) to spend for benchmarking (30 by default):
`ab -t {{60}} {{url}}`
- Write the results to a CSV file:
`ab -e {{path/to/file.csv}}`

29
abduco Normal file
View File

@@ -0,0 +1,29 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# abduco
> Terminal session manager.
> More information: <http://www.brain-dump.org/projects/abduco/>.
- List sessions:
`abduco`
- [A]ttach to a session, creating it if it doesn't exist:
`abduco -A {{name}} {{bash}}`
- [A]ttach to a session with `dvtm`, creating it if it doesn't exist:
`abduco -A {{name}}`
- Detach from a session:
`<Ctrl> + \`
- [A]ttach to a session in [r]ead-only mode:
`abduco -Ar {{name}}`

25
ac Normal file
View File

@@ -0,0 +1,25 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# ac
> Print statistics on how long users have been connected.
> More information: <https://man.openbsd.org/ac>.
- Print how long the current user has been connected in hours:
`ac`
- Print how long users have been connected in hours:
`ac -p`
- Print how long a particular user has been connected in hours:
`ac -p {{username}}`
- Print how long a particular user has been connected in hours per [d]ay (with total):
`ac -dp {{username}}`

33
accelerate Normal file
View File

@@ -0,0 +1,33 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# Accelerate
> A library that enables the same PyTorch code to be run across any distributed configuration.
> More information: <https://huggingface.co/docs/accelerate/index>.
- Print environment information:
`accelerate env`
- Interactively create a configuration file:
`accelerate config`
- Print the estimated GPU memory cost of running a Hugging Face model with different data types:
`accelerate estimate-memory {{name/model}}`
- Test an Accelerate configuration file:
`accelerate test --config_file {{path/to/config.yaml}}`
- Run a model on CPU with Accelerate:
`accelerate launch {{path/to/script.py}} {{--cpu}}`
- Run a model on multi-GPU with Accelerate, with 2 machines:
`accelerate launch {{path/to/script.py}} --multi_gpu --num_machines 2`

42
ack Normal file
View File

@@ -0,0 +1,42 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# ack
> A search tool like `grep`, optimized for developers.
> See also: `rg`, which is much faster.
> More information: <https://beyondgrep.com/documentation>.
- Search for files containing a string or regular expression in the current directory recursively:
`ack "{{search_pattern}}"`
- Search for a case-insensitive pattern:
`ack --ignore-case "{{search_pattern}}"`
- Search for lines matching a pattern, printing [o]nly the matched text and not the rest of the line:
`ack -o "{{search_pattern}}"`
- Limit search to files of a specific type:
`ack --type={{ruby}} "{{search_pattern}}"`
- Do not search in files of a specific type:
`ack --type=no{{ruby}} "{{search_pattern}}"`
- Count the total number of matches found:
`ack --count --no-filename "{{search_pattern}}"`
- Print the file names and the number of matches for each file only:
`ack --count --files-with-matches "{{search_pattern}}"`
- List all the values that can be used with `--type`:
`ack --help-types`

38
acme.sh Normal file
View File

@@ -0,0 +1,38 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# acme.sh
> Shell script implementing ACME client protocol, an alternative to `certbot`.
> See also `acme.sh dns`.
> More information: <https://github.com/acmesh-official/acme.sh>.
- Issue a certificate using webroot mode:
`acme.sh --issue --domain {{example.com}} --webroot {{/path/to/webroot}}`
- Issue a certificate for multiple domains using standalone mode using port 80:
`acme.sh --issue --standalone --domain {{example.com}} --domain {{www.example.com}}`
- Issue a certificate using standalone TLS mode using port 443:
`acme.sh --issue --alpn --domain {{example.com}}`
- Issue a certificate using a working Nginx configuration:
`acme.sh --issue --nginx --domain {{example.com}}`
- Issue a certificate using a working Apache configuration:
`acme.sh --issue --apache --domain {{example.com}}`
- Issue a wildcard (\*) certificate using an automatic DNS API mode:
`acme.sh --issue --dns {{dns_cf}} --domain {{*.example.com}}`
- Install certificate files into the specified locations (useful for automatic certificate renewal):
`acme.sh --install-cert -d {{example.com}} --key-file {{/path/to/example.com.key}} --fullchain-file {{/path/to/example.com.cer}} --reloadcmd {{"systemctl force-reload nginx"}}`

29
acme.sh-dns Normal file
View File

@@ -0,0 +1,29 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# acme.sh --dns
> Use a DNS-01 challenge to issue a TLS certificate.
> More information: <https://github.com/acmesh-official/acme.sh/wiki>.
- Issue a certificate using an automatic DNS API mode:
`acme.sh --issue --dns {{gnd_gd}} --domain {{example.com}}`
- Issue a wildcard certificate (denoted by an asterisk) using an automatic DNS API mode:
`acme.sh --issue --dns {{dns_namesilo}} --domain {{example.com}} --domain {{*.example.com}}`
- Issue a certificate using a DNS alias mode:
`acme.sh --issue --dns {{dns_cf}} --domain {{example.com}} --challenge-alias {{alias-for-example-validation.com}}`
- Issue a certificate while disabling automatic Cloudflare/Google DNS polling after the DNS record is added by specifying a custom wait time in seconds:
`acme.sh --issue --dns {{dns_namecheap}} --domain {{example.com}} --dnssleep {{300}}`
- Issue a certificate using a manual DNS mode:
`acme.sh --issue --dns --domain {{example.com}} --yes-I-know-dns-manual-mode-enough-go-ahead-please`

37
act Normal file
View File

@@ -0,0 +1,37 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# act
> Execute GitHub Actions locally using Docker.
> More information: <https://github.com/nektos/act>.
- [l]ist the available jobs:
`act -l`
- Run the default event:
`act`
- Run a specific event:
`act {{event_type}}`
- Run a specific [j]ob:
`act -j {{job_id}}`
- Do [n]ot actually run the actions (i.e. a dry run):
`act -n`
- Show [v]erbose logs:
`act -v`
- Run a specific [W]orkflow with the push event:
`act push -W {{path/to/workflow}}`

22
acyclic Normal file
View File

@@ -0,0 +1,22 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# acyclic
> Make a directed graph acyclic by reversing some edges.
> Graphviz filters: `acyclic`, `bcomps`, `comps`, `edgepaint`, `gvcolor`, `gvpack`, `mingle`, `nop`, `sccmap`, `tred`, & `unflatten`.
> More information: <https://graphviz.org/pdf/acyclic.1.pdf>.
- Make a directed graph acyclic by reversing some edges:
`acyclic {{path/to/input.gv}} > {{path/to/output.gv}}`
- Print if a graph is acyclic, has a cycle, or is undirected, producing no output graph:
`acyclic -v -n {{path/to/input.gv}}`
- Display help:
`acyclic -?`

38
adb Normal file
View File

@@ -0,0 +1,38 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# adb
> Android Debug Bridge: communicate with an Android emulator instance or connected Android devices.
> Some subcommands such as `adb shell` have their own usage documentation.
> More information: <https://developer.android.com/tools/adb>.
- Check whether the adb server process is running and start it:
`adb start-server`
- Terminate the adb server process:
`adb kill-server`
- Start a remote shell in the target emulator/device instance:
`adb shell`
- Push an Android application to an emulator/device:
`adb install -r {{path/to/file.apk}}`
- Copy a file/directory from the target device:
`adb pull {{path/to/device_file_or_directory}} {{path/to/local_destination_directory}}`
- Copy a file/directory to the target device:
`adb push {{path/to/local_file_or_directory}} {{path/to/device_destination_directory}}`
- List all connected devices:
`adb devices`

33
adb-install Normal file
View File

@@ -0,0 +1,33 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# adb install
> Android Debug Bridge Install: push packages to an Android emulator instance or connected Android devices.
> More information: <https://developer.android.com/tools/adb>.
- Push an Android application to an emulator/device:
`adb install {{path/to/file.apk}}`
- Push an Android application to a specific emulator/device (overrides `$ANDROID_SERIAL`):
`adb -s {{serial_number}} install {{path/to/file.apk}}`
- [r]einstall an existing app, keeping its data:
`adb install -r {{path/to/file.apk}}`
- Push an Android application allowing version code [d]owngrade (debuggable packages only):
`adb install -d {{path/to/file.apk}}`
- [g]rant all permissions listed in the app manifest:
`adb install -g {{path/to/file.apk}}`
- Quickly update an installed package by only updating the parts of the APK that changed:
`adb install --fastdeploy {{path/to/file.apk}}`

41
adb-logcat Normal file
View File

@@ -0,0 +1,41 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# adb logcat
> Dump a log of system messages.
> More information: <https://developer.android.com/tools/logcat>.
- Display system logs:
`adb logcat`
- Display lines that match a regular [e]xpression:
`adb logcat -e {{regular_expression}}`
- Display logs for a tag in a specific mode ([V]erbose, [D]ebug, [I]nfo, [W]arning, [E]rror, [F]atal, [S]ilent), filtering other tags:
`adb logcat {{tag}}:{{mode}} *:S`
- Display logs for React Native applications in [V]erbose mode [S]ilencing other tags:
`adb logcat ReactNative:V ReactNativeJS:V *:S`
- Display logs for all tags with priority level [W]arning and higher:
`adb logcat *:W`
- Display logs for a specific PID:
`adb logcat --pid={{pid}}`
- Display logs for the process of a specific package:
`adb logcat --pid=$(adb shell pidof -s {{package}})`
- Color the log (usually use with filters):
`adb logcat -v color`

25
adb-reverse Normal file
View File

@@ -0,0 +1,25 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# adb reverse
> Android Debug Bridge Reverse: reverse socket connections from an Android emulator instance or connected Android devices.
> More information: <https://developer.android.com/tools/adb>.
- List all reverse socket connections from emulators and devices:
`adb reverse --list`
- Reverse a TCP port from an emulator or device to localhost:
`adb reverse tcp:{{remote_port}} tcp:{{local_port}}`
- Remove a reverse socket connections from an emulator or device:
`adb reverse --remove tcp:{{remote_port}}`
- Remove all reverse socket connections from all emulators and devices:
`adb reverse --remove-all`

41
adb-shell Normal file
View File

@@ -0,0 +1,41 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# adb shell
> Android Debug Bridge Shell: run remote shell commands on an Android emulator instance or connected Android devices.
> More information: <https://developer.android.com/tools/adb>.
- Start a remote interactive shell on the emulator or device:
`adb shell`
- Get all the properties from emulator or device:
`adb shell getprop`
- Revert all runtime permissions to their default:
`adb shell pm reset-permissions`
- Revoke a dangerous permission for an application:
`adb shell pm revoke {{package}} {{permission}}`
- Trigger a key event:
`adb shell input keyevent {{keycode}}`
- Clear the data of an application on an emulator or device:
`adb shell pm clear {{package}}`
- Start an activity on emulator or device:
`adb shell am start -n {{package}}/{{activity}}`
- Start the home activity on an emulator or device:
`adb shell am start -W -c android.intent.category.HOME -a android.intent.action.MAIN`

37
adguardhome Normal file
View File

@@ -0,0 +1,37 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# AdGuardHome
> A network-wide software for blocking ads & tracking.
> More information: <https://github.com/AdguardTeam/AdGuardHome>.
- Run AdGuard Home:
`AdGuardHome`
- Specify a configuration file:
`AdGuardHome --config {{path/to/AdGuardHome.yaml}}`
- Store the data in a specific work directory:
`AdGuardHome --work-dir {{path/to/directory}}`
- Install or uninstall AdGuard Home as a service:
`AdGuardHome --service {{install|uninstall}}`
- Start the AdGuard Home service:
`AdGuardHome --service start`
- Reload the configuration for the AdGuard Home service:
`AdGuardHome --service reload`
- Stop or restart the AdGuard Home service:
`AdGuardHome --service {{stop|restart}}`

25
adscript Normal file
View File

@@ -0,0 +1,25 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# adscript
> Compiler for Adscript files.
> More information: <https://github.com/Amplus2/Adscript>.
- Compile a file to an object file:
`adscript --output {{path/to/file.o}} {{path/to/input_file.adscript}}`
- Compile and link a file to a standalone executable:
`adscript --executable --output {{path/to/file}} {{path/to/input_file.adscript}}`
- Compile a file to LLVM IR instead of native machine code:
`adscript --llvm-ir --output {{path/to/file.ll}} {{path/to/input_file.adscript}}`
- Cross-compile a file to an object file for a foreign CPU architecture or operating system:
`adscript --target-triple {{i386-linux-elf}} --output {{path/to/file.o}} {{path/to/input_file.adscript}}`

17
afconvert Normal file
View File

@@ -0,0 +1,17 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# afconvert
> Convert between AFF and raw file formats.
> More information: <https://manned.org/afconvert.1>.
- Use a specific extension (default: `aff`):
`afconvert -a {{extension}} {{path/to/input_file}} {{path/to/output_file1 path/to/output_file2 ...}}`
- Use a specific compression level (default: `7`):
`afconvert -X{{0..7}} {{path/to/input_file}} {{path/to/output_file1 path/to/output_file2 ...}}`

37
ag Normal file
View File

@@ -0,0 +1,37 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# ag
> The Silver Searcher. Like `ack`, but aims to be faster.
> More information: <https://github.com/ggreer/the_silver_searcher>.
- Find files containing "foo", and print the line matches in context:
`ag {{foo}}`
- Find files containing "foo" in a specific directory:
`ag {{foo}} {{path/to/directory}}`
- Find files containing "foo", but only [l]ist the filenames:
`ag -l {{foo}}`
- Find files containing "FOO" case-[i]nsensitively, and print [o]nly the match, rather than the whole line:
`ag -i -o {{FOO}}`
- Find "foo" in files with a name matching "bar":
`ag {{foo}} -G {{bar}}`
- Find files whose contents match a regular expression:
`ag '{{^ba(r|z)$}}'`
- Find files with a name matching "foo":
`ag -g {{foo}}`

21
agate Normal file
View File

@@ -0,0 +1,21 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# agate
> A simple server for the Gemini network protocol.
> More information: <https://github.com/mbrubeck/agate>.
- Run and generate a private key and certificate:
`agate --content {{path/to/content/}} --addr {{[::]:1965}} --addr {{0.0.0.0:1965}} --hostname {{example.com}} --lang {{en-US}}`
- Run server:
`agate {{path/to/file}}`
- Display help:
`agate -h`

30
age Normal file
View File

@@ -0,0 +1,30 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# age
> A simple, modern and secure file encryption tool.
> See `age-keygen` for how to generate key pairs.
> More information: <https://github.com/FiloSottile/age>.
- Generate an encrypted file that can be decrypted with a passphrase:
`age --passphrase --output {{path/to/encrypted_file}} {{path/to/unencrypted_file}}`
- Encrypt a file with one or more public keys entered as literals (repeat the `--recipient` flag to specify multiple public keys):
`age --recipient {{public_key}} --output {{path/to/encrypted_file}} {{path/to/unencrypted_file}}`
- Encrypt a file to one or more recipients with their public keys specified in a file (one per line):
`age --recipients-file {{path/to/recipients_file}} --output {{path/to/encrypted_file}} {{path/to/unencrypted_file}}`
- Decrypt a file with a passphrase:
`age --decrypt --output {{path/to/decrypted_file}} {{path/to/encrypted_file}}`
- Decrypt a file with a private key file:
`age --decrypt --identity {{path/to/private_key_file}} --output {{path/to/decrypted_file}} {{path/to/encrypted_file}}`

18
age-keygen Normal file
View File

@@ -0,0 +1,18 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# age-keygen
> Generate `age` key pairs.
> See `age` for how to encrypt/decrypt files.
> More information: <https://manned.org/age-keygen>.
- Generate a key pair, save it to an unencrypted file, and print the public key to `stdout`:
`age-keygen --output {{path/to/file}}`
- Convert an identit[y] to a recipient and print the public key to `stdout`:
`age-keygen -y {{path/to/file}}`

22
aircrack-ng Normal file
View File

@@ -0,0 +1,22 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# aircrack-ng
> Crack WEP and WPA/WPA2 keys from handshake in captured packets.
> Part of Aircrack-ng network software suite.
> More information: <https://www.aircrack-ng.org/doku.php?id=aircrack-ng>.
- Crack key from capture file using [w]ordlist:
`aircrack-ng -w {{path/to/wordlist.txt}} {{path/to/capture.cap}}`
- Crack key from capture file using [w]ordlist and the access point's [e]ssid:
`aircrack-ng -w {{path/to/wordlist.txt}} -e {{essid}} {{path/to/capture.cap}}`
- Crack key from capture file using [w]ordlist and the access point's MAC address:
`aircrack-ng -w {{path/to/wordlist.txt}} --bssid {{mac}} {{path/to/capture.cap}}`

30
airdecap-ng Normal file
View File

@@ -0,0 +1,30 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# airdecap-ng
> Decrypt a WEP, WPA, or WPA2 encrypted capture file.
> Part of Aircrack-ng network software suite.
> More information: <https://www.aircrack-ng.org/doku.php?id=airdecap-ng>.
- Remove wireless headers from an open network capture file and use the access point's MAC address to filter:
`airdecap-ng -b {{ap_mac}} {{path/to/capture.cap}}`
- Decrypt a [w]EP encrypted capture file using the key in hex format:
`airdecap-ng -w {{hex_key}} {{path/to/capture.cap}}`
- Decrypt a WPA/WPA2 encrypted capture file using the access point's [e]ssid and [p]assword:
`airdecap-ng -e {{essid}} -p {{password}} {{path/to/capture.cap}}`
- Decrypt a WPA/WPA2 encrypted capture file preserving the headers using the access point's [e]ssid and [p]assword:
`airdecap-ng -l -e {{essid}} -p {{password}} {{path/to/capture.cap}}`
- Decrypt a WPA/WPA2 encrypted capture file using the access point's [e]ssid and [p]assword and use its MAC address to filter:
`airdecap-ng -b {{ap_mac}} -e {{essid}} -p {{password}} {{path/to/capture.cap}}`

14
aireplay-ng Normal file
View File

@@ -0,0 +1,14 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# aireplay-ng
> Inject packets into a wireless network.
> Part of `aircrack-ng`.
> More information: <https://www.aircrack-ng.org/doku.php?id=aireplay-ng>.
- Send a specific number of disassociate packets given an access point's MAC address, a client's MAC address and an interface:
`sudo aireplay-ng --deauth {{count}} --bssid {{ap_mac}} --dmac {{client_mac}} {{interface}}`

26
airmon-ng Normal file
View File

@@ -0,0 +1,26 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# airmon-ng
> Activate monitor mode on wireless network devices.
> Part of `aircrack-ng`.
> More information: <https://www.aircrack-ng.org/doku.php?id=airmon-ng>.
- List wireless devices and their statuses:
`sudo airmon-ng`
- Turn on monitor mode for a specific device:
`sudo airmon-ng start {{wlan0}}`
- Kill disturbing processes that use wireless devices:
`sudo airmon-ng check kill`
- Turn off monitor mode for a specific network interface:
`sudo airmon-ng stop {{wlan0mon}}`

18
airodump-ng Normal file
View File

@@ -0,0 +1,18 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# airodump-ng
> Capture packets and display information about wireless networks.
> Part of `aircrack-ng`.
> More information: <https://www.aircrack-ng.org/doku.php?id=airodump-ng>.
- Capture packets and display information about a wireless network:
`sudo airodump-ng {{interface}}`
- Capture packets and display information about a wireless network given the MAC address and channel, and save the output to a file:
`sudo airodump-ng --channel {{channel}} --write {{path/to/file}} --bssid {{mac}} {{interface}}`

29
airpaste Normal file
View File

@@ -0,0 +1,29 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# airpaste
> Share messages and files on the same network using mDNS.
> More information: <https://github.com/mafintosh/airpaste>.
- Wait for a message and display it when received:
`airpaste`
- Send text:
`echo {{text}} | airpaste`
- Send a file:
`airpaste < {{path/to/file}}`
- Receive a file:
`airpaste > {{path/to/file}}`
- Create or join a channel:
`airpaste {{channel_name}}`

33
airshare Normal file
View File

@@ -0,0 +1,33 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# airshare
> Transfer data between two machines in a local network.
> More information: <https://airshare.rtfd.io/en/latest/cli.html>.
- Share files or directories:
`airshare {{code}} {{path/to/file_or_directory1 path/to/file_or_directory2 ...}}`
- Receive a file:
`airshare {{code}}`
- Host a receiving server (use this to be able to upload files using the web interface):
`airshare --upload {{code}}`
- Send files or directories to a receiving server:
`airshare --upload {{code}} {{path/to/file_or_directory1 path/to/file_or_directory2 ...}}`
- Send files whose paths have been copied to the clipboard:
`airshare --file-path {{code}}`
- Receive a file and copy it to the clipboard:
`airshare --clip-receive {{code}}`

25
ajson Normal file
View File

@@ -0,0 +1,25 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# ajson
> Executes JSONPath on JSON objects.
> More information: <https://github.com/spyzhov/ajson>.
- Read JSON from a file and execute a specified JSONPath expression:
`ajson '{{$..json[?(@.path)]}}' {{path/to/file.json}}`
- Read JSON from `stdin` and execute a specified JSONPath expression:
`cat {{path/to/file.json}} | ajson '{{$..json[?(@.path)]}}'`
- Read JSON from a URL and evaluate a specified JSONPath expression:
`ajson '{{avg($..price)}}' '{{https://example.com/api/}}'`
- Read some simple JSON and calculate a value:
`echo '{{3}}' | ajson '{{2 * pi * $}}'`

29
alacritty Normal file
View File

@@ -0,0 +1,29 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# alacritty
> Cross-platform, GPU-accelerated terminal emulator.
> More information: <https://github.com/alacritty/alacritty>.
- Open a new Alacritty window:
`alacritty`
- Run in a specific directory:
`alacritty --working-directory {{path/to/directory}}`
- [e]xecute a command in a new Alacritty window:
`alacritty -e {{command}}`
- Use an alternative configuration file (defaults to `$XDG_CONFIG_HOME/alacritty/alacritty.yml`):
`alacritty --config-file {{path/to/config.yml}}`
- Run with live configuration reload enabled (can also be enabled by default in `alacritty.yml`):
`alacritty --live-config-reload --config-file {{path/to/config.yml}}`

26
alex Normal file
View File

@@ -0,0 +1,26 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# alex
> Catch insensitive, inconsiderate writing.
> It helps you find gender favouring, polarising, race related, religion inconsiderate, or other unequal phrasing in text.
> More information: <https://github.com/get-alex/alex>.
- Analyze text from `stdin`:
`echo {{His network looks good}} | alex --stdin`
- Analyze all files in the current directory:
`alex`
- Analyze a specific file:
`alex {{path/to/file.md}}`
- Analyze all Markdown files except `example.md`:
`alex *.md !{{example.md}}`

34
alias Normal file
View File

@@ -0,0 +1,34 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# alias
> Creates 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>.
- List all aliases:
`alias`
- Create a generic alias:
`alias {{word}}="{{command}}"`
- View the command associated to a given alias:
`alias {{word}}`
- Remove an aliased command:
`unalias {{word}}`
- Turn `rm` into an interactive command:
`alias {{rm}}="{{rm --interactive}}"`
- Create `la` as a shortcut for `ls --all`:
`alias {{la}}="{{ls --all}}"`

26
amass Normal file
View File

@@ -0,0 +1,26 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# amass
> In-depth Attack Surface Mapping and Asset Discovery tool.
> Some subcommands such as `amass db` have their own usage documentation.
> More information: <https://github.com/OWASP/Amass>.
- Execute an Amass subcommand:
`amass {{subcommand}}`
- Display help:
`amass -help`
- Display help on an Amass subcommand (like `intel`, `enum`, etc.):
`amass -help {{subcommand}}`
- Display version:
`amass -version`

25
amass-db Normal file
View File

@@ -0,0 +1,25 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# amass db
> Interact with an Amass database.
> More information: <https://github.com/OWASP/Amass/blob/master/doc/user_guide.md#the-db-subcommand>.
- List all performed enumerations in the database:
`amass db -dir {{path/to/database_directory}} -list`
- Show results for a specified enumeration index and [d]omain name:
`amass db -dir {{path/to/database_directory}} -d {{domain_name}} -enum {{index_from_list}} -show`
- List all found subdomains of a [d]omain within an enumeration:
`amass db -dir {{path/to/database_directory}} -d {{domain_name}} -enum {{index_from_list}} -names`
- Show a summary of the found subdomains within an enumeration:
`amass db -dir {{path/to/database_directory}} -d {{domain_name}} -enum {{index_from_list}} -summary`

29
amass-enum Normal file
View File

@@ -0,0 +1,29 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# amass enum
> Find subdomains of a domain.
> More information: <https://github.com/OWASP/Amass/blob/master/doc/user_guide.md#the-enum-subcommand>.
- Passively find subdomains of a [d]omain:
`amass enum -passive -d {{domain_name}}`
- Find subdomains of a [d]omain and actively verify them attempting to resolve the found subdomains:
`amass enum -active -d {{domain_name}} -p {{80,443,8080}}`
- Do a brute force search for subdomains:
`amass enum -brute -d {{domain_name}}`
- Save the results to a text file:
`amass enum -o {{output_file}} -d {{domain_name}}`
- Save the results to a database:
`amass enum -o {{output_file}} -dir {{path/to/database_directory}}`

33
amass-intel Normal file
View File

@@ -0,0 +1,33 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# amass intel
> Collect open source intel on an organisation like root domains and ASNs.
> More information: <https://github.com/OWASP/Amass/blob/master/doc/user_guide.md#the-intel-subcommand>.
- Find root domains in an IP address range:
`amass intel -addr {{192.168.0.1-254}}`
- Use active recon methods:
`amass intel -active -addr {{192.168.0.1-254}}`
- Find root domains related to a [d]omain:
`amass intel -whois -d {{domain_name}}`
- Find ASNs belonging to an organisation:
`amass intel -org {{organisation_name}}`
- Find root domains belonging to a given Autonomous System Number:
`amass intel -asn {{asn}}`
- Save results to a text file:
`amass intel -o {{output_file}} -whois -d {{domain_name}}`

21
androguard Normal file
View File

@@ -0,0 +1,21 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# androguard
> Reverse engineer Android applications. Written in Python.
> More information: <https://github.com/androguard/androguard>.
- Display Android app manifest:
`androguard axml {{path/to/app.apk}}`
- Display app metadata (version and app ID):
`androguard apkid {{path/to/app.apk}}`
- Decompile Java code from an app:
`androguard decompile {{path/to/app.apk}} --output {{path/to/directory}}`

25
android/am Normal file
View File

@@ -0,0 +1,25 @@
---
syntax: markdown
tags: [tldr, android]
source: https://github.com/tldr-pages/tldr.git
---
# am
> Android activity manager.
> More information: <https://developer.android.com/tools/adb#am>.
- Start the activity with a specific component and package [n]ame:
`am start -n {{com.android.settings/.Settings}}`
- Start an intent [a]ction and pass [d]ata to it:
`am start -a {{android.intent.action.VIEW}} -d {{tel:123}}`
- Start an activity matching a specific action and [c]ategory:
`am start -a {{android.intent.action.MAIN}} -c {{android.intent.category.HOME}}`
- Convert an intent to a URI:
`am to-uri -a {{android.intent.action.VIEW}} -d {{tel:123}}`

14
android/bugreport Normal file
View File

@@ -0,0 +1,14 @@
---
syntax: markdown
tags: [tldr, android]
source: https://github.com/tldr-pages/tldr.git
---
# bugreport
> Show an Android bug report.
> This command can only be used through `adb shell`.
> More information: <https://cs.android.com/android/platform/superproject/+/main:frameworks/native/cmds/bugreport>.
- Display a complete bug report of an Android device:
`bugreport`

26
android/bugreportz Normal file
View File

@@ -0,0 +1,26 @@
---
syntax: markdown
tags: [tldr, android]
source: https://github.com/tldr-pages/tldr.git
---
# bugreportz
> Generate a zipped Android bug report.
> This command can only be used through `adb shell`.
> More information: <https://cs.android.com/android/platform/superproject/+/main:frameworks/native/cmds/bugreportz>.
- Generate a complete zipped bug report of an Android device:
`bugreportz`
- Show the progress of a running `bugreportz` operation:
`bugreportz -p`
- Display help:
`bugreportz -h`
- Display version:
`bugreportz -v`

21
android/cmd Normal file
View File

@@ -0,0 +1,21 @@
---
syntax: markdown
tags: [tldr, android]
source: https://github.com/tldr-pages/tldr.git
---
# cmd
> Android service manager.
> More information: <https://cs.android.com/android/platform/superproject/+/main:frameworks/native/cmds/cmd/>.
- [l]ist all running services:
`cmd -l`
- Call a specific service:
`cmd {{service}}`
- Call a service with specific arguments:
`cmd {{service}} {{argument1 argument2 ...}}`

13
android/dalvikvm Normal file
View File

@@ -0,0 +1,13 @@
---
syntax: markdown
tags: [tldr, android]
source: https://github.com/tldr-pages/tldr.git
---
# dalvikvm
> Android Java virtual machine.
> More information: <https://developer.android.com/tools/#art_and_dalvik>.
- Start a specific Java program:
`dalvikvm -classpath {{path/to/file.jar}} {{classname}}`

34
android/dumpsys Normal file
View File

@@ -0,0 +1,34 @@
---
syntax: markdown
tags: [tldr, android]
source: https://github.com/tldr-pages/tldr.git
---
# dumpsys
> Provide information about Android system services.
> This command can only be used through `adb shell`.
> More information: <https://developer.android.com/tools/dumpsys>.
- Get diagnostic output for all system services:
`dumpsys`
- Get diagnostic output for a specific system service:
`dumpsys {{service}}`
- List all services `dumpsys` can give information about:
`dumpsys -l`
- List service-specific arguments for a service:
`dumpsys {{service}} -h`
- Exclude a specific service from the diagnostic output:
`dumpsys --skip {{service}}`
- Specify a [t]imeout period in seconds (defaults to 10s):
`dumpsys -t {{8}}`

37
android/getprop Normal file
View File

@@ -0,0 +1,37 @@
---
syntax: markdown
tags: [tldr, android]
source: https://github.com/tldr-pages/tldr.git
---
# getprop
> Show information about Android system properties.
> More information: <https://manned.org/getprop>.
- Display information about Android system properties:
`getprop`
- Display information about a specific property:
`getprop {{property}}`
- Display the SDK API level:
`getprop {{ro.build.version.sdk}}`
- Display the Android version:
`getprop {{ro.build.version.release}}`
- Display the Android device model:
`getprop {{ro.vendor.product.model}}`
- Display the OEM unlock status:
`getprop {{ro.oem_unlock_supported}}`
- Display the MAC address of the Android's Wi-Fi card:
`getprop {{ro.boot.wifimacaddr}}`

30
android/input Normal file
View File

@@ -0,0 +1,30 @@
---
syntax: markdown
tags: [tldr, android]
source: https://github.com/tldr-pages/tldr.git
---
# input
> Send event codes or touchscreen gestures to an Android device.
> This command can only be used through `adb shell`.
> More information: <https://developer.android.com/reference/android/view/KeyEvent.html#constants_1>.
- Send an event code for a single character to an Android device:
`input keyevent {{event_code}}`
- Send a text to an Android device (`%s` represents spaces):
`input text "{{text}}"`
- Send a single tap to an Android device:
`input tap {{x_position}} {{y_position}}`
- Send a swipe gesture to an Android device:
`input swipe {{x_start}} {{y_start}} {{x_end}} {{y_end}} {{duration_in_ms}}`
- Send a long press to an Android device using a swipe gesture:
`input swipe {{x_position}} {{y_position}} {{x_position}} {{y_position}} {{duration_in_ms}}`

29
android/logcat Normal file
View File

@@ -0,0 +1,29 @@
---
syntax: markdown
tags: [tldr, android]
source: https://github.com/tldr-pages/tldr.git
---
# logcat
> Dump a log of system messages, including stack traces when an error occurred, and information messages logged by applications.
> More information: <https://developer.android.com/tools/logcat>.
- Display system logs:
`logcat`
- Write system logs to a [f]ile:
`logcat -f {{path/to/file}}`
- Display lines that match a regular expression:
`logcat --regex {{regular_expression}}`
- Display logs for a specific PID:
`logcat --pid={{pid}}`
- Display logs for the process of a specific package:
`logcat --pid=$(pidof -s {{package}})`

29
android/pkg Normal file
View File

@@ -0,0 +1,29 @@
---
syntax: markdown
tags: [tldr, android]
source: https://github.com/tldr-pages/tldr.git
---
# pkg
> Package management utility for Termux.
> More information: <https://wiki.termux.com/wiki/Package_Management>.
- Upgrade all installed packages:
`pkg upgrade`
- Install a package:
`pkg install {{package}}`
- Uninstall a package:
`pkg uninstall {{package}}`
- Reinstall a package:
`pkg reinstall {{package}}`
- Search for a package:
`pkg search {{package}}`

29
android/pm Normal file
View File

@@ -0,0 +1,29 @@
---
syntax: markdown
tags: [tldr, android]
source: https://github.com/tldr-pages/tldr.git
---
# pm
> Display information about apps on an Android device.
> More information: <https://developer.android.com/tools/adb#pm>.
- List all installed apps:
`pm list packages`
- List all installed [s]ystem apps:
`pm list packages -s`
- List all installed [3]rd-party apps:
`pm list packages -3`
- List apps matching specific keywords:
`pm list packages {{keyword1 keyword2 ...}}`
- Display a path of the APK of a specific app:
`pm path {{app}}`

14
android/screencap Normal file
View File

@@ -0,0 +1,14 @@
---
syntax: markdown
tags: [tldr, android]
source: https://github.com/tldr-pages/tldr.git
---
# screencap
> Take a screenshot of a mobile display.
> This command can only be used through `adb shell`.
> More information: <https://developer.android.com/tools/adb#screencap>.
- Take a screenshot:
`screencap {{path/to/file}}`

25
android/settings Normal file
View File

@@ -0,0 +1,25 @@
---
syntax: markdown
tags: [tldr, android]
source: https://github.com/tldr-pages/tldr.git
---
# settings
> Get information about the Android OS.
> More information: <https://adbinstaller.com/commands/adb-shell-settings-5b670d5ee7958178a2955536>.
- List the settings in the `global` namespace:
`settings list {{global}}`
- Get a value of a specific setting:
`settings get {{global}} {{airplane_mode_on}}`
- Set a specific value of a setting:
`settings put {{system}} {{screen_brightness}} {{42}}`
- Delete a specific setting:
`settings delete {{secure}} {{screensaver_enabled}}`

18
android/wm Normal file
View File

@@ -0,0 +1,18 @@
---
syntax: markdown
tags: [tldr, android]
source: https://github.com/tldr-pages/tldr.git
---
# wm
> Show information about the screen of an Android device.
> This command can only be used through `adb shell`.
> More information: <https://adbinstaller.com/commands/adb-shell-wm-5b672b17e7958178a2955538>.
- Display the physical size of an Android device's screen:
`wm {{size}}`
- Display the physical density of an Android device's screen:
`wm {{density}}`

33
ani-cli Normal file
View File

@@ -0,0 +1,33 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# ani-cli
> A cli to browse and watch anime.
> More information: <https://github.com/pystardust/ani-cli>.
- Search anime by name:
`ani-cli "{{anime_name}}"`
- [d]ownload episode:
`ani-cli -d "{{anime_name}}"`
- Use [v]LC as the media player:
`ani-cli -v "{{anime_name}}"`
- Watch a specific [e]pisode:
`ani-cli -e {{episode_number}} "{{anime_name}}"`
- [c]ontinue watching anime from history:
`ani-cli -c`
- [U]pdate `ani-cli`:
`ani-cli -U`

25
anki Normal file
View File

@@ -0,0 +1,25 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# anki
> Powerful, intelligent flashcard program.
> More information: <https://docs.ankiweb.net>.
- Launch the GUI:
`anki`
- Use a specific [p]rofile:
`anki -p {{profile_name}}`
- Use a specific [l]anguage:
`anki -l {{language}}`
- Use a non-default directory (`~/Anki` for default):
`anki -b {{path/to/directory}}`

38
ansible Normal file
View File

@@ -0,0 +1,38 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# ansible
> Manage groups of computers remotely over SSH. (use the `/etc/ansible/hosts` file to add new groups/hosts).
> Some subcommands such as `ansible galaxy` have their own usage documentation.
> More information: <https://www.ansible.com/>.
- List hosts belonging to a group:
`ansible {{group}} --list-hosts`
- Ping a group of hosts by invoking the ping [m]odule:
`ansible {{group}} -m ping`
- Display facts about a group of hosts by invoking the setup [m]odule:
`ansible {{group}} -m setup`
- Execute a command on a group of hosts by invoking command module with arguments:
`ansible {{group}} -m command -a '{{my_command}}'`
- Execute a command with administrative privileges:
`ansible {{group}} --become --ask-become-pass -m command -a '{{my_command}}'`
- Execute a command using a custom inventory file:
`ansible {{group}} -i {{inventory_file}} -m command -a '{{my_command}}'`
- List the groups in an inventory:
`ansible localhost -m debug -a '{{var=groups.keys()}}'`

34
ansible-doc Normal file
View File

@@ -0,0 +1,34 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# ansible-doc
> Display information on modules installed in Ansible libraries.
> Display a terse listing of plugins and their short descriptions.
> More information: <https://docs.ansible.com/ansible/latest/cli/ansible-doc.html>.
- List available action plugins (modules):
`ansible-doc --list`
- List available plugins of a specific type:
`ansible-doc --type {{become|cache|callback|cliconf|connection|...}} --list`
- Show information about a specific action plugin (module):
`ansible-doc {{plugin_name}}`
- Show information about a plugin with a specific type:
`ansible-doc --type {{become|cache|callback|cliconf|connection|...}} {{plugin_name}}`
- Show the playbook snippet for action plugin (modules):
`ansible-doc --snippet {{plugin_name}}`
- Show information about an action plugin (module) as JSON:
`ansible-doc --json {{plugin_name}}`

37
ansible-galaxy Normal file
View File

@@ -0,0 +1,37 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# ansible-galaxy
> Create and manage Ansible roles.
> More information: <https://docs.ansible.com/ansible/latest/cli/ansible-galaxy.html>.
- Install a role:
`ansible-galaxy install {{username}}.{{role_name}}`
- Remove a role:
`ansible-galaxy remove {{username}}.{{role_name}}`
- List installed roles:
`ansible-galaxy list`
- Search for a given role:
`ansible-galaxy search {{role_name}}`
- Create a new role:
`ansible-galaxy init {{role_name}}`
- Get information about a user role:
`ansible-galaxy role info {{username}}.{{role_name}}`
- Get information about a collection:
`ansible-galaxy collection info {{username}}.{{collection_name}}`

26
ansible-inventory Normal file
View File

@@ -0,0 +1,26 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# ansible-inventory
> Display or dump an Ansible inventory.
> See also: `ansible`.
> More information: <https://docs.ansible.com/ansible/latest/cli/ansible-inventory.html>.
- Display the default inventory:
`ansible-inventory --list`
- Display a custom inventory:
`ansible-inventory --list --inventory {{path/to/file_or_script_or_directory}}`
- Display the default inventory in YAML:
`ansible-inventory --list --yaml`
- Dump the default inventory to a file:
`ansible-inventory --list --output {{path/to/file}}`

33
ansible-playbook Normal file
View File

@@ -0,0 +1,33 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# ansible-playbook
> Execute tasks defined in playbook on remote machines over SSH.
> More information: <https://docs.ansible.com/ansible/latest/cli/ansible-playbook.html>.
- Run tasks in playbook:
`ansible-playbook {{playbook}}`
- Run tasks in playbook with custom host [i]nventory:
`ansible-playbook {{playbook}} -i {{inventory_file}}`
- Run tasks in playbook with [e]xtra variables defined via the command-line:
`ansible-playbook {{playbook}} -e "{{variable1}}={{value1}} {{variable2}}={{value2}}"`
- Run tasks in playbook with [e]xtra variables defined in a JSON file:
`ansible-playbook {{playbook}} -e "@{{variables.json}}"`
- Run tasks in playbook for the given tags:
`ansible-playbook {{playbook}} --tags {{tag1,tag2}}`
- Run tasks in a playbook starting at a specific task:
`ansible-playbook {{playbook}} --start-at {{task_name}}`

25
ansible-pull Normal file
View File

@@ -0,0 +1,25 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# ansible-pull
> Pull ansible playbooks from a VCS repo and executes them for the local host.
> More information: <https://docs.ansible.com/ansible/latest/cli/ansible-pull.html>.
- Pull a playbook from a VCS and execute a default local.yml playbook:
`ansible-pull -U {{repository_url}}`
- Pull a playbook from a VCS and execute a specific playbook:
`ansible-pull -U {{repository_url}} {{playbook}}`
- Pull a playbook from a VCS at a specific branch and execute a specific playbook:
`ansible-pull -U {{repository_url}} -C {{branch}} {{playbook}}`
- Pull a playbook from a VCS, specify hosts file and execute a specific playbook:
`ansible-pull -U {{repository_url}} -i {{hosts_file}} {{playbook}}`

33
ansible-vault Normal file
View File

@@ -0,0 +1,33 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# ansible-vault
> Encrypts & decrypts values, data structures and files within Ansible projects.
> More information: <https://docs.ansible.com/ansible/latest/user_guide/vault.html#id17>.
- Create a new encrypted vault file with a prompt for a password:
`ansible-vault create {{vault_file}}`
- Create a new encrypted vault file using a vault key file to encrypt it:
`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}}`
- Encrypt a string using Ansible's encrypted string format, displaying interactive prompts:
`ansible-vault encrypt_string`
- View an encrypted file, using a password file to decrypt:
`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}}`

21
ansiweather Normal file
View File

@@ -0,0 +1,21 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# ansiweather
> A shell script for displaying the current weather conditions in your terminal.
> More information: <https://github.com/fcambus/ansiweather>.
- Display a [f]orecast using metric [u]nits for the next seven days for a specific [l]ocation:
`ansiweather -u metric -f 7 -l {{Rzeszow,PL}}`
- Display a [F]orecast for the next five days showing [s]ymbols and [d]aylight data for your current location:
`ansiweather -F -s true -d true`
- Display today's [w]ind and [h]umidity data for your current location:
`ansiweather -w true -h true`

29
ant Normal file
View File

@@ -0,0 +1,29 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# ant
> Apache Ant: build and manage Java-based projects.
> More information: <https://ant.apache.org>.
- Build a project with default build file `build.xml`:
`ant`
- Build a project using build [f]ile other than `build.xml`:
`ant -f {{buildfile.xml}}`
- Print information on possible targets for this project:
`ant -p`
- Print debugging information:
`ant -d`
- Execute all targets that do not depend on fail target(s):
`ant -k`

21
antibody Normal file
View File

@@ -0,0 +1,21 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# antibody
> "The fastest" shell plugin manager.
> More information: <https://getantibody.github.io>.
- Bundle all plugins for static loading:
`antibody bundle < {{~/.zsh_plugins.txt}} > {{~/.zsh_plugins.sh}}`
- Update all bundles:
`antibody update`
- List all installed plugins:
`antibody list`

17
anytopnm Normal file
View File

@@ -0,0 +1,17 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# anytopnm
> Converts an arbitrary type of image file to common image formats.
> More information: <https://netpbm.sourceforge.net/doc/anytopnm.html>.
- Convert an input image to PBM, PGM, or PPM format irrespective of the input type:
`anytopnm {{path/to/input}} > {{path/to/output.pnm}}`
- Display version:
`anytopnm -version`

29
apg Normal file
View File

@@ -0,0 +1,29 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# apg
> Creates arbitrarily complex random passwords.
> More information: <https://manned.org/apg>.
- Create random passwords (default password length is 8):
`apg`
- Create a password with at least 1 symbol (S), 1 number (N), 1 uppercase (C), 1 lowercase (L):
`apg -M SNCL`
- Create a password with 16 characters:
`apg -m {{16}}`
- Create a password with maximum length of 16:
`apg -x {{16}}`
- Create a password that doesn't appear in a dictionary (the dictionary file has to be provided):
`apg -r {{path/to/dictionary_file}}`

21
apktool Normal file
View File

@@ -0,0 +1,21 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# apktool
> Reverse engineer APK files.
> More information: <https://ibotpeaches.github.io/Apktool/>.
- Decode an APK file:
`apktool d {{path/to/file.apk}}`
- Build an APK file from a directory:
`apktool b {{path/to/directory}}`
- Install and store a framework:
`apktool if {{path/to/framework.apk}}`

22
apm Normal file
View File

@@ -0,0 +1,22 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# apm
> Atom editor Package Manager.
> See `atom`.
> More information: <https://github.com/atom/apm>.
- Install a package from <http://atom.io/packages> or a theme from <http://atom.io/themes>:
`apm install {{package}}`
- Remove a package/theme:
`apm remove {{package}}`
- Upgrade a package/theme:
`apm upgrade {{package}}`

21
apropos Normal file
View File

@@ -0,0 +1,21 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# apropos
> Search the manual pages for names and descriptions.
> More information: <https://manned.org/apropos>.
- Search for a keyword using a regular expression:
`apropos {{regular_expression}}`
- Search without restricting the output to the terminal width ([l]ong output):
`apropos -l {{regular_expression}}`
- Search for pages that match [a]ll the expressions given:
`apropos {{regular_expression_1}} -a {{regular_expression_2}} -a {{regular_expression_3}}`

30
ar Normal file
View File

@@ -0,0 +1,30 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# ar
> Create, modify, and extract from Unix archives. Typically used for static libraries (`.a`) and Debian packages (`.deb`).
> See also: `tar`.
> More information: <https://manned.org/ar>.
- E[x]tract all members from an archive:
`ar x {{path/to/file.a}}`
- Lis[t] contents in a specific archive:
`ar t {{path/to/file.ar}}`
- [r]eplace or add specific files to an archive:
`ar r {{path/to/file.deb}} {{path/to/debian-binary path/to/control.tar.gz path/to/data.tar.xz ...}}`
- In[s]ert an object file index (equivalent to using `ranlib`):
`ar s {{path/to/file.a}}`
- Create an archive with specific files and an accompanying object file index:
`ar rs {{path/to/file.a}} {{path/to/file1.o path/to/file2.o ...}}`

25
arc Normal file
View File

@@ -0,0 +1,25 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# arc
> Arcanist: a CLI for Phabricator.
> More information: <https://secure.phabricator.com/book/phabricator/article/arcanist/>.
- Send the changes to Differential for review:
`arc diff`
- Show pending revision information:
`arc list`
- Update Git commit messages after review:
`arc amend`
- Push Git changes:
`arc land`

14
arch Normal file
View File

@@ -0,0 +1,14 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# arch
> Display the name of the system architecture.
> See also `uname`.
> More information: <https://www.gnu.org/software/coreutils/arch>.
- Display the system's architecture:
`arch`

41
arduino Normal file
View File

@@ -0,0 +1,41 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# arduino
> Arduino Studio - Integrated Development Environment for the Arduino platform.
> More information: <https://github.com/arduino/Arduino/blob/master/build/shared/manpage.adoc>.
- Build a sketch:
`arduino --verify {{path/to/file.ino}}`
- Build and upload a sketch:
`arduino --upload {{path/to/file.ino}}`
- Build and upload a sketch to an Arduino Nano with an Atmega328p CPU, connected on port `/dev/ttyACM0`:
`arduino --board {{arduino:avr:nano:cpu=atmega328p}} --port {{/dev/ttyACM0}} --upload {{path/to/file.ino}}`
- Set the preference `name` to a given `value`:
`arduino --pref {{name}}={{value}}`
- Build a sketch, put the build results in the build directory, and reuse any previous build results in that directory:
`arduino --pref build.path={{path/to/build_directory}} --verify {{path/to/file.ino}}`
- Save any (changed) preferences to `preferences.txt`:
`arduino --save-prefs`
- Install the latest SAM board:
`arduino --install-boards "{{arduino:sam}}"`
- Install Bridge and Servo libraries:
`arduino --install-library "{{Bridge:1.0.0,Servo:1.2.0}}"`

30
arduino-builder Normal file
View File

@@ -0,0 +1,30 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# arduino-builder
> Compile arduino sketches.
> DEPRECATION WARNING: this tool is being phased out in favor of `arduino`.
> More information: <https://github.com/arduino/arduino-builder>.
- Compile a sketch:
`arduino-builder -compile {{path/to/sketch.ino}}`
- Specify the debug level (default: 5):
`arduino-builder -debug-level {{1..10}}`
- Specify a custom build directory:
`arduino-builder -build-path {{path/to/build_directory}}`
- Use a build option file, instead of specifying `--hardware`, `--tools`, etc. manually every time:
`arduino-builder -build-options-file {{path/to/build.options.json}}`
- Enable verbose mode:
`arduino-builder -verbose {{true}}`

18
argocd Normal file
View File

@@ -0,0 +1,18 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# argocd
> Command-line interface to control a Argo CD server.
> Some subcommands such as `argocd app` have their own usage documentation.
> More information: <https://argo-cd.readthedocs.io/en/stable/user-guide/commands/argocd/>.
- Login to Argo CD server:
`argocd login --insecure --username {{user}} --password {{password}} {{argocd_server:port}}`
- List applications:
`argocd app list`

41
argocd-app Normal file
View File

@@ -0,0 +1,41 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# argocd app
> Command-line interface to manage applications by Argo CD.
> More information: <https://argo-cd.readthedocs.io/en/stable/user-guide/commands/argocd_app/>.
- List applications:
`argocd app list --output {{json|yaml|wide}}`
- Get application details:
`argocd app get {{app_name}} --output {{json|yaml|wide}}`
- Deploy application internally (to the same cluster that Argo CD is running in):
`argocd app create {{app_name}} --repo {{git_repo_url}} --path {{path/to/repo}} --dest-server https://kubernetes.default.svc --dest-namespace {{ns}}`
- Delete an application:
`argocd app delete {{app_name}}`
- Enable application auto-sync:
`argocd app set {{app_name}} --sync-policy auto --auto-prune --self-heal`
- Preview app synchronization without affecting cluster:
`argocd app sync {{app_name}} --dry-run --prune`
- Show application deployment history:
`argocd app history {{app_name}} --output {{wide|id}}`
- Rollback application to a previous deployed version by history ID (deleting unexpected resources):
`argocd app rollback {{app_name}} {{history_id}} --prune`

25
argon2 Normal file
View File

@@ -0,0 +1,25 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# argon2
> Calculate Argon2 cryptographic hashes.
> More information: <https://github.com/P-H-C/phc-winner-argon2#command-line-utility>.
- Calculate a hash with a password and a salt with the default parameters:
`echo "{{password}}" | argon2 "{{salt_text}}"`
- Calculate a hash with the specified algorithm:
`echo "{{password}}" | argon2 "{{salt_text}}" -{{d|i|id}}`
- Display the output hash without additional information:
`echo "{{password}}" | argon2 "{{salt_text}}" -e`
- Calculate a hash with given iteration [t]imes, [m]emory usage, and [p]arallelism parameters:
`echo "{{password}}" | argon2 "{{salt_text}}" -t {{5}} -m {{20}} -p {{7}}`

12
aria2 Normal file
View File

@@ -0,0 +1,12 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# aria2
> This command is an alias of `aria2c`.
- View documentation for the updated command:
`tldr aria2c`

42
aria2c Normal file
View File

@@ -0,0 +1,42 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# aria2c
> Fast download utility.
> Supports HTTP(S), FTP, SFTP, BitTorrent, and Metalink.
> More information: <https://aria2.github.io>.
- Download a specific URI to a file:
`aria2c "{{url}}"`
- Download a file from a URI with a specific output name:
`aria2c --out={{path/to/file}} "{{url}}"`
- Download multiple different files in parallel:
`aria2c --force-sequential {{false}} "{{url1 url2 ...}}"`
- Download the same file from different mirrors and verify the checksum of the downloaded file:
`aria2c --checksum={{sha-256}}={{hash}} "{{url1}}" "{{url2}}" "{{urlN}}"`
- 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}}`
- Download with multiple connections:
`aria2c --split={{number_of_connections}} "{{url}}"`
- FTP download with username and password:
`aria2c --ftp-user={{username}} --ftp-passwd={{password}} "{{url}}"`
- Limit download speed in bytes/s:
`aria2c --max-download-limit={{speed}} "{{url}}"`

21
arp Normal file
View File

@@ -0,0 +1,21 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# arp
> Show and manipulate your system's ARP cache.
> More information: <https://manned.org/arp>.
- Show the current ARP table:
`arp -a`
- [d]elete a specific entry:
`arp -d {{address}}`
- [s]et up a new entry in the ARP table:
`arp -s {{address}} {{mac_address}}`

25
arp-scan Normal file
View File

@@ -0,0 +1,25 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# arp-scan
> Send ARP packets to hosts (specified as IP addresses or hostnames) to scan the local network.
> More information: <https://github.com/royhills/arp-scan>.
- Scan the current local network:
`arp-scan --localnet`
- Scan an IP network with a custom bitmask:
`arp-scan {{192.168.1.1}}/{{24}}`
- Scan an IP network within a custom range:
`arp-scan {{127.0.0.0}}-{{127.0.0.31}}`
- Scan an IP network with a custom net mask:
`arp-scan {{10.0.0.0}}:{{255.255.255.0}}`

34
arping Normal file
View File

@@ -0,0 +1,34 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# arping
> Discover and probe hosts in a network using the ARP protocol.
> Useful for MAC address discovery.
> More information: <https://github.com/ThomasHabets/arping>.
- Ping a host by ARP request packets:
`arping {{host_ip}}`
- Ping a host on a specific interface:
`arping -I {{interface}} {{host_ip}}`
- Ping a host and [f]inish after the first reply:
`arping -f {{host_ip}}`
- Ping a host a specific number ([c]ount) of times:
`arping -c {{count}} {{host_ip}}`
- Broadcast ARP request packets to update neighbours' ARP caches ([U]nsolicited ARP mode):
`arping -U {{ip_to_broadcast}}`
- [D]etect duplicated IP addresses in the network by sending ARP requests with a 3 second timeout:
`arping -D -w {{3}} {{ip_to_check}}`

25
asar Normal file
View File

@@ -0,0 +1,25 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# asar
> A file archiver for the Electron platform.
> More information: <https://github.com/electron/asar>.
- Archive a file or directory:
`asar pack {{path/to/input_file_or_directory}} {{path/to/output_archive.asar}}`
- Extract an archive:
`asar extract {{path/to/archive.asar}}`
- Extract a specific file from an archive:
`asar extract-file {{path/to/archive.asar}} {{file}}`
- List the contents of an archive file:
`asar list {{path/to/archive.asar}}`

25
asciidoctor Normal file
View File

@@ -0,0 +1,25 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# asciidoctor
> Convert AsciiDoc files to a publishable format.
> More information: <https://docs.asciidoctor.org>.
- Convert a specific `.adoc` file to HTML (the default output format):
`asciidoctor {{path/to/file.adoc}}`
- Convert a specific `.adoc` file to HTML and link a CSS stylesheet:
`asciidoctor -a stylesheet={{path/to/stylesheet.css}} {{path/to/file.adoc}}`
- Convert a specific `.adoc` file to embeddable HTML, removing everything except the body:
`asciidoctor --embedded {{path/to/file.adoc}}`
- Convert a specific `.adoc` file to a PDF using the `asciidoctor-pdf` library:
`asciidoctor --backend={{pdf}} --require={{asciidoctor-pdf}} {{path/to/file.adoc}}`

42
asciinema Normal file
View File

@@ -0,0 +1,42 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# asciinema
> Record and replay terminal sessions, and optionally share them on <https://asciinema.org>.
> See also: `terminalizer`.
> More information: <https://docs.asciinema.org/manual/cli/usage>.
- Associate the local install of `asciinema` with an asciinema.org account:
`asciinema auth`
- Make a new recording (finish it with `Ctrl+D` or type `exit`, and then choose to upload it or save it locally):
`asciinema rec`
- Make a new recording and save it to a local file:
`asciinema rec {{path/to/recording.cast}}`
- Replay a terminal recording from a local file:
`asciinema play {{path/to/recording.cast}}`
- Replay a terminal recording hosted on <https://asciinema.org>:
`asciinema play https://asciinema.org/a/{{cast_id}}`
- Make a new recording, limiting any [i]dle time to at most 2.5 seconds:
`asciinema rec -i 2.5`
- Print the full output of a locally saved recording:
`asciinema cat {{path/to/recording.cast}}`
- Upload a locally saved terminal session to asciinema.org:
`asciinema upload {{path/to/recording.cast}}`

17
asciitopgm Normal file
View File

@@ -0,0 +1,17 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# asciitopgm
> Convert ASCII graphics into a PGM file.
> More information: <https://netpbm.sourceforge.net/doc/asciitopgm.html>.
- Read ASCII data as input and produce a PGM image with pixel values that are an approximation of the "brightness" of the ASCII characters:
`asciitopgm {{path/to/input_file}} > {{path/to/output_file.pgm}}`
- Display version:
`asciitopgm -version`

33
asdf Normal file
View File

@@ -0,0 +1,33 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# asdf
> Command-line interface for managing versions of different packages.
> More information: <https://asdf-vm.com>.
- List all available plugins:
`asdf plugin list all`
- Install a plugin:
`asdf plugin add {{name}}`
- List all available versions for a package:
`asdf list all {{name}}`
- Install a specific version of a package:
`asdf install {{name}} {{version}}`
- Set global version for a package:
`asdf global {{name}} {{version}}`
- Set local version for a package:
`asdf local {{name}} {{version}}`

38
assimp Normal file
View File

@@ -0,0 +1,38 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# assimp
> Command-line client for the Open Asset Import Library.
> Supports loading of 40+ 3D file formats, and exporting to several popular 3D formats.
> More information: <https://assimp-docs.readthedocs.io/>.
- List all supported import formats:
`assimp listext`
- List all supported export formats:
`assimp listexport`
- Convert a file to one of the supported output formats, using the default parameters:
`assimp export {{input_file.stl}} {{output_file.obj}}`
- Convert a file using custom parameters (the dox_cmd.h file in assimp's source code lists available parameters):
`assimp export {{input_file.stl}} {{output_file.obj}} {{parameters}}`
- Display a summary of a 3D file's contents:
`assimp info {{path/to/file}}`
- Display help:
`assimp help`
- Display help for a specific subcommand:
`assimp {{subcommand}} --help`

21
astronomer Normal file
View File

@@ -0,0 +1,21 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# astronomer
> Detect illegitimate stars from bot accounts on GitHub projects.
> More information: <https://github.com/Ullaakut/astronomer>.
- Scan a repository:
`astronomer {{tldr-pages/tldr-node-client}}`
- Scan the maximum amount of stars in the repository:
`astronomer {{tldr-pages/tldr-node-client}} --stars {{50}}`
- Scan a repository including comparative reports:
`astronomer {{tldr-pages/tldr-node-client}} --verbose`

30
astyle Normal file
View File

@@ -0,0 +1,30 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# astyle
> Source code indenter, formatter, and beautifier for the C, C++, C# and Java programming languages.
> Upon running, a copy of the original file is created with an ".orig" appended to the original file name.
> More information: <http://astyle.sourceforge.net>.
- Apply the default style of 4 spaces per indent and no formatting changes:
`astyle {{source_file}}`
- Apply the Java style with attached braces:
`astyle --style=java {{path/to/file}}`
- Apply the allman style with broken braces:
`astyle --style=allman {{path/to/file}}`
- Apply a custom indent using spaces. Choose between 2 and 20 spaces:
`astyle --indent=spaces={{number_of_spaces}} {{path/to/file}}`
- Apply a custom indent using tabs. Choose between 2 and 20 tabs:
`astyle --indent=tab={{number_of_tabs}} {{path/to/file}}`

22
at Normal file
View File

@@ -0,0 +1,22 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# at
> Execute commands once at a later time.
> Service atd (or atrun) should be running for the actual executions.
> More information: <https://manned.org/at>.
- Execute commands from `stdin` in 5 minutes (press `Ctrl + D` when done):
`at now + 5 minutes`
- Execute a command from `stdin` at 10:00 AM today:
`echo "{{./make_db_backup.sh}}" | at 1000`
- Execute commands from a given file next Tuesday:
`at -f {{path/to/file}} 9:30 PM Tue`

14
atktopbm Normal file
View File

@@ -0,0 +1,14 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# atktopbm
> Convert a Andrew Toolkit raster object to a PBM image.
> See also: `pbmtoatk`.
> More information: <https://netpbm.sourceforge.net/doc/atktopbm.html>.
- Convert a Andrew Toolkit raster object to a PBM image:
`atktopbm {{path/to/image.atk}} > {{path/to/output.pbm}}`

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