mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
Update cheatsheets
This commit is contained in:
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# astyle
|
||||
|
||||
> Source code indenter, formatter, and beautifier for the C, C++, C# and Java programming languages.
|
||||
> 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: <https://manned.org/astyle>.
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`bzgrep "{{search_pattern}}" {{path/to/file}}`
|
||||
|
||||
- Use extended `regex` (supports `?`, `+`, `{}`, `()` and `|`), in case-insensitive mode:
|
||||
- Use extended `regex` (supports `?`, `+`, `{}`, `()`, and `|`), in case-insensitive mode:
|
||||
|
||||
`bzgrep {{[-E|--extended-regexp]}} {{[-i|--ignore-case]}} "{{search_pattern}}" {{path/to/file}}`
|
||||
|
||||
|
||||
2
tldr/c++
2
tldr/c++
@@ -7,6 +7,6 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
> This command is an alias of `g++`.
|
||||
|
||||
- View documentation for original command:
|
||||
- View documentation for the original command:
|
||||
|
||||
`tldr g++`
|
||||
|
||||
@@ -24,7 +24,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`colima start --kubernetes`
|
||||
|
||||
- Customize CPU count, RAM memory and disk space (in GiB):
|
||||
- Customize CPU count, RAM memory, and disk space (in GiB):
|
||||
|
||||
`colima start --cpu {{number}} --memory {{memory}} --disk {{storage_space}}`
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
> Select or reject lines common to two files. Both files must be sorted.
|
||||
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/comm-invocation.html>.
|
||||
|
||||
- Produce three tab-separated columns: lines only in first file, lines only in second file and common lines:
|
||||
- Produce three tab-separated columns: lines only in first file, lines only in second file, and common lines:
|
||||
|
||||
`comm {{file1}} {{file2}}`
|
||||
|
||||
|
||||
@@ -34,4 +34,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Create and use a coprocess running `bc`:
|
||||
|
||||
`coproc BC { bc --mathlib; }; echo "1/3" >&"${BC[1]}"; read <&"${BC[0]}" output; echo "$output"`
|
||||
`coproc BC { bc {{[-l|--mathlib]}}; }; echo "1/3" >&"${BC[1]}"; read <&"${BC[0]}" output; echo "$output"`
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# cron
|
||||
|
||||
> A system scheduler for running jobs or tasks unattended.
|
||||
> The command to submit, edit or delete entries to `cron` is called `crontab`.
|
||||
> The command to submit, edit, or delete entries to `cron` is called `crontab`.
|
||||
|
||||
- View documentation for managing `cron` entries:
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# ebook-convert
|
||||
|
||||
> Can be used to convert e-books between common formats, e.g. PDF, EPUB and MOBI.
|
||||
> Can be used to convert e-books between common formats, e.g. PDF, EPUB, and MOBI.
|
||||
> Part of the Calibre e-book library tool.
|
||||
> More information: <https://manual.calibre-ebook.com/generated/en/ebook-convert.html>.
|
||||
|
||||
@@ -13,6 +13,6 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`ebook-convert {{path/to/input_file}} {{output_file}}`
|
||||
|
||||
- Convert Markdown or HTML to e-book with TOC, title and author:
|
||||
- Convert Markdown or HTML to e-book with TOC, title, and author:
|
||||
|
||||
`ebook-convert {{path/to/input_file}} {{output_file}} --level1-toc="//h:h1" --level2-toc="//h:h2" --level3-toc="//h:h3" --title={{title}} --authors={{author}}`
|
||||
|
||||
@@ -22,7 +22,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Install a dependency:
|
||||
|
||||
`expo install <package_name>`
|
||||
`expo install {{package_name}}`
|
||||
|
||||
- Prebuild native Android/iOS projects:
|
||||
|
||||
|
||||
@@ -24,6 +24,6 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`fselect size, path from {{path/to/directory}} limit {{5}} into json`
|
||||
|
||||
- Use SQL aggregate functions to calculate minimum, maximum and average size of files in a directory:
|
||||
- Use SQL aggregate functions to calculate minimum, maximum, and average size of files in a directory:
|
||||
|
||||
`fselect "{{MIN(size), MAX(size), AVG(size), SUM(size), COUNT(*)}} from {{path/to/directory}}"`
|
||||
|
||||
@@ -24,6 +24,6 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`gdown {{folder_id|url}} {{[-O|--output]}} {{path/to/output_directory}} --folder`
|
||||
|
||||
- Download a tar archive, write it to `stdout` and extract it:
|
||||
- Download a tar archive, write it to `stdout`, and extract it:
|
||||
|
||||
`gdown {{tar_url}} {{[-O|--output]}} - {{[-q|--quiet]}} | tar xvf -`
|
||||
|
||||
@@ -27,4 +27,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Subscribe to target state updates under the subtree at a specific path:
|
||||
|
||||
`gnmic {{[-a|--address]}} {{ip:port}} subscribe --path {{path}}`
|
||||
`gnmic {{[-a|--address]}} {{ip:port}} {{[sub|subscribe]}} --path {{path}}`
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# gnmic get
|
||||
|
||||
> Get a snapshot of a gnmi network device operation data.
|
||||
> More information: <https://gnmic.kmrd.dev/cmd/get>.
|
||||
> More information: <https://gnmic.openconfig.net/cmd/get/>.
|
||||
|
||||
- Get a snapshot of the device state at a specific path:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# gnmic set
|
||||
|
||||
> Modify gnmi network device configuration.
|
||||
> More information: <https://gnmic.kmrd.dev/cmd/set>.
|
||||
> More information: <https://gnmic.openconfig.net/cmd/set/>.
|
||||
|
||||
- Update the value of a path:
|
||||
|
||||
|
||||
@@ -6,24 +6,24 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# gnmic subscribe
|
||||
|
||||
> Subscribe to a gnmic network device state updates.
|
||||
> More information: <https://gnmic.kmrd.dev/cmd/subscribe>.
|
||||
> More information: <https://gnmic.openconfig.net/cmd/subscribe/>.
|
||||
|
||||
- Subscribe to target state updates under the subtree of a specific path:
|
||||
|
||||
`gnmic {{[-a|--address]}} {{ip:port}} subscribe --path {{path}}`
|
||||
`gnmic {{[-a|--address]}} {{ip:port}} {{[sub|subscribe]}} --path {{path}}`
|
||||
|
||||
- Subscribe to a target with a sample interval of 30s (default is 10s):
|
||||
|
||||
`gnmic {{[-a|--address]}} {{ip:port}} subscribe --path {{path}} --sample-interval 30s`
|
||||
`gnmic {{[-a|--address]}} {{ip:port}} {{[sub|subscribe]}} --path {{path}} --sample-interval 30s`
|
||||
|
||||
- Subscribe to a target with sample interval and updates only on change:
|
||||
|
||||
`gnmic {{[-a|--address]}} {{ip:port}} subscribe --path {{path}} --stream-mode on-change --heartbeat-interval {{1m}}`
|
||||
`gnmic {{[-a|--address]}} {{ip:port}} {{[sub|subscribe]}} --path {{path}} --stream-mode on-change --heartbeat-interval {{1m}}`
|
||||
|
||||
- Subscribe to a target for only one update:
|
||||
|
||||
`gnmic {{[-a|--address]}} {{ip:port}} subscribe --path {{path}} --mode once`
|
||||
`gnmic {{[-a|--address]}} {{ip:port}} {{[sub|subscribe]}} --path {{path}} --mode once`
|
||||
|
||||
- Subscribe to a target and specify response encoding (json_ietf):
|
||||
|
||||
`gnmic {{[-a|--address]}} {{ip:port}} subscribe --path {{path}} {{[-e|--encoding]}} json_ietf`
|
||||
`gnmic {{[-a|--address]}} {{ip:port}} {{[sub|subscribe]}} --path {{path}} {{[-e|--encoding]}} json_ietf`
|
||||
|
||||
@@ -5,8 +5,8 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# gource
|
||||
|
||||
> Renders an animated tree diagram of Git, SVN, Mercurial and Bazaar repositories.
|
||||
> It shows files and directories being created, modified or removed over time.
|
||||
> Renders an animated tree diagram of Git, SVN, Mercurial, and Bazaar repositories.
|
||||
> It shows files and directories being created, modified, or removed over time.
|
||||
> More information: <https://manned.org/gource>.
|
||||
|
||||
- Run gource in a directory (if it isn't the repository's root directory, the root is sought up from there):
|
||||
|
||||
21
tldr/kaggle-config
Normal file
21
tldr/kaggle-config
Normal file
@@ -0,0 +1,21 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# kaggle config
|
||||
|
||||
> Manage Kaggle configuration.
|
||||
> More information: <https://github.com/Kaggle/kaggle-api/blob/main/docs/README.md#config>.
|
||||
|
||||
- View current configuration values:
|
||||
|
||||
`kaggle config view`
|
||||
|
||||
- Set a configuration value:
|
||||
|
||||
`kaggle config set {{[-n|--name]}} {{configuration_parameter}} {{[-v|--value]}} {{parameter_value}}`
|
||||
|
||||
- Clear a configuration value:
|
||||
|
||||
`kaggle config unset {{[-n|--name]}} {{configuration_parameter}}`
|
||||
@@ -32,7 +32,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`cat <<- {{EOF}} > {{path/to/file.txt}} <Enter> {{multiline_data}} <Enter> {{EOF}}`
|
||||
|
||||
- Pass command output to a program as a file descriptor:
|
||||
- Pass command output to a program as a file descriptor (Note: unlike the rest of these, this replaces the argument in-place with a file path like `/dev/fd/63`):
|
||||
|
||||
`diff <({{command1}}) <({{command2}})`
|
||||
|
||||
|
||||
@@ -34,7 +34,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Enable specific mods by their ID (comma-separated):
|
||||
|
||||
`{{path/to/ArkAscendedServer}} {{TheIsland_WP}} -mods={{mod_id1, mod_id2, ...}}`
|
||||
`{{path/to/ArkAscendedServer}} {{TheIsland_WP}} -mods={{mod_id1,mod_id2,...}}`
|
||||
|
||||
- Allow connections from specific platforms:
|
||||
|
||||
|
||||
@@ -21,6 +21,10 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`sudo semanage fcontext {{[-a|--add]}} {{[-t|--type]}} {{samba_share_t}} '{{/mnt/share(/.*)?}}'`
|
||||
|
||||
- Add a user-defined rule that creates a labeling equivalence between two subpaths:
|
||||
|
||||
`sudo semanage fcontext {{[-a|--add]}} {{[-e|--equal]}} /{{path/to/ref}} /{{path/to/target}}`
|
||||
|
||||
- Delete a user-defined rule using its PCRE `regex`:
|
||||
|
||||
`sudo semanage fcontext {{[-d|--delete]}} '{{/mnt/share(/.*)?}}'`
|
||||
|
||||
@@ -20,7 +20,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`tftp {{server_ip}} -6 -R {{port}}:{{port}}`
|
||||
|
||||
- Set the transfer mode to binary or ASCIi through the tftp client:
|
||||
- Set the transfer mode to binary or ASCII through the tftp client:
|
||||
|
||||
`mode {{binary|ascii}}`
|
||||
|
||||
|
||||
@@ -20,6 +20,6 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`liquidctl status`
|
||||
|
||||
- Match a string in product name to pick a device and set its fan speed to 0% at 20°C, 50% at 50°C and 100% at 70°C:
|
||||
- Match a string in product name to pick a device and set its fan speed to 0% at 20°C, 50% at 50°C, and 100% at 70°C:
|
||||
|
||||
`liquidctl {{[-m|--match]}} {{string}} set fan speed {{20 0 50 50 70 100}}`
|
||||
|
||||
@@ -16,7 +16,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`minikube ip`
|
||||
|
||||
- Access a service named my_service exposed via a node port and get the URL:
|
||||
- Access a service named `my_service` exposed via a node port and get the URL:
|
||||
|
||||
`minikube service {{my_service}} --url`
|
||||
|
||||
|
||||
2
tldr/ncc
2
tldr/ncc
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# ncc
|
||||
|
||||
> Compile a Node.js application into a single file.
|
||||
> Supports TypeScript, binary addons and dynamic requires.
|
||||
> Supports TypeScript, binary addons, and dynamic requires.
|
||||
> More information: <https://github.com/vercel/ncc#usage>.
|
||||
|
||||
- Bundle a Node.js application:
|
||||
|
||||
@@ -10,16 +10,16 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Explain why a specific package is installed:
|
||||
|
||||
`npm explain {{package_name}}`
|
||||
`npm {{[why|explain]}} {{package_name}}`
|
||||
|
||||
- Show explanation in JSON format:
|
||||
|
||||
`npm explain {{package_name}} --json`
|
||||
`npm {{[why|explain]}} {{package_name}} --json`
|
||||
|
||||
- Include peer dependencies in the explanation:
|
||||
|
||||
`npm explain {{package_name}} --include peer`
|
||||
`npm {{[why|explain]}} {{package_name}} --include peer`
|
||||
|
||||
- Limit explanation depth to 2 levels deep:
|
||||
|
||||
`npm explain {{package_name}} --depth 2`
|
||||
`npm {{[why|explain]}} {{package_name}} --depth 2`
|
||||
|
||||
@@ -11,16 +11,16 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Install all dependencies and then run tests:
|
||||
|
||||
`npm install-test`
|
||||
`npm {{[it|install-test]}}`
|
||||
|
||||
- Install a specific package and then run tests:
|
||||
|
||||
`npm install-test {{package_name}}`
|
||||
`npm {{[it|install-test]}} {{package_name}}`
|
||||
|
||||
- Install a package and save it as a dependency before running tests:
|
||||
|
||||
`npm install-test {{package_name}} {{[-S|--save]}}`
|
||||
`npm {{[it|install-test]}} {{package_name}} {{[-S|--save]}}`
|
||||
|
||||
- Install dependencies globally and then run tests:
|
||||
|
||||
`npm install-test {{[-g|--global]}}`
|
||||
`npm {{[it|install-test]}} {{[-g|--global]}}`
|
||||
|
||||
@@ -10,12 +10,12 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Symlink the current package globally:
|
||||
|
||||
`npm link`
|
||||
`npm {{[ln|link]}}`
|
||||
|
||||
- Link a globally linked package into another project's `node_modules`:
|
||||
|
||||
`npm link {{package_name}}`
|
||||
`npm {{[ln|link]}} {{package_name}}`
|
||||
|
||||
- Unlink a package from the current project:
|
||||
|
||||
`npm unlink {{package_name}}`
|
||||
`npm {{[r|unlink]}} {{package_name}}`
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# packwiz
|
||||
|
||||
> Create, edit and manage Minecraft modpacks.
|
||||
> Create, edit, and manage Minecraft modpacks.
|
||||
> More information: <https://packwiz.infra.link/reference/commands/packwiz/>.
|
||||
|
||||
- Interactively create a new modpack in the current directory:
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# pamvalidate
|
||||
|
||||
> Validate PAM, PGM, PBM and PPM files.
|
||||
> Validate PAM, PGM, PBM, and PPM files.
|
||||
> See also: `pamfile`, `pamfix`.
|
||||
> More information: <https://netpbm.sourceforge.net/doc/pamvalidate.html>.
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# parquet-tools
|
||||
|
||||
> Show, inspect and manipulate Parquet file.
|
||||
> Show, inspect, and manipulate Parquet file.
|
||||
> More information: <https://github.com/apache/parquet-mr>.
|
||||
|
||||
- Display the content of a Parquet file:
|
||||
|
||||
@@ -24,6 +24,6 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`pdftotext {{input.pdf}} {{output.txt}}`
|
||||
|
||||
- Convert pages 2, 3 and 4 of `input.pdf` to plain text and save them as `output.txt`:
|
||||
- Convert pages 2, 3, and 4 of `input.pdf` to plain text and save them as `output.txt`:
|
||||
|
||||
`pdftotext -f {{2}} -l {{4}} {{input.pdf}} {{output.txt}}`
|
||||
|
||||
@@ -12,7 +12,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`php yii {{serve}}`
|
||||
|
||||
- Generate a controller, views and related files for the CRUD actions on the specified model class:
|
||||
- Generate a controller, views, and related files for the CRUD actions on the specified model class:
|
||||
|
||||
`php yii {{gii/crud}} --modelClass={{ModelName}} --controllerClass={{ControllerName}}`
|
||||
|
||||
|
||||
@@ -28,6 +28,6 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`pio org list`
|
||||
|
||||
- Update the name, email or display name of an organization:
|
||||
- Update the name, email, or display name of an organization:
|
||||
|
||||
`pio org update --orgname {{new_organization_name}} --email {{new_email}} --displayname {{new_display_name}} {{organization_name}}`
|
||||
|
||||
@@ -8,11 +8,11 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
> View and modify PlatformIO settings.
|
||||
> More information: <https://docs.platformio.org/en/latest/core/userguide/cmd_settings.html>.
|
||||
|
||||
- Display the names, values and descriptions of all PlatformIO settings:
|
||||
- Display the names, values, and descriptions of all PlatformIO settings:
|
||||
|
||||
`pio settings get`
|
||||
|
||||
- Display the name, value and description of a specific PlatformIO setting:
|
||||
- Display the name, value, and description of a specific PlatformIO setting:
|
||||
|
||||
`pio settings get {{setting}}`
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
> Miscellaneous system commands for PlatformIO.
|
||||
> More information: <https://docs.platformio.org/en/latest/core/userguide/system/>.
|
||||
|
||||
- Install shell completion for the current shell (supports Bash, fish, Zsh and PowerShell):
|
||||
- Install shell completion for the current shell (supports Bash, fish, Zsh, and PowerShell):
|
||||
|
||||
`pio system completion install`
|
||||
|
||||
|
||||
@@ -5,11 +5,11 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# pio update
|
||||
|
||||
> Update installed PlatformIO Core packages, development platforms and global libraries.
|
||||
> Update installed PlatformIO Core packages, development platforms, and global libraries.
|
||||
> See also: `pio platform update`, `pio lib update`.
|
||||
> More information: <https://docs.platformio.org/en/latest/core/userguide/cmd_update.html>.
|
||||
|
||||
- Perform a full update of all packages, development platforms and global libraries:
|
||||
- Perform a full update of all packages, development platforms, and global libraries:
|
||||
|
||||
`pio update`
|
||||
|
||||
@@ -17,6 +17,6 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`pio update --core-packages`
|
||||
|
||||
- Check for new versions of packages, platforms and libraries but do not actually update them:
|
||||
- Check for new versions of packages, platforms, and libraries but do not actually update them:
|
||||
|
||||
`pio update --dry-run`
|
||||
|
||||
@@ -8,7 +8,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
> Reduce the number of colors in an image by applying dithering.
|
||||
> More information: <https://netpbm.sourceforge.net/doc/ppmdither.html>.
|
||||
|
||||
- Read a PPM image, apply dithering and save it to a file:
|
||||
- Read a PPM image, apply dithering, and save it to a file:
|
||||
|
||||
`ppmdither {{path/to/image.ppm}} > {{path/to/file.ppm}}`
|
||||
|
||||
|
||||
@@ -16,6 +16,6 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`ppmlabel -x {{pos_x1}} -y {{pos_y1}} {{[-t|-text]}} {{text1}} -x {{pos_x2}} -y {{pos_y2}} {{[-t|-text]}} {{text2}} {{path/to/input_file.ppm}} > {{path/to/output_file.ppm}}`
|
||||
|
||||
- Specify the line color, the background color, the tilt and the size of the added text:
|
||||
- Specify the line color, the background color, the tilt, and the size of the added text:
|
||||
|
||||
`ppmlabel -x {{pos_x}} -y {{pos_y}} {{[-c|-color]}} {{line_color}} {{[-b|-background]}} {{background_color}} {{[-a|-angle]}} {{tilt}} {{[-s|-size]}} {{size}} {{[-t|-text]}} {{text}} {{path/to/input_file.ppm}} > {{path/to/output_file.ppm}}`
|
||||
|
||||
@@ -8,6 +8,6 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
> Convert a PPM image to an Berkeley YUV file.
|
||||
> More information: <https://netpbm.sourceforge.net/doc/ppmtoeyuv.html>.
|
||||
|
||||
- Read a PPM image from the input file, convert it to a Berkeley YUV image and store it in the specified output file:
|
||||
- Read a PPM image from the input file, convert it to a Berkeley YUV image, and store it in the specified output file:
|
||||
|
||||
`ppmtoeyuv {{path/to/input_file.ppm}} > {{path/to/output_file.eyuv}}`
|
||||
|
||||
@@ -8,7 +8,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
> Copy a PPM image.
|
||||
> More information: <https://netpbm.sourceforge.net/doc/ppmtoppm.html>.
|
||||
|
||||
- Copy a PPM image (i.e. a PBM, PGM or PPM image) from `stdin` to `stdout`:
|
||||
- Copy a PPM image (i.e. a PBM, PGM, or PPM image) from `stdin` to `stdout`:
|
||||
|
||||
`ppmtoppm < {{path/to/image.ppm}} > {{path/to/output.ppm}}`
|
||||
|
||||
|
||||
@@ -8,6 +8,6 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
> Convert a PPM image to an Abekas YUV file.
|
||||
> More information: <https://netpbm.sourceforge.net/doc/ppmtoyuv.html>.
|
||||
|
||||
- Read a PPM image from the input file, convert it to an Abekas YUV image and store it in the specified output file:
|
||||
- Read a PPM image from the input file, convert it to an Abekas YUV image, and store it in the specified output file:
|
||||
|
||||
`ppmtoyuv {{path/to/input_file.ppm}} > {{path/to/output_file.yuv}}`
|
||||
|
||||
@@ -24,6 +24,6 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`quarto preview {{path/to/destination_directory|path/to/file}}`
|
||||
|
||||
- Publish a document or project to Quarto Pub, Github Pages, RStudio Connect or Netlify:
|
||||
- Publish a document or project to Quarto Pub, Github Pages, RStudio Connect, or Netlify:
|
||||
|
||||
`quarto publish {{quarto-pub|gh-pages|connect|netlify}}`
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# rage
|
||||
|
||||
> A simple, secure and modern file encryption tool (and Rust library) with small explicit keys, no configuration options, and UNIX-style composability.
|
||||
> A simple, secure, and modern file encryption tool (and Rust library) with small explicit keys, no configuration options, and UNIX-style composability.
|
||||
> Rust implementation of `age`.
|
||||
> More information: <https://github.com/str4d/rage>.
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`rails generate model {{Post}} {{title:string}} {{body:text}}`
|
||||
|
||||
- Generate a new controller named Posts with actions index, show, new and create:
|
||||
- Generate a new controller named Posts with actions index, show, new, and create:
|
||||
|
||||
`rails generate controller {{Posts}} {{index}} {{show}} {{new}} {{create}}`
|
||||
|
||||
|
||||
@@ -7,7 +7,6 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
> Restricted Bash shell, equivalent to `bash --restricted`.
|
||||
> Does not permit changing the working directory, redirecting command output, or modifying environment variables, among other things.
|
||||
> See also: `histexpand` for history expansion.
|
||||
> More information: <https://www.gnu.org/software/bash/manual/bash.html#The-Restricted-Shell>.
|
||||
|
||||
- Start an interactive shell session:
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# rclone
|
||||
|
||||
> Copy, synchronize or move files and directories to and from many cloud services.
|
||||
> Copy, synchronize, or move files and directories to and from many cloud services.
|
||||
> More information: <https://rclone.org/commands/rclone/>.
|
||||
|
||||
- Launch an interactive menu to setup rclone:
|
||||
|
||||
@@ -17,7 +17,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`rgrep {{[-i|--ignore-case]}} "{{search_pattern}}"`
|
||||
|
||||
- Recursively search for an extended `regex` pattern (supports `?`, `+`, `{}`, `()` and `|`) in the current working directory:
|
||||
- Recursively search for an extended `regex` pattern (supports `?`, `+`, `{}`, `()`, and `|`) in the current working directory:
|
||||
|
||||
`rgrep {{[-E|--extended-regexp]}} "{{search_pattern}}"`
|
||||
|
||||
|
||||
@@ -5,10 +5,10 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# rlwrap
|
||||
|
||||
> Add line editing, persistent history and prompt completion to a REPL command.
|
||||
> Add line editing, persistent history, and prompt completion to a REPL command.
|
||||
> More information: <https://manned.org/rlwrap>.
|
||||
|
||||
- Run a REPL command with line editing, persistent history and prompt completion:
|
||||
- Run a REPL command with line editing, persistent history, and prompt completion:
|
||||
|
||||
`rlwrap {{command}}`
|
||||
|
||||
@@ -24,6 +24,6 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`rlwrap {{[-c|--complete-filenames]}} {{command}}`
|
||||
|
||||
- Add coloured prompts, use colour name, or an ASCI-conformant colour specification. Use an uppercase colour name for bold styling:
|
||||
- Add coloured prompts, use colour name or an ANSI-conformant colour specification. Use an uppercase colour name for bold styling:
|
||||
|
||||
`rlwrap {{[-p|--prompt-colour=]}}{{black|red|green|yellow|blue|cyan|purple|white|colour_spec}} {{command}}`
|
||||
|
||||
@@ -12,11 +12,11 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`roll {{3d}}`
|
||||
|
||||
- Roll 1 8-sided die, add 3 and sum the results:
|
||||
- Roll 1 8-sided die, add 3, and sum the results:
|
||||
|
||||
`roll {{d8 + 3}}`
|
||||
|
||||
- Roll 4 6-sided dice, keep the 3 highest results and sum the results:
|
||||
- Roll 4 6-sided dice, keep the 3 highest results, and sum the results:
|
||||
|
||||
`roll {{4d6h3}}`
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`rsync {{path/to/source}} {{path/to/destination}}`
|
||||
|
||||
- Use archive mode (recursively copy directories, copy symlinks without resolving, and preserve permissions, ownership and modification times):
|
||||
- Use archive mode (recursively copy directories, copy symlinks without resolving, and preserve permissions, ownership, and modification times):
|
||||
|
||||
`rsync {{[-a|--archive]}} {{path/to/source}} {{path/to/destination}}`
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`rustup set default-host {{host_triple}}`
|
||||
|
||||
- Set the default profile (`minimal` includes only `rustc`, `rust-std` and `cargo`, whereas `default` adds `rust-docs`, `rustfmt` and `clippy`):
|
||||
- Set the default profile (`minimal` includes only `rustc`, `rust-std`, and `cargo`, whereas `default` adds `rust-docs`, `rustfmt`, and `clippy`):
|
||||
|
||||
`rustup set profile {{minimal|default}}`
|
||||
|
||||
|
||||
@@ -28,6 +28,6 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`sfdk --drop {{name}}`
|
||||
|
||||
- Run subcommand in specified scope (`global`, `session` or `command`):
|
||||
- Run subcommand in specified scope (`global`, `session`, or `command`):
|
||||
|
||||
`sfdk config --{{scope}} {{subcommand}}`
|
||||
|
||||
@@ -8,7 +8,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
> Deploy build results to a device.
|
||||
> More information: <https://github.com/sailfishos/sailfish-qtcreator/blob/master/share/qtcreator/sfdk/modules/50-testing-mb2/doc/command.deploy.adoc>.
|
||||
|
||||
- Deploy using a specified method (`pkcon`, `rsync`, `sdk`, `zypper`, `zypper-dup` or `manual`):
|
||||
- Deploy using a specified method (`pkcon`, `rsync`, `sdk`, `zypper`, `zypper-dup`, or `manual`):
|
||||
|
||||
`sfdk deploy --{{method}}`
|
||||
|
||||
@@ -24,6 +24,6 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`sfdk deploy --{{method}} "-ignore*"`
|
||||
|
||||
- Undeploy using a specified method (`pkcon`, `rpm`, `rsync`, `sdk` or `zypper`):
|
||||
- Undeploy using a specified method (`pkcon`, `rpm`, `rsync`, `sdk`, or `zypper`):
|
||||
|
||||
`sfdk undeploy --{{method}}`
|
||||
|
||||
@@ -8,7 +8,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
> Undeploy build results from a device.
|
||||
> More information: <https://github.com/sailfishos/sailfish-qtcreator/blob/master/share/qtcreator/sfdk/modules/50-testing-mb2/doc/command.undeploy.adoc>.
|
||||
|
||||
- Undeploy using a specified method (`pkcon`, `rpm`, `rsync`, `sdk` or `zypper`):
|
||||
- Undeploy using a specified method (`pkcon`, `rpm`, `rsync`, `sdk`, or `zypper`):
|
||||
|
||||
`sfdk undeploy --{{method}}`
|
||||
|
||||
|
||||
2
tldr/sox
2
tldr/sox
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# sox
|
||||
|
||||
> Sound eXchange: play, record and convert audio files.
|
||||
> Sound eXchange: play, record, and convert audio files.
|
||||
> Audio formats are identified by the extension.
|
||||
> More information: <https://manned.org/sox>.
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# sui client ptb
|
||||
|
||||
> Create, sign and execute programmable transaction blocks.
|
||||
> Create, sign, and execute programmable transaction blocks.
|
||||
> More information: <https://docs.sui.io/references/cli/ptb>.
|
||||
|
||||
- Call a Move function from a package and module:
|
||||
@@ -24,6 +24,6 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`sui client ptb --transfer-objects "[{{object_id}}]" @{{address}}`
|
||||
|
||||
- Publish a Move package, and transfer the upgrade capability to sender:
|
||||
- Publish a Move package and transfer the upgrade capability to sender:
|
||||
|
||||
`sui client ptb --move-call sui::tx_context::sender --assign sender --publish "." --assign upgrade_cap --transfer-objects "[upgrade_cap]" sender`
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# swift
|
||||
|
||||
> Create, run and build Swift projects.
|
||||
> Create, run, and build Swift projects.
|
||||
> More information: <https://manned.org/swiftc>.
|
||||
|
||||
- Start a REPL (interactive shell):
|
||||
|
||||
@@ -24,7 +24,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`ugrep {{[-l|--files-with-matches]}} "{{search_pattern}}"`
|
||||
|
||||
- Fuzzy search files with up to 3 extra, missing or mismatching characters in the pattern:
|
||||
- Fuzzy search files with up to 3 extra, missing, or mismatching characters in the pattern:
|
||||
|
||||
`ugrep {{[-Z|--fuzzy=]}}{{3}} "{{search_pattern}}"`
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`uname {{[-mp|--machine --processor]}}`
|
||||
|
||||
- Print kernel name, kernel release and kernel version:
|
||||
- Print kernel name, kernel release, and kernel version:
|
||||
|
||||
`uname {{[-srv|--kernel-name --kernel-release --kernel-version]}}`
|
||||
|
||||
|
||||
@@ -20,6 +20,6 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`verilator --lint-only -Wall`
|
||||
|
||||
- Create XML output about the design (files, modules, instance hierarchy, logic and data types) to feed into other tools:
|
||||
- Create XML output about the design (files, modules, instance hierarchy, logic, and data types) to feed into other tools:
|
||||
|
||||
`verilator --xml-output -Wall {{path/to/output.xml}}`
|
||||
|
||||
@@ -5,7 +5,8 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# virsh
|
||||
|
||||
> Manage `virsh` guest domains. (Note: `guest_id` can be the ID, name or UUID of the guest).
|
||||
> Manage `virsh` guest domains.
|
||||
> Note: `guest_id` can be the ID, name, or UUID of the guest.
|
||||
> Some subcommands such as `list` have their own usage documentation.
|
||||
> More information: <https://libvirt.org/manpages/virsh.html>.
|
||||
|
||||
|
||||
@@ -7,6 +7,6 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
> This command is an alias of `Rename-Item`.
|
||||
|
||||
- View documentation for original command:
|
||||
- View documentation for the original command:
|
||||
|
||||
`tldr Rename-Item`
|
||||
|
||||
@@ -7,6 +7,6 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
> This command is an alias of `Rename-Item`.
|
||||
|
||||
- View documentation for original command:
|
||||
- View documentation for the original command:
|
||||
|
||||
`tldr Rename-Item`
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# xargs
|
||||
|
||||
> Execute a command with piped arguments coming from another command, a file, etc.
|
||||
> The input is treated as a single block of text and split into separate pieces on spaces, tabs, newlines and end-of-file.
|
||||
> The input is treated as a single block of text and split into separate pieces on spaces, tabs, newlines, and end-of-file.
|
||||
> More information: <https://www.gnu.org/software/findutils/manual/html_mono/find.html#Invoking-xargs>.
|
||||
|
||||
- Run a command using the input data as arguments:
|
||||
@@ -17,7 +17,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`{{arguments_source}} | xargs sh -c "{{command1}} && {{command2}} | {{command3}}"`
|
||||
|
||||
- Gzip all files with `.log` extension taking advantage of multiple threads (`-print0` uses a null character to split file names, and `-0` uses it as delimiter):
|
||||
- Gzip all files with `.log` extension taking advantage of multiple threads (`-print0` uses a null character to split file names and `--null` uses it as delimiter):
|
||||
|
||||
`find . -name '*.log' -print0 | xargs {{[-0|--null]}} {{[-P|--max-procs]}} {{4}} {{[-n|--max-args]}} 1 gzip`
|
||||
|
||||
|
||||
2
tldr/xml
2
tldr/xml
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# xml
|
||||
|
||||
> XMLStarlet Toolkit: query, edit, check, convert and transform XML documents.
|
||||
> XMLStarlet Toolkit: query, edit, check, convert, and transform XML documents.
|
||||
> Some subcommands such as `xml validate` have their own usage documentation.
|
||||
> More information: <https://xmlstar.sourceforge.net/doc/UG/xmlstarlet-ug.html#idm47077139670224>.
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`xzgrep {{[-n|--line-number]}} "{{search_pattern}}" {{path/to/file}}`
|
||||
|
||||
- Use extended `regex` (supports `?`, `+`, `{}`, `()` and `|`), in case-insensitive mode:
|
||||
- Use extended `regex` (supports `?`, `+`, `{}`, `()`, and `|`), in case-insensitive mode:
|
||||
|
||||
`xzgrep {{[-E|--extended-regexp]}} {{[-i|--ignore-case]}} "{{search_pattern}}" {{path/to/file}}`
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# yolo
|
||||
|
||||
> Train, validate or infer models on various tasks and versions.
|
||||
> Train, validate, or infer models on various tasks and versions.
|
||||
> More information: <https://docs.ultralytics.com/cli/>.
|
||||
|
||||
- Create a copy of the default configuration in your current working directory:
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# zipgrep
|
||||
|
||||
> Find patterns in files in a Zip archive using extended `regex` (supports `?`, `+`, `{}`, `()` and `|`).
|
||||
> Find patterns in files in a Zip archive using extended `regex` (supports `?`, `+`, `{}`, `()`, and `|`).
|
||||
> More information: <https://manned.org/zipgrep>.
|
||||
|
||||
- Search for a pattern within a Zip archive:
|
||||
|
||||
@@ -31,3 +31,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- Unlock higher compression levels (up to 22) using more memory (both for compression and decompression):
|
||||
|
||||
`zstd --ultra -{{level}} {{path/to/file}}`
|
||||
|
||||
- Set the number of working threads to the number of physical CPU cores:
|
||||
|
||||
`zstd {{[-T|--threads]}} 0`
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# zstdcat
|
||||
|
||||
> This command is an alias of `zstd --decompress --stdout`.
|
||||
> This command is an alias of `zstd --decompress --stdout --force`.
|
||||
|
||||
- View documentation for the original command:
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# zstdmt
|
||||
|
||||
> This command is an alias of `zstd --threads 0` (which sets the number of working threads to the number of physical CPU cores).
|
||||
> This command is an alias of `zstd --threads 0`.
|
||||
|
||||
- View documentation for the original command:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user