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:
@@ -11,11 +11,11 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Decompose one or more graphs into their biconnected components:
|
||||
|
||||
`bcomps {{path/to/input1.gv}} {{path/to/input2.gv ...}} > {{path/to/output.gv}}`
|
||||
`bcomps {{path/to/input1.gv path/to/input2.gv ...}} > {{path/to/output.gv}}`
|
||||
|
||||
- Print the number of blocks and cutvertices in one or more graphs:
|
||||
|
||||
`bcomps -v -s {{path/to/input1.gv}} {{path/to/input2.gv ...}}`
|
||||
`bcomps -v -s {{path/to/input1.gv path/to/input2.gv ...}}`
|
||||
|
||||
- Write each block and block-cutvertex tree to multiple numbered filenames based on `output.gv`:
|
||||
|
||||
|
||||
@@ -11,15 +11,15 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Decompose one or more graphs into their connected components:
|
||||
|
||||
`ccomps {{path/to/input1.gv}} {{path/to/input2.gv ...}} > {{path/to/output.gv}}`
|
||||
`ccomps {{path/to/input1.gv path/to/input2.gv ...}} > {{path/to/output.gv}}`
|
||||
|
||||
- Print the number of nodes, edges, and connected components in one or more graphs:
|
||||
|
||||
`ccomps -v -s {{path/to/input1.gv}} {{path/to/input2.gv ...}}`
|
||||
`ccomps -v -s {{path/to/input1.gv path/to/input2.gv ...}}`
|
||||
|
||||
- Write each connected component to numbered filenames based on `output.gv`:
|
||||
|
||||
`ccomps -x -o {{path/to/output.gv}} {{path/to/input1.gv}} {{path/to/input2.gv ...}}`
|
||||
`ccomps -x -o {{path/to/output.gv}} {{path/to/input1.gv path/to/input2.gv ...}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
> A modern music player and library organizer.
|
||||
> See also: `audacious`, `qmmp`, `cmus`, `mpv`.
|
||||
> More information: <https://github.com/clementine-player/Clementine/wiki>.
|
||||
> More information: <https://manned.org/clementine>.
|
||||
|
||||
- Start the GUI or bring it to front:
|
||||
|
||||
@@ -19,11 +19,11 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Toggle between pausing and playing:
|
||||
|
||||
`clementine --play-pause`
|
||||
`clementine {{[-t|--play-pause]}}`
|
||||
|
||||
- Stop playback:
|
||||
|
||||
`clementine --stop`
|
||||
`clementine {{[-s|--stop]}}`
|
||||
|
||||
- Skip to the next or previous track:
|
||||
|
||||
@@ -31,12 +31,12 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Create a new playlist with one or more music files or URLs:
|
||||
|
||||
`clementine --create {{url1 url2 ... | path/to/music1.ext path/to/music2.ext ...}}`
|
||||
`clementine {{[-c|--create]}} {{url1 url2 ...|path/to/music1.ext path/to/music2.ext ...}}`
|
||||
|
||||
- Load a playlist file:
|
||||
|
||||
`clementine --load {{path/to/playlist.ext}}`
|
||||
`clementine {{[-l|--load]}} {{path/to/playlist.ext}}`
|
||||
|
||||
- Play a specific track in the currently loaded playlist:
|
||||
|
||||
`clementine --play-track {{5}}`
|
||||
`clementine {{[-k|--play-track]}} {{5}}`
|
||||
|
||||
@@ -8,7 +8,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
> Perform set operations on lines of two files.
|
||||
> The order of the output lines is determined by the order of the lines in the first file.
|
||||
> See also: `diff`.
|
||||
> More information: <https://joeyh.name/code/moreutils/>.
|
||||
> More information: <https://manned.org/combine>.
|
||||
|
||||
- Output lines that are in both specified files:
|
||||
|
||||
|
||||
@@ -18,11 +18,11 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Start a daemon, accepting connections from a specific network address or address range:
|
||||
|
||||
`distccd --daemon --allow {{ip_address|network_prefix}}`
|
||||
`distccd --daemon {{[-a|--allow]}} {{ip_address|network_prefix}}`
|
||||
|
||||
- Start a daemon with a lowered priority that can run a maximum of 4 tasks at a time:
|
||||
|
||||
`distccd --daemon --jobs {{4}} --nice {{5}}`
|
||||
`distccd --daemon {{[-j|--jobs]}} {{4}} {{[-N|--nice]}} {{5}}`
|
||||
|
||||
- Start a daemon and register it via mDNS/DNS-SD (Zeroconf):
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Colorize edges of one or more graph layouts (that already have layout information) to clarify crossing edges:
|
||||
|
||||
`edgepaint {{path/to/layout1.gv}} {{path/to/layout2.gv ...}} > {{path/to/output.gv}}`
|
||||
`edgepaint {{path/to/layout1.gv path/to/layout2.gv ...}} > {{path/to/output.gv}}`
|
||||
|
||||
- Colorize edges using a color scheme. (See <https://graphviz.org/doc/info/colors.html#brewer>):
|
||||
|
||||
|
||||
@@ -14,12 +14,12 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- List all errno names, codes, and descriptions:
|
||||
|
||||
`errno --list`
|
||||
`errno {{[-l|--list]}}`
|
||||
|
||||
- Search for code whose description contains all of the given text:
|
||||
|
||||
`errno --search {{text}}`
|
||||
`errno {{[-s|--search]}} {{text}}`
|
||||
|
||||
- Search for code whose description contains all of the given text (all locales):
|
||||
|
||||
`errno --search-all-locales {{text}}`
|
||||
`errno {{[-S|--search-all-locales]}} {{text}}`
|
||||
|
||||
@@ -15,11 +15,11 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Use a custom [f]ont file:
|
||||
|
||||
`figlet {{input_text}} -f {{path/to/font_file.flf}}`
|
||||
`figlet -f {{path/to/font_file.flf}} {{input_text}}`
|
||||
|
||||
- Use a [f]ont from the default font directory (the extension can be omitted):
|
||||
|
||||
`figlet {{input_text}} -f {{font_filename}}`
|
||||
`figlet -f {{font_filename}} {{input_text}}`
|
||||
|
||||
- Pipe command output through FIGlet:
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
> Create a Git branch in a repository.
|
||||
> Part of `git-extras`.
|
||||
> More information: <https://github.com/tj/git-extras/blob/master/Commands.md#git-create-branch>.
|
||||
> More information: <https://manned.org/man/git-create-branch>.
|
||||
|
||||
- Create a local branch:
|
||||
|
||||
@@ -15,8 +15,8 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Create a branch locally and on origin:
|
||||
|
||||
`git create-branch --remote {{branch_name}}`
|
||||
`git create-branch {{[-r|--remote]}} {{branch_name}}`
|
||||
|
||||
- Create a branch locally and on upstream (through forks):
|
||||
|
||||
`git create-branch --remote upstream {{branch_name}}`
|
||||
`git create-branch {{[-r|--remote]}} upstream {{branch_name}}`
|
||||
|
||||
@@ -18,15 +18,15 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Compare all remote tracking branches:
|
||||
|
||||
`git show-branch --remotes`
|
||||
`git show-branch {{[-r|--remotes]}}`
|
||||
|
||||
- Compare both local and remote tracking branches:
|
||||
|
||||
`git show-branch --all`
|
||||
`git show-branch {{[-a|--all]}}`
|
||||
|
||||
- List the latest commits in all branches:
|
||||
|
||||
`git show-branch --all --list`
|
||||
`git show-branch {{[-a|--all]}} --list`
|
||||
|
||||
- Compare a given branch with the current branch:
|
||||
|
||||
@@ -38,4 +38,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Keep going a given number of commits past the common ancestor:
|
||||
|
||||
`git show-branch --more {{5}} {{commit|branch_name|ref}} {{commit|branch_name|ref}} {{...}}`
|
||||
`git show-branch --more {{5}} {{branch_name1|ref1|commit1 branch_name2|ref2|commit2 ...}}`
|
||||
|
||||
@@ -15,7 +15,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Check commits for a GPG signature and show details of each commit:
|
||||
|
||||
`git verify-commit {{commit_hash1 optional_commit_hash2 ...}} --verbose`
|
||||
`git verify-commit {{commit_hash1 optional_commit_hash2 ...}} {{[-v|--verbose]}}`
|
||||
|
||||
- Check commits for a GPG signature and print the raw details:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# gnucash
|
||||
|
||||
> Personal and small-business financial-accounting software.
|
||||
> More information: <https://gnucash.org>.
|
||||
> More information: <https://gnucash.org/viewdoc.phtml>.
|
||||
|
||||
- Launch GnuCash and load the previously opened file:
|
||||
|
||||
|
||||
@@ -6,11 +6,11 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# gnucash-cli
|
||||
|
||||
> A command-line version of GnuCash.
|
||||
> More information: <https://gnucash.org>.
|
||||
> More information: <https://gnucash.org/viewdoc.phtml?rev=5&lang=C&doc=help>.
|
||||
|
||||
- Get quotes for currencies and stocks specified in a file and print them:
|
||||
|
||||
`gnucash-cli --quotes get {{path/to/file.gnucash}}`
|
||||
`gnucash-cli {{[-Q|--quotes]}} get {{path/to/file.gnucash}}`
|
||||
|
||||
- Generate a financial report of a specific type, specified by `--name`:
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Colorize one or more ranked digraph (that were already processed by `dot`):
|
||||
|
||||
`gvcolor {{path/to/layout1.gv}} {{path/to/layout2.gv ...}} > {{path/to/output.gv}}`
|
||||
`gvcolor {{path/to/layout1.gv path/to/layout2.gv ...}} > {{path/to/output.gv}}`
|
||||
|
||||
- Lay out a graph and colorize it, then convert to a PNG image:
|
||||
|
||||
|
||||
@@ -11,19 +11,19 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Combine several graph layouts (that already have layout information):
|
||||
|
||||
`gvpack {{path/to/layout1.gv}} {{path/to/layout2.gv ...}} > {{path/to/output.gv}}`
|
||||
`gvpack {{path/to/layout1.gv path/to/layout2.gv ...}} > {{path/to/output.gv}}`
|
||||
|
||||
- Combine several graph layouts at the graph level, keeping graphs separate:
|
||||
|
||||
`gvpack -g {{path/to/layout1.gv}} {{path/to/layout2.gv ...}} > {{path/to/output.gv}}`
|
||||
`gvpack -g {{path/to/layout1.gv path/to/layout2.gv ...}} > {{path/to/output.gv}}`
|
||||
|
||||
- Combine several graph layouts at the node level, ignoring clusters:
|
||||
|
||||
`gvpack -n {{path/to/layout1.gv}} {{path/to/layout2.gv ...}} > {{path/to/output.gv}}`
|
||||
`gvpack -n {{path/to/layout1.gv path/to/layout2.gv ...}} > {{path/to/output.gv}}`
|
||||
|
||||
- Combine several graph layouts without packing:
|
||||
|
||||
`gvpack -u {{path/to/layout1.gv}} {{path/to/layout2.gv ...}} > {{path/to/output.gv}}`
|
||||
`gvpack -u {{path/to/layout1.gv path/to/layout2.gv ...}} > {{path/to/output.gv}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`host {{domain}}`
|
||||
|
||||
- Lookup a field (CNAME, TXT,...) of a domain:
|
||||
- Lookup a field (CNAME, TXT, ...) of a domain:
|
||||
|
||||
`host -t {{field}} {{domain}}`
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# ifne
|
||||
|
||||
> Run a command depending on the emptyness of `stdin`.
|
||||
> More information: <https://joeyh.name/code/moreutils/>.
|
||||
> More information: <https://manned.org/ifne>.
|
||||
|
||||
- Run the specified command if and only if `stdin` is not empty:
|
||||
|
||||
|
||||
10
tldr/isutf8
10
tldr/isutf8
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# isutf8
|
||||
|
||||
> Check whether text files contain valid UTF-8.
|
||||
> More information: <https://joeyh.name/code/moreutils/>.
|
||||
> More information: <https://manned.org/isutf8>.
|
||||
|
||||
- Check whether the specified files contain valid UTF-8:
|
||||
|
||||
@@ -14,16 +14,16 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Print errors using multiple lines:
|
||||
|
||||
`isutf8 --verbose {{path/to/file1 path/to/file2 ...}}`
|
||||
`isutf8 {{[-v|--verbose]}} {{path/to/file1 path/to/file2 ...}}`
|
||||
|
||||
- Do not print anything to `stdout`, indicate the result merely with the exit code:
|
||||
|
||||
`isutf8 --quiet {{path/to/file1 path/to/file2 ...}}`
|
||||
`isutf8 {{[-q|--quiet]}} {{path/to/file1 path/to/file2 ...}}`
|
||||
|
||||
- Only print the names of the files containing invalid UTF-8:
|
||||
|
||||
`isutf8 --list {{path/to/file1 path/to/file2 ...}}`
|
||||
`isutf8 {{[-l|--list]}} {{path/to/file1 path/to/file2 ...}}`
|
||||
|
||||
- Same as `--list` but inverted, i.e., only print the names of the files containing valid UTF-8:
|
||||
|
||||
`isutf8 --invert {{path/to/file1 path/to/file2 ...}}`
|
||||
`isutf8 {{[-i|--invert]}} {{path/to/file1 path/to/file2 ...}}`
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# laravel
|
||||
|
||||
> A command-line installer for the Laravel framework.
|
||||
> More information: <https://laravel.com>.
|
||||
> More information: <https://laravel.com/docs/installation>.
|
||||
|
||||
- Create a new Laravel application:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# lckdo
|
||||
|
||||
> This command is deprecated and has been superseded by `flock`.
|
||||
> More information: <https://joeyh.name/code/moreutils/>.
|
||||
> More information: <https://manned.org/lckdo>.
|
||||
|
||||
- View documentation for the recommended replacement:
|
||||
|
||||
|
||||
@@ -6,15 +6,23 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# checkupdates
|
||||
|
||||
> Check pending updates in Arch Linux.
|
||||
> More information: <https://manned.org/checkupdates.8>.
|
||||
> More information: <https://manned.org/checkupdates>.
|
||||
|
||||
- List pending updates:
|
||||
- Synchronize the database and list pending updates:
|
||||
|
||||
`checkupdates`
|
||||
|
||||
- List pending updates and download the packages to the `pacman` cache:
|
||||
- List pending updates without syncing the database:
|
||||
|
||||
`checkupdates --download`
|
||||
`checkupdates {{[-n|--nosync]}}`
|
||||
|
||||
- Display the list of pending updates if it differs from the last time this option was used:
|
||||
|
||||
`checkupdates {{[-c|--change]}}`
|
||||
|
||||
- List pending updates and download the packages to the `pacman` cache (`/var/cache/pacman/pkg`):
|
||||
|
||||
`checkupdates {{[-d|--download]}}`
|
||||
|
||||
- List pending updates using a specific `pacman` database:
|
||||
|
||||
@@ -22,4 +30,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Display help:
|
||||
|
||||
`checkupdates --help`
|
||||
`checkupdates {{[-h|--help]}}`
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# iwctl
|
||||
|
||||
> Control the `iwd` network supplicant.
|
||||
> More information: <https://archive.kernel.org/oldwiki/iwd.wiki.kernel.org/gettingstarted.html>.
|
||||
> More information: <https://manned.org/iwctl>.
|
||||
|
||||
- Start the interactive mode, in this mode you can enter the commands directly, with autocompletion:
|
||||
|
||||
@@ -14,7 +14,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Call general help:
|
||||
|
||||
`iwctl --help`
|
||||
`iwctl {{[-h|--help]}}`
|
||||
|
||||
- Display your Wi-Fi stations:
|
||||
|
||||
|
||||
17
tldr/linux/locale-gen
Normal file
17
tldr/linux/locale-gen
Normal file
@@ -0,0 +1,17 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# locale-gen
|
||||
|
||||
> Generate locales defined in `/etc/locale.gen`.
|
||||
> More information: <https://manned.org/locale-gen>.
|
||||
|
||||
- Generate locales:
|
||||
|
||||
`locale-gen`
|
||||
|
||||
- Do not delete undefined locales:
|
||||
|
||||
`locale-gen --keep-existing`
|
||||
17
tldr/linux/localedef
Normal file
17
tldr/linux/localedef
Normal file
@@ -0,0 +1,17 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# localedef
|
||||
|
||||
> Manage locale definition files.
|
||||
> More information: <https://manned.org/localedef>.
|
||||
|
||||
- List compiled locales:
|
||||
|
||||
`localedef --list-archive`
|
||||
|
||||
- Display help:
|
||||
|
||||
`localedef {{[-?|--help]}}`
|
||||
@@ -14,7 +14,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Mount a device to a directory:
|
||||
|
||||
`mount {{[-t|--types]}} {{filesystem_type}} {{path/to/device_file}} {{path/to/target_directory}}`
|
||||
`mount {{path/to/device_file}} {{path/to/target_directory}}`
|
||||
|
||||
- Create a specific directory if it does not exist and mount a device to it:
|
||||
|
||||
@@ -28,7 +28,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`mount {{[-t|--types]}} {{iso9660}} {{[-o|--options]}} ro {{/dev/cdrom}} {{/cdrom}}`
|
||||
|
||||
- Mount all the filesystem defined in `/etc/fstab`:
|
||||
- Mount all the filesystems defined in `/etc/fstab`:
|
||||
|
||||
`mount {{[-a|--all]}}`
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# lpass
|
||||
|
||||
> Command-line interface for the LastPass password manager.
|
||||
> More information: <https://github.com/lastpass/lastpass-cli>.
|
||||
> More information: <https://lastpass.github.io/lastpass-cli/lpass.1.html>.
|
||||
|
||||
- Log in to your LastPass account, by entering your master password when prompted:
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Bundle the edges of one or more graph layouts (that already have layout information):
|
||||
|
||||
`mingle {{path/to/layout1.gv}} {{path/to/layout2.gv ...}} > {{path/to/output.gv}}`
|
||||
`mingle {{path/to/layout1.gv path/to/layout2.gv ...}} > {{path/to/output.gv}}`
|
||||
|
||||
- Perform layout, bundling, and output to a picture with one command:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# mispipe
|
||||
|
||||
> Pipe two commands and return the exit status of the first command.
|
||||
> More information: <https://joeyh.name/code/moreutils/>.
|
||||
> More information: <https://manned.org/mispipe>.
|
||||
|
||||
- Pipe two commands and return the exit status of the first command:
|
||||
|
||||
|
||||
4
tldr/nop
4
tldr/nop
@@ -11,11 +11,11 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Pretty-print one or more graphs in canonical format:
|
||||
|
||||
`nop {{path/to/input1.gv}} {{path/to/input2.gv ...}} > {{path/to/output.gv}}`
|
||||
`nop {{path/to/input1.gv path/to/input2.gv ...}} > {{path/to/output.gv}}`
|
||||
|
||||
- Check one or more graphs for validity, producing no output graph:
|
||||
|
||||
`nop -p {{path/to/input1.gv}} {{path/to/input2.gv ...}}`
|
||||
`nop -p {{path/to/input1.gv path/to/input2.gv ...}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
> Send the contents of the clipboard to `stdout`.
|
||||
> Comparable to pressing `<Cmd v>` on the keyboard.
|
||||
> More information: <https://keith.github.io/xcode-man-pages/pbpaste.1.html>.
|
||||
> More information: <https://keith.github.io/xcode-man-pages/pbcopy.1>.
|
||||
|
||||
- Write the contents of the clipboard to a file:
|
||||
|
||||
|
||||
@@ -10,11 +10,11 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Download the daily offer book into the current directory with the specified book format (defaults to `pdf`):
|
||||
|
||||
`packtpub download --type {{pdf|ebup|mobi}}`
|
||||
`packtpub download {{[-t|--type]}} {{pdf|ebup|mobi}}`
|
||||
|
||||
- Download the daily offer book into the specified directory:
|
||||
|
||||
`packtpub download --dir {{path/to/directory}}`
|
||||
`packtpub download {{[-d|--dir]}} {{path/to/directory}}`
|
||||
|
||||
- Start an interactive login to packtpub.com:
|
||||
|
||||
|
||||
12
tldr/pdfjam
12
tldr/pdfjam
@@ -6,23 +6,23 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# pdfjam
|
||||
|
||||
> Shell frontend for the LaTeX pdfpages package for mingling PDFs.
|
||||
> More information: <https://github.com/rrthomas/pdfjam>.
|
||||
> More information: <https://github.com/pdfjam/pdfjam/blob/master/doc/pdfjam-help.txt>.
|
||||
|
||||
- Merge two (or more) PDFs:
|
||||
|
||||
`pdfjam {{path/to/file1.pdf}} {{path/to/file2.pdf}} --outfile {{path/to/output_file.pdf}}`
|
||||
`pdfjam {{path/to/file1.pdf path/to/file2.pdf ...}} {{[-o|--outfile]}} {{path/to/output_file.pdf}}`
|
||||
|
||||
- Merge the first page of each file together:
|
||||
|
||||
`pdfjam {{files...}} 1 --outfile {{path/to/output_file.pdf}}`
|
||||
`pdfjam {{path/to/file1.pdf 1 path/to/file2.pdf 1 ...}} {{[-o|--outfile]}} {{path/to/output_file.pdf}}`
|
||||
|
||||
- Merge subranges from two PDFs:
|
||||
|
||||
`pdfjam {{path/to/file1.pdf 3-5,1}} {{path/to/file2.pdf 4-6}} --outfile {{path/to/output_file.pdf}}`
|
||||
`pdfjam {{path/to/file1.pdf 3-5,1}} {{path/to/file2.pdf 4-6}} {{[-o|--outfile]}} {{path/to/output_file.pdf}}`
|
||||
|
||||
- Sign an A4 page (adjust delta to height for other formats) with a scanned signature by overlaying them:
|
||||
|
||||
`pdfjam {{path/to/file.pdf}} {{path/to/signature}} --fitpaper true --outfile {{path/to/signed.pdf}} --nup "{{1x2}}" --delta "{{0 -842pt}}"`
|
||||
`pdfjam {{path/to/file.pdf}} {{path/to/signature}} --fitpaper true {{[-o|--outfile]}} {{path/to/signed.pdf}} --nup "{{1x2}}" --delta "{{0 -842pt}}"`
|
||||
|
||||
- Arrange the pages from the input file into a fancy 2x2 grid:
|
||||
|
||||
@@ -30,4 +30,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Reverse the order of pages within each given file and concatenate them:
|
||||
|
||||
`pdfjam {{files...}} {{last-1}} --suffix {{reversed}}`
|
||||
`pdfjam {{path/to/file1.pdf last-1 path/to/file2.pdf last-1 ...}} --suffix {{reversed}}`
|
||||
|
||||
2
tldr/pee
2
tldr/pee
@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
> Tee `stdin` to pipes.
|
||||
> See also: `tee`.
|
||||
> More information: <https://joeyh.name/code/moreutils/>.
|
||||
> More information: <https://manned.org/pee>.
|
||||
|
||||
- Run each command, providing each one with a distinct copy of `stdin`:
|
||||
|
||||
|
||||
@@ -11,11 +11,11 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Extract strongly connected components of one or more directed graphs:
|
||||
|
||||
`sccmap -S {{path/to/input1.gv}} {{path/to/input2.gv ...}} > {{path/to/output.gv}}`
|
||||
`sccmap -S {{path/to/input1.gv path/to/input2.gv ...}} > {{path/to/output.gv}}`
|
||||
|
||||
- Print statistics about a graph, producing no output graph:
|
||||
|
||||
`sccmap -v -s {{path/to/input1.gv}} {{path/to/input2.gv ...}}`
|
||||
`sccmap -v -s {{path/to/input1.gv path/to/input2.gv ...}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# snyk
|
||||
|
||||
> Find vulnerabilities in your code and remediate risks.
|
||||
> More information: <https://snyk.io>.
|
||||
> More information: <https://docs.snyk.io/snyk-cli/commands>.
|
||||
|
||||
- Log in to your Snyk account:
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Construct the transitive reduction graph of one or more directed graphs:
|
||||
|
||||
`tred {{path/to/input1.gv}} {{path/to/input2.gv ...}} > {{path/to/output.gv}}`
|
||||
`tred {{path/to/input1.gv path/to/input2.gv ...}} > {{path/to/output.gv}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Adjust one or more directed graphs to improve the layout aspect ratio:
|
||||
|
||||
`unflatten {{path/to/input1.gv}} {{path/to/input2.gv ...}} > {{path/to/output.gv}}`
|
||||
`unflatten {{path/to/input1.gv path/to/input2.gv ...}} > {{path/to/output.gv}}`
|
||||
|
||||
- Use `unflatten` as a preprocessor for `dot` layout to improve aspect ratio:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# vidir
|
||||
|
||||
> Edit directories in a text editor.
|
||||
> More information: <https://joeyh.name/code/moreutils/>.
|
||||
> More information: <https://manned.org/vidir>.
|
||||
|
||||
- Edit the contents of the specified directories:
|
||||
|
||||
@@ -14,7 +14,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Display each action taken by the program:
|
||||
|
||||
`vidir --verbose {{path/to/directory1 path/to/directory2 ...}}`
|
||||
`vidir {{[-v|--verbose]}} {{path/to/directory1 path/to/directory2 ...}}`
|
||||
|
||||
- Edit the contents of current directory:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# vipe
|
||||
|
||||
> Run a text editor in the middle of a UNIX pipeline.
|
||||
> More information: <https://joeyh.name/code/moreutils/>.
|
||||
> More information: <https://manned.org/vipe>.
|
||||
|
||||
- Edit the output of `command1` before piping it into `command2`:
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
> Python-powered, cross-platform, Unix-gazing shell.
|
||||
> Write and mix sh/Python code in Xonsh (pronounced conch).
|
||||
> More information: <https://xon.sh>.
|
||||
> More information: <https://xon.sh/contents.html>.
|
||||
|
||||
- Start an interactive shell session:
|
||||
|
||||
|
||||
2
tldr/xxh
2
tldr/xxh
@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
> Bring your shell with all of your customizations through SSH sessions.
|
||||
> Note: xxh does not install anything into system directories on the target machine; removing `~/.xxh` will clear all traces of xxh on the target machine.
|
||||
> More information: <https://github.com/xxh/xxh>.
|
||||
> More information: <https://github.com/xxh/xxh#usage>.
|
||||
|
||||
- Connect to a host and run the current shell:
|
||||
|
||||
|
||||
@@ -6,8 +6,8 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# zrun
|
||||
|
||||
> Transparently uncompress argument files to a command.
|
||||
> More information: <https://joeyh.name/code/moreutils/>.
|
||||
> More information: <https://manned.org/zrun>.
|
||||
|
||||
- Run the specified command with uncompressed versions of the compressed argument files:
|
||||
|
||||
`zrun {{cat path/to/file1.gz path/to/file2.bz2 ...}}`
|
||||
`zrun {{cat}} {{path/to/file1.gz path/to/file2.bz2 ...}}`
|
||||
|
||||
Reference in New Issue
Block a user