From a44c60008aa5742494d0533022ea9b0d3d9a856f Mon Sep 17 00:00:00 2001 From: ivuorinen Date: Sat, 3 Jan 2026 00:21:19 +0000 Subject: [PATCH] Update cheatsheets --- tldr/acyclic | 2 +- tldr/aria2c | 1 + tldr/axel | 17 ++++++++++---- tldr/bcomps | 2 +- tldr/ccomps | 2 +- tldr/conda | 1 + tldr/edgepaint | 2 +- tldr/entr | 1 + tldr/fdp | 2 +- tldr/gettgt.py | 33 +++++++++++++++++++++++++++ tldr/gvcolor | 2 +- tldr/gvpack | 2 +- tldr/http | 1 + tldr/impacket-gettgt | 12 ++++++++++ tldr/jupytext | 2 +- tldr/linux/fs_cli | 41 ++++++++++++++++++++++++++++++++++ tldr/linux/lid.idutils | 2 +- tldr/linux/systemd-detect-virt | 4 ++++ tldr/linux/virt-clone | 17 ++++++++++++++ tldr/linux/virt-install | 29 ++++++++++++++++++++++++ tldr/linux/virt-qemu-run | 25 +++++++++++++++++++++ tldr/linux/virt-sparsify | 18 +++++++++++++++ tldr/linux/virt-sysprep | 33 +++++++++++++++++++++++++++ tldr/mamba | 1 + tldr/mingle | 2 +- tldr/netbsd/sed | 2 +- tldr/nop | 2 +- tldr/parallel | 1 + tldr/ping | 2 +- tldr/sccmap | 2 +- tldr/sunos/snoop | 2 +- tldr/tred | 2 +- tldr/unflatten | 2 +- tldr/virt-viewer | 31 +++++++++++++++++++++++++ tldr/watchexec | 1 + tldr/windows/popd | 1 + tldr/xargs | 5 +++++ 37 files changed, 286 insertions(+), 21 deletions(-) create mode 100644 tldr/gettgt.py create mode 100644 tldr/impacket-gettgt create mode 100644 tldr/linux/fs_cli create mode 100644 tldr/linux/virt-clone create mode 100644 tldr/linux/virt-install create mode 100644 tldr/linux/virt-qemu-run create mode 100644 tldr/linux/virt-sparsify create mode 100644 tldr/linux/virt-sysprep create mode 100644 tldr/virt-viewer diff --git a/tldr/acyclic b/tldr/acyclic index 19a833d1..90ae88e9 100644 --- a/tldr/acyclic +++ b/tldr/acyclic @@ -6,7 +6,7 @@ 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`. +> Graphviz filters: `acyclic`, `bcomps`, `comps`, `edgepaint`, `gvcolor`, `gvpack`, `mingle`, `nop`, `sccmap`, `tred`, and `unflatten`. > More information: . - Make a directed graph acyclic by reversing some edges: diff --git a/tldr/aria2c b/tldr/aria2c index 12f243c7..61bdae27 100644 --- a/tldr/aria2c +++ b/tldr/aria2c @@ -7,6 +7,7 @@ source: https://github.com/tldr-pages/tldr.git > Fast download utility. > Supports HTTP(S), FTP, SFTP, BitTorrent, and Metalink. +> See also: `axel`. > More information: . - Download a specific URI to a file: diff --git a/tldr/axel b/tldr/axel index 1f6728f5..8c95c6bb 100644 --- a/tldr/axel +++ b/tldr/axel @@ -6,7 +6,8 @@ source: https://github.com/tldr-pages/tldr.git # axel > Download accelerator. -> Supports HTTP, HTTPS, and FTP. +> Supports HTTP, HTTPS, FTP, and FTPs. +> See also: `aria2c`. > More information: . - Download a URL to a file: @@ -19,12 +20,20 @@ source: https://github.com/tldr-pages/tldr.git - Download with a specific number connections: -`axel {{[-n|--num-connections]}} {{connections_num}} {{url}}` +`axel {{[-n|--num-connections]}} {{number}} {{url}}` -- Search for mirrors: +- Use a specific number of mirrors for searching and downloading: -`axel {{[-S|--search]}} {{mirrors_num}} {{url}}` +`axel {{[-S|--search=]}}{{number}} {{url}}` - Limit download speed (bytes per second): `axel {{[-s|--max-speed]}} {{speed}} {{url}}` + +- Use the IPv4 protocol only when connecting to the host: + +`axel {{[-4|--ipv4]}} {{url}}` + +- Limit output to stdout and use a custom user-agent when downloading: + +`axel {{[-q|--quiet]}} {{[-U|--user-agent]}} {{"Mozilla/5.0"}} {{url}}` diff --git a/tldr/bcomps b/tldr/bcomps index 4f6f37db..446e7d4a 100644 --- a/tldr/bcomps +++ b/tldr/bcomps @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # bcomps > Decompose graphs into their biconnected components. -> Graphviz filters: `acyclic`, `bcomps`, `comps`, `edgepaint`, `gvcolor`, `gvpack`, `mingle`, `nop`, `sccmap`, `tred`, & `unflatten`. +> Graphviz filters: `acyclic`, `bcomps`, `comps`, `edgepaint`, `gvcolor`, `gvpack`, `mingle`, `nop`, `sccmap`, `tred`, and `unflatten`. > More information: . - Decompose one or more graphs into their biconnected components: diff --git a/tldr/ccomps b/tldr/ccomps index 66fba940..c3eb52a9 100644 --- a/tldr/ccomps +++ b/tldr/ccomps @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # ccomps > Decompose graphs into their connected components. -> Graphviz filters: `acyclic`, `bcomps`, `comps`, `edgepaint`, `gvcolor`, `gvpack`, `mingle`, `nop`, `sccmap`, `tred`, & `unflatten`. +> Graphviz filters: `acyclic`, `bcomps`, `comps`, `edgepaint`, `gvcolor`, `gvpack`, `mingle`, `nop`, `sccmap`, `tred`, and `unflatten`. > More information: . - Decompose one or more graphs into their connected components: diff --git a/tldr/conda b/tldr/conda index f222a5f3..ff8a8e38 100644 --- a/tldr/conda +++ b/tldr/conda @@ -7,6 +7,7 @@ source: https://github.com/tldr-pages/tldr.git > Package, dependency, and environment management for any programming language. > Some subcommands such as `create` have their own usage documentation. +> See also: `mamba`. > More information: . - Create a new environment, installing named packages into it: diff --git a/tldr/edgepaint b/tldr/edgepaint index 25067fde..2f90dd83 100644 --- a/tldr/edgepaint +++ b/tldr/edgepaint @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # edgepaint > Colorize edges of a graph layout to clarify crossing edges. -> Graphviz filters: `acyclic`, `bcomps`, `comps`, `edgepaint`, `gvcolor`, `gvpack`, `mingle`, `nop`, `sccmap`, `tred`, & `unflatten`. +> Graphviz filters: `acyclic`, `bcomps`, `comps`, `edgepaint`, `gvcolor`, `gvpack`, `mingle`, `nop`, `sccmap`, `tred`, and `unflatten`. > More information: . - Colorize edges of one or more graph layouts (that already have layout information) to clarify crossing edges: diff --git a/tldr/entr b/tldr/entr index e286cdae..bb7dec4c 100644 --- a/tldr/entr +++ b/tldr/entr @@ -6,6 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # entr > Run arbitrary commands when files change. +> See also: `watchexec`. > More information: . - Rebuild with `make` if any file in any subdirectory changes: diff --git a/tldr/fdp b/tldr/fdp index 02a8585c..fb51d415 100644 --- a/tldr/fdp +++ b/tldr/fdp @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # fdp > Render an image of a `force-directed` network graph from a `graphviz` file. -> Layouts: `dot`, `neato`, `twopi`, `circo`, `fdp`, `sfdp`, `osage` & `patchwork`. +> Layouts: `dot`, `neato`, `twopi`, `circo`, `fdp`, `sfdp`, `osage`, and `patchwork`. > More information: . - Render a PNG image with a filename based on the input filename and output format (uppercase -O): diff --git a/tldr/gettgt.py b/tldr/gettgt.py new file mode 100644 index 00000000..a964eff9 --- /dev/null +++ b/tldr/gettgt.py @@ -0,0 +1,33 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# getTGT.py + +> Request a Ticket Granting Ticket (TGT). +> More information: . + +- Request a TGT using a password: + +`getTGT.py {{domain}}/{{username}}:{{password}}` + +- Request a TGT using NTLM hashes: + +`getTGT.py -hashes {{LM_Hash}}:{{NT_Hash}} {{domain}}/{{username}}` + +- Use Kerberos authentication (from existing ccache, no password needed): + +`getTGT.py -k -no-pass {{domain}}/{{username}}` + +- Request a TGT using an AES key (128 or 256 bits): + +`getTGT.py -aesKey {{aes_key}} {{domain}}/{{username}}` + +- Specify a domain controller IP: + +`getTGT.py -dc-ip {{domain_controller_ip}} {{domain}}/{{username}}:{{password}}` + +- Request a service ticket directly (AS-REQ) for a specific SPN: + +`getTGT.py -service {{SPN}} {{domain}}/{{username}}:{{password}}` diff --git a/tldr/gvcolor b/tldr/gvcolor index cadd90c1..ae767a62 100644 --- a/tldr/gvcolor +++ b/tldr/gvcolor @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # gvcolor > Colorize a ranked digraph with a range of colors. -> Graphviz filters: `acyclic`, `bcomps`, `comps`, `edgepaint`, `gvcolor`, `gvpack`, `mingle`, `nop`, `sccmap`, `tred`, & `unflatten`. +> Graphviz filters: `acyclic`, `bcomps`, `comps`, `edgepaint`, `gvcolor`, `gvpack`, `mingle`, `nop`, `sccmap`, `tred`, and `unflatten`. > More information: . - Colorize one or more ranked digraph (that were already processed by `dot`): diff --git a/tldr/gvpack b/tldr/gvpack index 18fc6438..2eca2b14 100644 --- a/tldr/gvpack +++ b/tldr/gvpack @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # gvpack > Combine several graph layouts (that already have layout information). -> Graphviz filters: `acyclic`, `bcomps`, `comps`, `edgepaint`, `gvcolor`, `gvpack`, `mingle`, `nop`, `sccmap`, `tred`, & `unflatten`. +> Graphviz filters: `acyclic`, `bcomps`, `comps`, `edgepaint`, `gvcolor`, `gvpack`, `mingle`, `nop`, `sccmap`, `tred`, and `unflatten`. > More information: . - Combine several graph layouts (that already have layout information): diff --git a/tldr/http b/tldr/http index 6d48a088..7d5f2740 100644 --- a/tldr/http +++ b/tldr/http @@ -6,6 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # http > HTTPie: an HTTP client designed for testing, debugging, and generally interacting with APIs and HTTP servers. +> See also: `xh`. > More information: . - Make a simple GET request (shows response headers and content): diff --git a/tldr/impacket-gettgt b/tldr/impacket-gettgt new file mode 100644 index 00000000..b067558c --- /dev/null +++ b/tldr/impacket-gettgt @@ -0,0 +1,12 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# impacket-getTGT + +> This command is an alias of `getTGT.py`. + +- View documentation for the original command: + +`tldr getTGT.py` diff --git a/tldr/jupytext b/tldr/jupytext index 212d2277..7652fa80 100644 --- a/tldr/jupytext +++ b/tldr/jupytext @@ -26,7 +26,7 @@ source: https://github.com/tldr-pages/tldr.git - Update the input cells in a notebook and preserve outputs and metadata: -`jupytext --update --to notebook {{path/to/notebook.py}}` +`jupytext --update --to notebook {{path/to/notebook}}.py` - Update all paired representations of a notebook: diff --git a/tldr/linux/fs_cli b/tldr/linux/fs_cli new file mode 100644 index 00000000..e3bf55e5 --- /dev/null +++ b/tldr/linux/fs_cli @@ -0,0 +1,41 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# fs_cli + +> Connect to and control a running FreeSWITCH server using the FreeSWITCH Command Line Interface (ESL client). +> More information: . + +- Connect to the local FreeSWITCH instance with an interactive session: + +`fs_cli` + +- Connect to a remote FreeSWITCH server: + +`fs_cli {{[-H|--host]}} {{host}} {{[-P|--port]}} {{port}} {{[-p|--password]}} {{password}}` + +- Execute a single FreeSWITCH command and exit: + +`fs_cli {{[-x|--execute]}} "{{command}}"` + +- Show FreeSWITCH system status: + +`fs_cli {{[-x|--execute]}} "status"` + +- Reload FreeSWITCH XML configuration: + +`fs_cli {{[-x|--execute]}} "reloadxml"` + +- Check if a module is loaded: + +`fs_cli {{[-x|--execute]}} "module_exists {{module_name}}"` + +- Show active calls: + +`fs_cli {{[-x|--execute]}} "show calls"` + +- Retry connection on failure: + +`fs_cli {{[-r|--retry]}}` diff --git a/tldr/linux/lid.idutils b/tldr/linux/lid.idutils index 438e7ecb..b5041004 100644 --- a/tldr/linux/lid.idutils +++ b/tldr/linux/lid.idutils @@ -21,7 +21,7 @@ source: https://github.com/tldr-pages/tldr.git `lid {{[-i|--ignore-case]}} {{token}}` -- Find tokens matching an extended regular expression: +- Find tokens matching an extended `regex`: `lid {{[-r|--regexp]}} "{{pattern}}"` diff --git a/tldr/linux/systemd-detect-virt b/tldr/linux/systemd-detect-virt index f832e529..e0972eda 100644 --- a/tldr/linux/systemd-detect-virt +++ b/tldr/linux/systemd-detect-virt @@ -27,3 +27,7 @@ source: https://github.com/tldr-pages/tldr.git - Only detect hardware virtualization: `systemd-detect-virt {{[-v|--vm]}}` + +- Detect whether in a `chroot` environment: + +`systemd-detect-virt {{[-r|--chroot]}}` diff --git a/tldr/linux/virt-clone b/tldr/linux/virt-clone new file mode 100644 index 00000000..233a62a9 --- /dev/null +++ b/tldr/linux/virt-clone @@ -0,0 +1,17 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# virt-clone + +> Clone a libvirt virtual machine. +> More information: . + +- Clone a virtual machine and automatically generate a new name, storage path, and MAC address: + +`virt-clone {{[-o|--original]}} {{vm_name}} --auto-clone` + +- Clone a virtual machine and specify the new name, storage path, and MAC address: + +`virt-clone {{[-o|--original]}} {{vm_name}} {{[-n|--name]}} {{new_vm_name}} {{[-f|--file]}} {{path/to/new_storage}} {{[-m|--mac]}} {{ff:ff:ff:ff:ff:ff|RANDOM}}` diff --git a/tldr/linux/virt-install b/tldr/linux/virt-install new file mode 100644 index 00000000..0915efc9 --- /dev/null +++ b/tldr/linux/virt-install @@ -0,0 +1,29 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# virt-install + +> Create virtual machines with libvirt and begin OS installation. +> More information: . + +- Create a virtual machine with 1 GB RAM and 12 GB storage and start a Debian installation: + +`virt-install {{[-n|--name]}} {{vm_name}} --memory {{1024}} --disk path={{path/to/image.qcow2}},size={{12}} {{[-c|--cdrom]}} {{path/to/debian.iso}}` + +- Create a x86-64, KVM-accelerated, UEFI-based virtual machine with the Q35 chipset, 4 GiB RAM, 16 GiB RAW storage, and start a Fedora installation: + +`virt-install {{[-n|--name]}} {{vm_name}} --arch {{x86_64}} --virt-type {{kvm}} --machine {{q35}} --boot {{uefi}} --memory {{4096}} --disk path={{path/to/image.raw}},size={{16}} {{[-c|--cdrom]}} {{path/to/fedora.iso}}` + +- Create a diskless live virtual machine without an emulated sound device or a USB controller. Don't start an installation and don't autoconnect to console but attach a cdrom to it (might be useful for when using a live CD like tails): + +`virt-install {{[-n|--name]}} {{vm_name}} --memory {{512}} --disk {{none}} --controller {{type=usb,model=none}} --sound {{none}} --autoconsole {{none}} --install {{no_install=yes}} {{[-c|--cdrom]}} {{path/to/tails.iso}}` + +- Create a virtual machine with 16 GiB RAM, 250 GiB storage, 8 cores with hyperthreading, a specific CPU topology, and a CPU model that shares most features with the host CPU: + +`virt-install {{[-n|--name]}} {{vm_name}} --cpu {{host-model}},topology.sockets={{1}},topology.cores={{4}},topology.threads={{2}} --memory {{16384}} --disk path={{path/to/image.qcow2}},size={{250}} {{[-c|--cdrom]}} {{path/to/debian.iso}}` + +- Create a virtual machine and kickstart an automated deployment based on Fedora 35 using only remote resources (no ISO required): + +`virt-install {{[-n|--name]}} {{vm_name}} --memory {{2048}} --disk path={{path/to/image.qcow2}},size={{20}} {{[-l|--location]}} {{https://download.fedoraproject.org/pub/fedora/linux/releases/35/Everything/x86_64/os/}} {{[-x|--extra-args]}} "{{inst.ks=https://path/to/valid_kickstart.org}}"` diff --git a/tldr/linux/virt-qemu-run b/tldr/linux/virt-qemu-run new file mode 100644 index 00000000..ec6649d7 --- /dev/null +++ b/tldr/linux/virt-qemu-run @@ -0,0 +1,25 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# virt-qemu-run + +> Experimental tool to run a QEMU Guest VM independent of `libvirtd`. +> More information: . + +- Run a QEMU virtual machine: + +`virt-qemu-run {{path/to/guest.xml}}` + +- Run a QEMU virtual machine and store the state in a specific directory: + +`virt-qemu-run {{[-r|--root]}} {{path/to/directory}} {{path/to/guest.xml}}` + +- Run a QEMU virtual machine and display verbose information about the startup: + +`virt-qemu-run {{[-v|--verbose]}} {{path/to/guest.xml}}` + +- Display help: + +`virt-qemu-run {{[-h|--help]}}` diff --git a/tldr/linux/virt-sparsify b/tldr/linux/virt-sparsify new file mode 100644 index 00000000..fb1300a3 --- /dev/null +++ b/tldr/linux/virt-sparsify @@ -0,0 +1,18 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# virt-sparsify + +> Make virtual machine drive images thin-provisioned. +> Note: Use only for offline machines to avoid data corruption. +> More information: . + +- Create a sparsified compressed image without snapshots from an unsparsified one: + +`virt-sparsify --compress {{path/to/image.qcow2}} {{path/to/image_new.qcow2}}` + +- Sparsify an image in-place: + +`virt-sparsify --in-place {{path/to/image.img}}` diff --git a/tldr/linux/virt-sysprep b/tldr/linux/virt-sysprep new file mode 100644 index 00000000..46538d8f --- /dev/null +++ b/tldr/linux/virt-sysprep @@ -0,0 +1,33 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# virt-sysprep + +> Reset, unconfigure, or customize a virtual machine image. +> More information: . + +- List all supported operations (enabled operations are indicated with asterisks): + +`virt-sysprep --list-operations` + +- Remove sensitive system data from a virtual machine image: + +`sudo virt-sysprep {{[-a|--add]}} {{path/to/image.qcow2}}` + +- Specify a virtual machine by its name and run all enabled operations but don't actually apply the changes: + +`sudo virt-sysprep {{[-d|--domain]}} {{vm_name}} {{[-n|--dry-run]}}` + +- Run only the specified operations: + +`sudo virt-sysprep {{[-d|--domain]}} {{vm_name}} --operations {{operation1,operation2,...}}` + +- Generate a new `/etc/machine-id` file and enable customizations to be able to change the host name to avoid network conflicts: + +`sudo virt-sysprep {{[-d|--domain]}} {{vm_name}} --enable {{customizations}} --hostname {{host_name}} --operation {{machine-id}}` + +- Display help: + +`virt-sysprep {{[-he|--help]}}` diff --git a/tldr/mamba b/tldr/mamba index 507b0621..29771ddd 100644 --- a/tldr/mamba +++ b/tldr/mamba @@ -7,6 +7,7 @@ source: https://github.com/tldr-pages/tldr.git > Fast, cross-platform package manager, intended as a drop-in replacement for conda. > Some subcommands such as `repoquery` have their own usage documentation. +> See also: `conda`. > More information: . - Create a new environment, installing the specified packages into it: diff --git a/tldr/mingle b/tldr/mingle index e7781651..1edc17bc 100644 --- a/tldr/mingle +++ b/tldr/mingle @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # mingle > Bundle the edges of a graph layout. -> Graphviz filters: `acyclic`, `bcomps`, `comps`, `edgepaint`, `gvcolor`, `gvpack`, `mingle`, `nop`, `sccmap`, `tred`, & `unflatten`. +> Graphviz filters: `acyclic`, `bcomps`, `comps`, `edgepaint`, `gvcolor`, `gvpack`, `mingle`, `nop`, `sccmap`, `tred`, and `unflatten`. > More information: . - Bundle the edges of one or more graph layouts (that already have layout information): diff --git a/tldr/netbsd/sed b/tldr/netbsd/sed index 17a332d7..f2518537 100644 --- a/tldr/netbsd/sed +++ b/tldr/netbsd/sed @@ -21,7 +21,7 @@ source: https://github.com/tldr-pages/tldr.git `{{command}} | sed -fa {{path/to/script.sed}}` -- Turn on GNU re[g]ex extension: +- Turn on [g]NU `regex` extension: `{{command}} | sed -fg {{path/to/script.sed}}` diff --git a/tldr/nop b/tldr/nop index 08514789..7df3289b 100644 --- a/tldr/nop +++ b/tldr/nop @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # nop > Check validity and pretty-print graphs in canonical format. -> Graphviz filters: `acyclic`, `bcomps`, `comps`, `edgepaint`, `gvcolor`, `gvpack`, `mingle`, `nop`, `sccmap`, `tred`, & `unflatten`. +> Graphviz filters: `acyclic`, `bcomps`, `comps`, `edgepaint`, `gvcolor`, `gvpack`, `mingle`, `nop`, `sccmap`, `tred`, and `unflatten`. > More information: . - Pretty-print one or more graphs in canonical format: diff --git a/tldr/parallel b/tldr/parallel index dd9268f4..a217c0fb 100644 --- a/tldr/parallel +++ b/tldr/parallel @@ -6,6 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # parallel > Run commands on multiple CPU cores. +> See also: `xargs`. > More information: . - Gzip several files at once, using all cores: diff --git a/tldr/ping b/tldr/ping index 5e088f7e..07892749 100644 --- a/tldr/ping +++ b/tldr/ping @@ -8,7 +8,7 @@ source: https://github.com/tldr-pages/tldr.git > Send ICMP ECHO_REQUEST packets to network hosts. > More information: . -- Ping host: +- Ping a host: `ping {{host}}` diff --git a/tldr/sccmap b/tldr/sccmap index 4f265f2f..67be66bc 100644 --- a/tldr/sccmap +++ b/tldr/sccmap @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # sccmap > Extract strongly connected components of directed graphs. -> Graphviz filters: `acyclic`, `bcomps`, `comps`, `edgepaint`, `gvcolor`, `gvpack`, `mingle`, `nop`, `sccmap`, `tred`, & `unflatten`. +> Graphviz filters: `acyclic`, `bcomps`, `comps`, `edgepaint`, `gvcolor`, `gvpack`, `mingle`, `nop`, `sccmap`, `tred`, and `unflatten`. > More information: . - Extract strongly connected components of one or more directed graphs: diff --git a/tldr/sunos/snoop b/tldr/sunos/snoop index d0825131..f7cf9d92 100644 --- a/tldr/sunos/snoop +++ b/tldr/sunos/snoop @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # snoop > Network packet sniffer. -> SunOS equivalent of tcpdump. +> SunOS equivalent of `tcpdump`. > More information: . - Capture packets on a specific network interface: diff --git a/tldr/tred b/tldr/tred index b8119c44..9a70192a 100644 --- a/tldr/tred +++ b/tldr/tred @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # tred > Compute the transitive reduction of directed graphs. -> Graphviz filters: `acyclic`, `bcomps`, `comps`, `edgepaint`, `gvcolor`, `gvpack`, `mingle`, `nop`, `sccmap`, `tred`, & `unflatten`. +> Graphviz filters: `acyclic`, `bcomps`, `comps`, `edgepaint`, `gvcolor`, `gvpack`, `mingle`, `nop`, `sccmap`, `tred`, and `unflatten`. > More information: . - Construct the transitive reduction graph of one or more directed graphs: diff --git a/tldr/unflatten b/tldr/unflatten index 66884e75..131cb31b 100644 --- a/tldr/unflatten +++ b/tldr/unflatten @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # unflatten > Adjust directed graphs to improve the layout aspect ratio. -> Graphviz filters: `acyclic`, `bcomps`, `comps`, `edgepaint`, `gvcolor`, `gvpack`, `mingle`, `nop`, `sccmap`, `tred`, & `unflatten`. +> Graphviz filters: `acyclic`, `bcomps`, `comps`, `edgepaint`, `gvcolor`, `gvpack`, `mingle`, `nop`, `sccmap`, `tred`, and `unflatten`. > More information: . - Adjust one or more directed graphs to improve the layout aspect ratio: diff --git a/tldr/virt-viewer b/tldr/virt-viewer new file mode 100644 index 00000000..67b037c1 --- /dev/null +++ b/tldr/virt-viewer @@ -0,0 +1,31 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# virt-viewer + +> Minimal graphical interface for a virtual machine (VM). +> Note: `domain` refers to the name, UUID, or ID for the existing VMs. +> See also: `virsh`. +> More information: . + +- Launch `virt-viewer` with a prompt to select running virtual machines: + +`virt-viewer` + +- Launch `virt-viewer` for a specific virtual machine by ID, UUID, or name: + +`virt-viewer "{{domain}}"` + +- Wait for a virtual machine to start and automatically reconnect if it shutdown and restarts: + +`virt-viewer --reconnect --wait "{{domain}}"` + +- Connect to a specific remote virtual machine over TLS: + +`virt-viewer --connect "xen//{{url}}" "{{domain}}"` + +- Connect to a specific remote virtual machine over SSH: + +`virt-viewer --connect "qemu+ssh//{{username}}@{{url}}/system" "{{domain}}"` diff --git a/tldr/watchexec b/tldr/watchexec index 2e5bc31c..c84b68b4 100644 --- a/tldr/watchexec +++ b/tldr/watchexec @@ -6,6 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # watchexec > Run arbitrary commands when files change. +> See also: `entr`. > More information: . - Call `ls -la` when any file in the current directory changes: diff --git a/tldr/windows/popd b/tldr/windows/popd index a38f5c23..5b98e78e 100644 --- a/tldr/windows/popd +++ b/tldr/windows/popd @@ -6,6 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # popd > Change the current directory to the directory stored by the `pushd` command. +> See also: `pushd`. > More information: . - Switch to directory at the top of the stack: diff --git a/tldr/xargs b/tldr/xargs index a7e972ff..72699ce0 100644 --- a/tldr/xargs +++ b/tldr/xargs @@ -7,6 +7,7 @@ source: https://github.com/tldr-pages/tldr.git > 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. +> See also: `parallel`. > More information: . - Run a command using the input data as arguments: @@ -36,3 +37,7 @@ source: https://github.com/tldr-pages/tldr.git - Prompt user for confirmation before executing command (confirm with `y` or `Y`): `{{arguments_source}} | xargs {{[-p|--interactive]}} {{command}}` + +- Allow the command to access the terminal for interactive input: + +`{{arguments_source}} | xargs {{[-o|--open-tty]}} {{command}}`