From c4f575222cada456c2cef565b2a08ba55df3210d Mon Sep 17 00:00:00 2001 From: ivuorinen Date: Tue, 4 Jun 2024 00:14:12 +0000 Subject: [PATCH] Update cheatsheets --- tldr/age | 2 +- tldr/age-keygen | 2 +- tldr/apm | 2 +- tldr/compare | 12 +++--------- tldr/convert | 38 +++++--------------------------------- tldr/git-fsck | 3 ++- tldr/identify | 17 +++-------------- tldr/import | 16 +++------------- tldr/linux/mount.ddi | 2 +- tldr/linux/pw-dot | 24 ++++++++++++++++-------- tldr/linux/setcap | 2 +- tldr/magick | 5 +++-- tldr/magick-compare | 18 ++++++++++++++++++ tldr/magick-convert | 42 ++++++++++++++++++++++++++++++++++++++++++ tldr/magick-identify | 23 +++++++++++++++++++++++ tldr/magick-import | 22 ++++++++++++++++++++++ tldr/magick-mogrify | 31 +++++++++++++++++++++++++++++++ tldr/magick-montage | 30 ++++++++++++++++++++++++++++++ tldr/mogrify | 24 +++--------------------- tldr/montage | 24 +++--------------------- tldr/nix-build | 2 +- tldr/nix-shell | 2 +- tldr/nix-store | 2 +- tldr/nix3-build | 2 +- tldr/nix3-registry | 2 +- tldr/nix3-run | 2 +- tldr/nix3-search | 2 +- tldr/nix3-shell | 2 +- tldr/nix3-store | 2 +- tldr/pamfix | 4 ++-- tldr/pcdovtoppm | 2 +- tldr/rsync | 16 ++++++++-------- tldr/usql | 4 ---- 33 files changed, 232 insertions(+), 151 deletions(-) create mode 100644 tldr/magick-compare create mode 100644 tldr/magick-convert create mode 100644 tldr/magick-identify create mode 100644 tldr/magick-import create mode 100644 tldr/magick-mogrify create mode 100644 tldr/magick-montage diff --git a/tldr/age b/tldr/age index 65f8b2d5..1ab2c1bd 100644 --- a/tldr/age +++ b/tldr/age @@ -6,7 +6,7 @@ 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. +> See also: `age-keygen` for generating key pairs. > More information: . - Generate an encrypted file that can be decrypted with a passphrase: diff --git a/tldr/age-keygen b/tldr/age-keygen index 7181609d..9683108a 100644 --- a/tldr/age-keygen +++ b/tldr/age-keygen @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # age-keygen > Generate `age` key pairs. -> See `age` for how to encrypt/decrypt files. +> See also: `age` for encrypting/decrypting files. > More information: . - Generate a key pair, save it to an unencrypted file, and print the public key to `stdout`: diff --git a/tldr/apm b/tldr/apm index 7ca130ec..695b7f0b 100644 --- a/tldr/apm +++ b/tldr/apm @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # apm > Atom editor Package Manager. -> See `atom`. +> See also: `atom`. > More information: . - Install a package from or a theme from : diff --git a/tldr/compare b/tldr/compare index 371ee607..32812b7d 100644 --- a/tldr/compare +++ b/tldr/compare @@ -5,14 +5,8 @@ source: https://github.com/tldr-pages/tldr.git --- # compare -> Create a comparison image to visually annotate the difference between two images. -> Part of ImageMagick. -> More information: . +> This command is an alias of `magick compare`. -- Compare two images: +- View documentation for the original command: -`compare {{path/to/image1.png}} {{path/to/image2.png}} {{path/to/diff.png}}` - -- Compare two images using the specified metric: - -`compare -verbose -metric {{PSNR}} {{path/to/image1.png}} {{path/to/image2.png}} {{path/to/diff.png}}` +`tldr magick compare` diff --git a/tldr/convert b/tldr/convert index 6c856054..1d165da1 100644 --- a/tldr/convert +++ b/tldr/convert @@ -5,38 +5,10 @@ source: https://github.com/tldr-pages/tldr.git --- # convert -> Convert between image formats, scale, join, and create images, and much more. -> Part of ImageMagick. -> More information: . +> This command is an alias of `magick convert`. +> Note: this alias is deprecated since ImageMagick 7. It has been replaced by `magick`. +> Use `magick convert` if you need to use the old tool in versions 7+. -- Convert an image from JPEG to PNG: +- View documentation for the original command: -`convert {{path/to/input_image.jpg}} {{path/to/output_image.png}}` - -- Scale an image to 50% of its original size: - -`convert {{path/to/input_image.png}} -resize 50% {{path/to/output_image.png}}` - -- Scale an image keeping the original aspect ratio to a maximum dimension of 640x480: - -`convert {{path/to/input_image.png}} -resize 640x480 {{path/to/output_image.png}}` - -- Scale an image to have a specified file size: - -`convert {{path/to/input_image.png}} -define jpeg:extent=512kb {{path/to/output_image.jpg}}` - -- Vertically/Horizontally append images: - -`convert {{path/to/image1.png path/to/image2.png ...}} {{-append|+append}} {{path/to/output_image.png}}` - -- Create a GIF from a series of images with 100ms delay between them: - -`convert {{path/to/image1.png path/to/image2.png ...}} -delay {{10}} {{path/to/animation.gif}}` - -- Create an image with nothing but a solid red background: - -`convert -size {{800x600}} "xc:{{#ff0000}}" {{path/to/image.png}}` - -- Create a favicon from several images of different sizes: - -`convert {{path/to/image1.png path/to/image2.png ...}} {{path/to/favicon.ico}}` +`tldr magick convert` diff --git a/tldr/git-fsck b/tldr/git-fsck index a5a74dc9..09bd9077 100644 --- a/tldr/git-fsck +++ b/tldr/git-fsck @@ -6,7 +6,8 @@ source: https://github.com/tldr-pages/tldr.git # git fsck > Verify the validity and connectivity of nodes in a Git repository index. -> Does not make any modifications. See `git gc` for cleaning up dangling blobs. +> Does not make any modifications. +> See also: `git gc` for cleaning up dangling blobs. > More information: . - Check the current repository: diff --git a/tldr/identify b/tldr/identify index ee91f678..356ba421 100644 --- a/tldr/identify +++ b/tldr/identify @@ -5,19 +5,8 @@ source: https://github.com/tldr-pages/tldr.git --- # identify -> Describe the format and characteristics of image files. -> Part of ImageMagick. -> More information: . +> This command is an alias of `magick identify`. -- Describe the format and basic characteristics of an image: +- View documentation for the original command: -`identify {{path/to/image}}` - -- Describe the format and verbose characteristics of an image: - -`identify -verbose {{path/to/image}}` - -- Collect dimensions of all JPEG files in the current directory and save them into a CSV file: - -`identify -format "{{%f,%w,%h -}}" {{*.jpg}} > {{path/to/filelist.csv}}` +`tldr magick identify` diff --git a/tldr/import b/tldr/import index 3609ecaa..e59502fe 100644 --- a/tldr/import +++ b/tldr/import @@ -5,18 +5,8 @@ source: https://github.com/tldr-pages/tldr.git --- # import -> Capture some or all of an X server screen, and save the image to a file. -> Part of ImageMagick. -> More information: . +> This command is an alias of `magick import`. -- Capture the entire X server screen into a PostScript file: +- View documentation for the original command: -`import -window root {{path/to/output.ps}}` - -- Capture contents of a remote X server screen into a PNG image: - -`import -window root -display {{remote_host}}:{{screen}}.{{display}} {{path/to/output.png}}` - -- Capture a specific window given its ID as displayed by `xwininfo` into a JPEG image: - -`import -window {{window_id}} {{path/to/output.jpg}}` +`tldr magick import` diff --git a/tldr/linux/mount.ddi b/tldr/linux/mount.ddi index 548b0234..368be56b 100644 --- a/tldr/linux/mount.ddi +++ b/tldr/linux/mount.ddi @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # mount.ddi > Mount Discoverable Disk Images. -> See `tldr systemd-dissect` for other commands relevant to DDIs. +> See also: `systemd-dissect` for other commands relevant to DDIs. > More information: . - Mount an OS image: diff --git a/tldr/linux/pw-dot b/tldr/linux/pw-dot index e6a070d6..04441fde 100644 --- a/tldr/linux/pw-dot +++ b/tldr/linux/pw-dot @@ -13,22 +13,30 @@ source: https://github.com/tldr-pages/tldr.git `pw-dot` -- Specify an output file, showing all object types: +- Read objects from `pw-dump` JSON file: -`pw-dot --output {{path/to/file.dot}} --all` +`pw-dot {{-j|--json}} {{path/to/file.json}}` + +- Specify an [o]utput file, showing [a]ll object types: + +`pw-dot --output {{path/to/file.dot}} {{-a|--all}}` - Print `.dot` graph to `stdout`, showing all object properties: -`pw-dot --output - --detail` +`pw-dot --output - {{-d|--detail}}` -- Generate a graph from a remote instance, showing only linked objects: +- Generate a graph from a [r]emote instance, showing only linked objects: -`pw-dot --remote {{remote_name}} --smart` +`pw-dot --remote {{remote_name}} {{-s|--smart}}` -- Lay the graph from left to right, instead of dot's default top to bottom: +- Lay the graph from [l]eft to [r]ight, instead of dot's default top to bottom: -`pw-dot --lr` +`pw-dot {{-L|--lr}}` - Lay the graph using 90-degree angles in edges: -`pw-dot --90` +`pw-dot {{-9|--90}}` + +- Display help: + +`pw-dot --help` diff --git a/tldr/linux/setcap b/tldr/linux/setcap index 837f3d8b..a87753dc 100644 --- a/tldr/linux/setcap +++ b/tldr/linux/setcap @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # setcap > Set capabilities of specified file. -> See also: `tldr getcap`. +> See also: `getcap`. > More information: . - Set capability `cap_net_raw` (to use RAW and PACKET sockets) for a given file: diff --git a/tldr/magick b/tldr/magick index 9354bd7c..8734dc55 100644 --- a/tldr/magick +++ b/tldr/magick @@ -6,8 +6,9 @@ source: https://github.com/tldr-pages/tldr.git # magick > Create, edit, compose, or convert between image formats. -> ImageMagick version 7+. See `convert` for versions 6 and below. -> More information: . +> This tool replaces `convert` in ImageMagick 7+. See `magick convert` to use the old tool in versions 7+. +> Some subcommands, such as `mogrify` have their own usage documentation. +> More information: . - Convert between image formats: diff --git a/tldr/magick-compare b/tldr/magick-compare new file mode 100644 index 00000000..2e926e61 --- /dev/null +++ b/tldr/magick-compare @@ -0,0 +1,18 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# magick compare + +> Create a comparison image to visually annotate the difference between two images. +> See also: `magick`. +> More information: . + +- Compare two images: + +`magick compare {{path/to/image1.png}} {{path/to/image2.png}} {{path/to/diff.png}}` + +- Compare two images using the specified metric: + +`magick compare -verbose -metric {{PSNR}} {{path/to/image1.png}} {{path/to/image2.png}} {{path/to/diff.png}}` diff --git a/tldr/magick-convert b/tldr/magick-convert new file mode 100644 index 00000000..8d6b5df5 --- /dev/null +++ b/tldr/magick-convert @@ -0,0 +1,42 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# magick convert + +> Convert between image formats, scale, join, and create images, and much more. +> Note: this tool (previously `convert`) has been replaced by `magick` in ImageMagick 7+. +> More information: . + +- Convert an image from JPEG to PNG: + +`magick convert {{path/to/input_image.jpg}} {{path/to/output_image.png}}` + +- Scale an image to 50% of its original size: + +`magick convert {{path/to/input_image.png}} -resize 50% {{path/to/output_image.png}}` + +- Scale an image keeping the original aspect ratio to a maximum dimension of 640x480: + +`magick convert {{path/to/input_image.png}} -resize 640x480 {{path/to/output_image.png}}` + +- Scale an image to have a specified file size: + +`magick convert {{path/to/input_image.png}} -define jpeg:extent=512kb {{path/to/output_image.jpg}}` + +- Vertically/Horizontally append images: + +`magick convert {{path/to/image1.png path/to/image2.png ...}} {{-append|+append}} {{path/to/output_image.png}}` + +- Create a GIF from a series of images with 100ms delay between them: + +`magick convert {{path/to/image1.png path/to/image2.png ...}} -delay {{10}} {{path/to/animation.gif}}` + +- Create an image with nothing but a solid red background: + +`magick convert -size {{800x600}} "xc:{{#ff0000}}" {{path/to/image.png}}` + +- Create a favicon from several images of different sizes: + +`magick convert {{path/to/image1.png path/to/image2.png ...}} {{path/to/favicon.ico}}` diff --git a/tldr/magick-identify b/tldr/magick-identify new file mode 100644 index 00000000..c23d2f02 --- /dev/null +++ b/tldr/magick-identify @@ -0,0 +1,23 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# magick identify + +> Describe the format and characteristics of image files. +> See also: `magick`. +> More information: . + +- Describe the format and basic characteristics of an image: + +`magick identify {{path/to/image}}` + +- Describe the format and verbose characteristics of an image: + +`magick identify -verbose {{path/to/image}}` + +- Collect dimensions of all JPEG files in the current directory and save them into a CSV file: + +`magick identify -format "{{%f,%w,%h +}}" {{*.jpg}} > {{path/to/filelist.csv}}` diff --git a/tldr/magick-import b/tldr/magick-import new file mode 100644 index 00000000..e24ec59e --- /dev/null +++ b/tldr/magick-import @@ -0,0 +1,22 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# magick import + +> Capture some or all of an X server screen and save the image to a file. +> See also: `magick`. +> More information: . + +- Capture the entire X server screen into a PostScript file: + +`magick import -window root {{path/to/output.ps}}` + +- Capture contents of a remote X server screen into a PNG image: + +`magick import -window root -display {{remote_host}}:{{screen}}.{{display}} {{path/to/output.png}}` + +- Capture a specific window given its ID as displayed by `xwininfo` into a JPEG image: + +`magick import -window {{window_id}} {{path/to/output.jpg}}` diff --git a/tldr/magick-mogrify b/tldr/magick-mogrify new file mode 100644 index 00000000..64d1d215 --- /dev/null +++ b/tldr/magick-mogrify @@ -0,0 +1,31 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# magick mogrify + +> Perform operations on multiple images, such as resizing, cropping, flipping, and adding effects. +> Changes are applied directly to the original file. +> See also: `magick`. +> More information: . + +- Resize all JPEG images in the directory to 50% of their initial size: + +`magick mogrify -resize {{50%}} {{*.jpg}}` + +- Resize all images starting with `DSC` to 800x600: + +`magick mogrify -resize {{800x600}} {{DSC*}}` + +- Convert all PNGs in the directory to JPEG: + +`magick mogrify -format {{jpg}} {{*.png}}` + +- Halve the saturation of all image files in the current directory: + +`magick mogrify -modulate {{100,50}} {{*}}` + +- Double the brightness of all image files in the current directory: + +`magick mogrify -modulate {{200}} {{*}}` diff --git a/tldr/magick-montage b/tldr/magick-montage new file mode 100644 index 00000000..edc71875 --- /dev/null +++ b/tldr/magick-montage @@ -0,0 +1,30 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# magick montage + +> Tile images into a customizable grid. +> See also: `magick`. +> More information: . + +- Tile images into a grid, automatically resizing images larger than the grid cell size: + +`magick montage {{path/to/image1.jpg path/to/image2.jpg ...}} {{path/to/montage.jpg}}` + +- Tile images into a grid, automatically calculating the grid cell size from the largest image: + +`magick montage {{path/to/image1.jpg path/to/image2.jpg ...}} -geometry {{+0+0}} {{path/to/montage.jpg}}` + +- Specify the grid cell size and resize images to fit it before tiling: + +`magick montage {{path/to/image1.jpg path/to/image2.jpg ...}} -geometry {{640x480+0+0}} {{path/to/montage.jpg}}` + +- Limit the number of rows and columns in the grid, causing input images to overflow into multiple output montages: + +`magick montage {{path/to/image1.jpg path/to/image2.jpg ...}} -geometry {{+0+0}} -tile {{2x3}} {{montage_%d.jpg}}` + +- Resize and crop images to fill their grid cells before tiling: + +`magick montage {{path/to/image1.jpg path/to/image2.jpg ...}} -geometry {{+0+0}} -resize {{640x480^}} -gravity {{center}} -crop {{640x480+0+0}} {{path/to/montage.jpg}}` diff --git a/tldr/mogrify b/tldr/mogrify index 4df533a9..6af53ec4 100644 --- a/tldr/mogrify +++ b/tldr/mogrify @@ -5,26 +5,8 @@ source: https://github.com/tldr-pages/tldr.git --- # mogrify -> Perform operations on multiple images, such as resizing, cropping, flipping, and adding effects. -> Changes are applied directly to the original file. Part of ImageMagick. -> More information: . +> This command is an alias of `magick mogrify`. -- Resize all JPEG images in the directory to 50% of their initial size: +- View documentation for the original command: -`mogrify -resize {{50%}} {{*.jpg}}` - -- Resize all images starting with `DSC` to 800x600: - -`mogrify -resize {{800x600}} {{DSC*}}` - -- Convert all PNGs in the directory to JPEG: - -`mogrify -format {{jpg}} {{*.png}}` - -- Halve the saturation of all image files in the current directory: - -`mogrify -modulate {{100,50}} {{*}}` - -- Double the brightness of all image files in the current directory: - -`mogrify -modulate {{200}} {{*}}` +`tldr magick mogrify` diff --git a/tldr/montage b/tldr/montage index 151ae57e..2fcb2843 100644 --- a/tldr/montage +++ b/tldr/montage @@ -5,26 +5,8 @@ source: https://github.com/tldr-pages/tldr.git --- # montage -> Tiles images into a customizable grid. -> Part of ImageMagick. -> More information: . +> This command is an alias of `magick montage`. -- Tile images into a grid, automatically resizing images larger than the grid cell size: +- View documentation for the original command: -`montage {{path/to/image1.jpg path/to/image2.jpg ...}} {{path/to/montage.jpg}}` - -- Tile images into a grid, automatically calculating the grid cell size from the largest image: - -`montage {{path/to/image1.jpg path/to/image2.jpg ...}} -geometry {{+0+0}} {{path/to/montage.jpg}}` - -- Specify the grid cell size and resize images to fit it before tiling: - -`montage {{path/to/image1.jpg path/to/image2.jpg ...}} -geometry {{640x480+0+0}} {{path/to/montage.jpg}}` - -- Limit the number of rows and columns in the grid, causing input images to overflow into multiple output montages: - -`montage {{path/to/image1.jpg path/to/image2.jpg ...}} -geometry {{+0+0}} -tile {{2x3}} {{montage_%d.jpg}}` - -- Resize and crop images to fill their grid cells before tiling: - -`montage {{path/to/image1.jpg path/to/image2.jpg ...}} -geometry {{+0+0}} -resize {{640x480^}} -gravity {{center}} -crop {{640x480+0+0}} {{path/to/montage.jpg}}` +`tldr magick montage` diff --git a/tldr/nix-build b/tldr/nix-build index 887c9633..6690c849 100644 --- a/tldr/nix-build +++ b/tldr/nix-build @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # nix-build > Build a Nix expression. -> See also: `tldr nix3 build`. +> See also: `nix3 build`. > More information: . - Build a Nix expression: diff --git a/tldr/nix-shell b/tldr/nix-shell index b6ee9ab2..ff57ff99 100644 --- a/tldr/nix-shell +++ b/tldr/nix-shell @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # nix-shell > Start an interactive shell based on a Nix expression. -> See also: `tldr nix3 shell`. +> See also: `nix3 shell`. > More information: . - Start with nix expression in `shell.nix` or `default.nix` in the current directory: diff --git a/tldr/nix-store b/tldr/nix-store index cf9f494b..f642c7c0 100644 --- a/tldr/nix-store +++ b/tldr/nix-store @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # nix-store > Manipulate or query the Nix store. -> See also: `tldr nix3 store`. +> See also: `nix3 store`. > More information: . - Collect garbage, such as removing unused paths: diff --git a/tldr/nix3-build b/tldr/nix3-build index e43cea7e..f1f378c2 100644 --- a/tldr/nix3-build +++ b/tldr/nix3-build @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # nix build > Build a Nix expression (downloading from the cache when possible). -> See also: `tldr nix-build`. See `tldr nix3 flake` for information about flakes. +> See also: `nix-build` for information about traditional Nix builds from expressions, `nix3 flake` for information about flakes. > More information: . - Build a package from nixpkgs, symlinking the result to `./result`: diff --git a/tldr/nix3-registry b/tldr/nix3-registry index 0f767502..888156ee 100644 --- a/tldr/nix3-registry +++ b/tldr/nix3-registry @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # nix registry > Manage a Nix flake registry. -> See `tldr nix3 flake` for information about flakes. +> See also: `nix3 flake` for information about flakes. > More information: . - Pin the `nixpkgs` revision to the current version of the upstream repository: diff --git a/tldr/nix3-run b/tldr/nix3-run index e7e6512a..3ba17e2d 100644 --- a/tldr/nix3-run +++ b/tldr/nix3-run @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # nix run > Run an application from a Nix flake. -> See `tldr nix3 flake` for information about flakes. +> See also: `nix3 flake` for information about flakes. > More information: . - Run the default application in the flake in the current directory: diff --git a/tldr/nix3-search b/tldr/nix3-search index bc7e4034..0c493911 100644 --- a/tldr/nix3-search +++ b/tldr/nix3-search @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # nix search > Search for packages in a Nix flake. -> See `tldr nix3 flake` for information about flakes. +> See also: `nix3 flake` for information about flakes. > More information: . - Search `nixpkgs` for a package based on its name or description: diff --git a/tldr/nix3-shell b/tldr/nix3-shell index 6552b633..991998e9 100644 --- a/tldr/nix3-shell +++ b/tldr/nix3-shell @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # nix shell > Start a shell in which the specified packages are available. -> See also: `tldr nix-shell`. See `tldr nix3 flake` for information about flakes. +> See also: `nix-shell` for setting up development environments, `nix3 flake` for information about flakes. > More information: . - Start an interactive shell with some packages from `nixpkgs`: diff --git a/tldr/nix3-store b/tldr/nix3-store index ba3b23ac..ceacb3db 100644 --- a/tldr/nix3-store +++ b/tldr/nix3-store @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # nix store > Manipulate the Nix store. -> See also: `tldr nix-store`. +> See also: `nix-store`. > More information: . - Collect garbage, i.e. remove unused paths to reduce space usage: diff --git a/tldr/pamfix b/tldr/pamfix index a606c392..2b129229 100644 --- a/tldr/pamfix +++ b/tldr/pamfix @@ -11,12 +11,12 @@ source: https://github.com/tldr-pages/tldr.git - Fix a Netpbm file that is missing its last part: -`pamfix -truncate {{path/to/corrupted.ext} > {{path/to/output.ext}}` +`pamfix -truncate {{path/to/corrupted.ext}} > {{path/to/output.ext}}` - Fix a Netpbm file where pixel values exceed the image's `maxval` by lowering the offending pixels' values: `pamfix -clip {{path/to/corrupted.ext}} > {{path/to/output.ext}}` -- Fix a Netpbm file where pixel values exceed the image's maxval by increasing it: +- Fix a Netpbm file where pixel values exceed the image's `maxval` by increasing it: `pamfix -changemaxval {{path/to/corrupted.pam|pbm|pgm|ppm}} > {{path/to/output.pam|pbm|pgm|ppm}}` diff --git a/tldr/pcdovtoppm b/tldr/pcdovtoppm index 640a7d1e..6c25b95c 100644 --- a/tldr/pcdovtoppm +++ b/tldr/pcdovtoppm @@ -22,4 +22,4 @@ source: https://github.com/tldr-pages/tldr.git - Use the specified [f]ont for annotations and paint the background [w]hite: -`pcdovtoppm -a {{number}} -w {{path/to/file.pcd}} > {{path/to/output.ppm}}` +`pcdovtoppm -f {{font}} -w {{path/to/file.pcd}} > {{path/to/output.ppm}}` diff --git a/tldr/rsync b/tldr/rsync index 3e92b17c..26679656 100644 --- a/tldr/rsync +++ b/tldr/rsync @@ -15,28 +15,28 @@ source: https://github.com/tldr-pages/tldr.git - Use archive mode (recursively copy directories, copy symlinks without resolving, and preserve permissions, ownership and modification times): -`rsync --archive {{path/to/source}} {{path/to/destination}}` +`rsync {{-a|--archive}} {{path/to/source}} {{path/to/destination}}` - Compress the data as it is sent to the destination, display verbose and human-readable progress, and keep partially transferred files if interrupted: -`rsync --compress --verbose --human-readable --partial --progress {{path/to/source}} {{path/to/destination}}` +`rsync {{-zvhP|--compress --verbose --human-readable --partial --progress}} {{path/to/source}} {{path/to/destination}}` - Recursively copy directories: -`rsync --recursive {{path/to/source}} {{path/to/destination}}` +`rsync {{-r|--recursive}} {{path/to/source}} {{path/to/destination}}` - Transfer directory contents, but not the directory itself: -`rsync --recursive {{path/to/source}}/ {{path/to/destination}}` +`rsync {{-r|--recursive}} {{path/to/source}}/ {{path/to/destination}}` -- Use archive mode, resolve symlinks and skip files that are newer on the destination: +- Use archive mode, resolve symlinks, and skip files that are newer on the destination: -`rsync --archive --update --copy-links {{path/to/source}} {{path/to/destination}}` +`rsync {{-auL|--archive --update --copy-links}} {{path/to/source}} {{path/to/destination}}` - Transfer a directory from a remote host running `rsyncd` and delete files on the destination that do not exist on the source: -`rsync --recursive --delete rsync://{{host}}:{{path/to/source}} {{path/to/destination}}` +`rsync {{-r|--recursive}} --delete rsync://{{host}}:{{path/to/source}} {{path/to/destination}}` - Transfer a file over SSH using a different port than the default (22) and show global progress: -`rsync --rsh 'ssh -p {{port}}' --info=progress2 {{host}}:{{path/to/source}} {{path/to/destination}}` +`rsync {{-e|--rsh}} 'ssh -p {{port}}' --info=progress2 {{host}}:{{path/to/source}} {{path/to/destination}}` diff --git a/tldr/usql b/tldr/usql index 27a8c77d..0fdf1e0c 100644 --- a/tldr/usql +++ b/tldr/usql @@ -20,10 +20,6 @@ source: https://github.com/tldr-pages/tldr.git `usql --command="{{sql_command}}"` -- List databases available on the server: - -`usql --list-databases` - - Run an SQL command in the `usql` prompt: `{{prompt}}=> {{command}}`