Update cheatsheets

This commit is contained in:
ivuorinen
2024-03-15 00:13:13 +00:00
parent d0d0a703c0
commit 0372a9907d
122 changed files with 278 additions and 217 deletions

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# 7zr
> File archiver with a high compression ratio.
> Similar to `7z` except that it only supports `.7z` files.
> Similar to `7z` except that it only supports 7z files.
> More information: <https://manned.org/7zr>.
- [a]rchive a file or directory:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# autossh
> Run, monitor and restart SSH connections.
> Auto-reconnects to keep port forwarding tunnels up. Accepts all `ssh` flags.
> Auto-reconnects to keep port forwarding tunnels up. Accepts all SSH flags.
> More information: <https://www.harding.motd.ca/autossh>.
- Start an SSH session, restarting when the [M]onitoring port fails to return data:
@@ -17,7 +17,7 @@ source: https://github.com/tldr-pages/tldr.git
`autossh -M {{monitor_port}} -L {{local_port}}:localhost:{{remote_port}} {{user}}@{{host}}`
- Fork `autossh` into the background before executing `ssh` and do [N]ot open a remote shell:
- Fork `autossh` into the background before executing SSH and do [N]ot open a remote shell:
`autossh -f -M {{monitor_port}} -N "{{ssh_command}}"`
@@ -29,6 +29,6 @@ source: https://github.com/tldr-pages/tldr.git
`autossh -f -M 0 -N -o "ServerAliveInterval 10" -o "ServerAliveCountMax 3" -o ExitOnForwardFailure=yes -L {{local_port}}:localhost:{{remote_port}} {{user}}@{{host}}`
- Run in the background, logging `autossh` debug output and `ssh` verbose output to files:
- Run in the background, logging `autossh` debug output and SSH verbose output to files:
`AUTOSSH_DEBUG=1 AUTOSSH_LOGFILE={{path/to/autossh_log_file.log}} autossh -f -M {{monitor_port}} -v -E {{path/to/ssh_log_file.log}} {{ssh_command}}`

View File

@@ -8,7 +8,7 @@ source: https://github.com/tldr-pages/tldr.git
> Driver program for Atmel AVR microcontrollers programming.
> More information: <https://www.nongnu.org/avrdude/>.
- [r]ead the flash ROM of a AVR microcontroller with a specific [p]art id:
- [r]ead the flash ROM of a AVR microcontroller with a specific [p]art ID:
`avrdude -p {{part_no}} -c {{programmer_id}} -U flash:r:{{file.hex}}:i`

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# az sshkey
> Manage ssh public keys with virtual machines.
> Manage SSH public keys with virtual machines.
> Part of `azure-cli` (also known as `az`).
> More information: <https://learn.microsoft.com/cli/azure/sshkey>.

View File

@@ -13,7 +13,7 @@ source: https://github.com/tldr-pages/tldr.git
`az vm list`
- Create a virtual machine using the default Ubuntu image and generate ssh keys:
- Create a virtual machine using the default Ubuntu image and generate SSH keys:
`az vm create --resource-group {{rg}} --name {{vm_name}} --image {{UbuntuLTS}} --admin-user {{azureuser}} --generate-ssh-keys`

View File

@@ -28,6 +28,6 @@ source: https://github.com/tldr-pages/tldr.git
`bzegrep --only-matching "{{search_pattern}}" {{path/to/file}}`
- Recursively search files in a `bzip2` compressed `tar` archive for a pattern:
- Recursively search files in a bzip2 compressed tar archive for a pattern:
`bzegrep --recursive "{{search_pattern}}" {{path/to/file}}`

View File

@@ -28,6 +28,6 @@ source: https://github.com/tldr-pages/tldr.git
`bzfgrep --only-matching "{{search_string}}" {{path/to/file}}`
- Recursively search files in a `bzip2` compressed `tar` archive for the given list of strings:
- Recursively search files in a bzip2 compressed tar archive for the given list of strings:
`bzfgrep --recursive "{{search_string}}" {{path/to/file}}`

View File

@@ -28,7 +28,7 @@ source: https://github.com/tldr-pages/tldr.git
`bzgrep --only-matching "{{search_pattern}}" {{path/to/file}}`
- Recursively search files in a `bzip2` compressed `tar` archive for a pattern:
- Recursively search files in a bzip2 compressed tar archive for a pattern:
`bzgrep --recursive "{{search_pattern}}" {{path/to/tar/file}}`

View File

@@ -12,7 +12,7 @@ source: https://github.com/tldr-pages/tldr.git
`cargo report {{future-incompatibilities|...}}`
- Display a report with the specified Cargo-generated id:
- Display a report with the specified Cargo-generated ID:
`cargo report {{future-incompatibilities|...}} --id {{id}}`

View File

@@ -9,19 +9,19 @@ source: https://github.com/tldr-pages/tldr.git
> Layouts: `dot`, `neato`, `twopi`, `circo`, `fdp`, `sfdp`, `osage` & `patchwork`.
> More information: <https://graphviz.org/doc/info/command.html>.
- Render a `png` image with a filename based on the input filename and output format (uppercase -O):
- Render a PNG image with a filename based on the input filename and output format (uppercase -O):
`circo -T {{png}} -O {{path/to/input.gv}}`
- Render a `svg` image with the specified output filename (lowercase -o):
- Render a SVG image with the specified output filename (lowercase -o):
`circo -T {{svg}} -o {{path/to/image.svg}} {{path/to/input.gv}}`
- Render the output in `ps`, `pdf`, `svg`, `fig`, `png`, `gif`, `jpg`, `json`, or `dot` format:
- Render the output in PS, PDF, SVG, Fig, PNG, GIF, JPEG, JSON, or DOT format:
`circo -T {{format}} -O {{path/to/input.gv}}`
- Render a `gif` image using `stdin` and `stdout`:
- Render a GIF image using `stdin` and `stdout`:
`echo "{{digraph {this -> that} }}" | circo -T {{gif}} > {{path/to/image.gif}}`

41
tldr/colima Normal file
View File

@@ -0,0 +1,41 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# colima
> Container runtimes for macOS and Linux with minimal setup.
> More information: <https://github.com/abiosoft/colima>.
- Start the daemon in the background:
`colima start`
- Create a configuration file and use it:
`colima start --edit`
- Start and setup containerd (install `nerdctl` to use containerd via `nerdctl`):
`colima start --runtime containerd`
- Start with Kubernetes (`kubectl` is required):
`colima start --kubernetes`
- Customize CPU count, RAM memory and disk space (in GiB):
`colima start --cpu {{number}} --memory {{memory}} --disk {{storage_space}}`
- Use Docker via Colima (Docker is required):
`colima start`
- List containers with their information and status:
`colima list`
- Show runtime status:
`colima status`

View File

@@ -9,7 +9,7 @@ source: https://github.com/tldr-pages/tldr.git
> Part of ImageMagick.
> More information: <https://imagemagick.org/script/convert.php>.
- Convert an image from JPG to PNG:
- Convert an image from JPEG to PNG:
`convert {{path/to/input_image.jpg}} {{path/to/output_image.png}}`

View File

@@ -8,7 +8,7 @@ source: https://github.com/tldr-pages/tldr.git
> Quick visualization of large datasets using CLI based on datashader.
> More information: <https://github.com/wybert/datashader-cli>.
- Create a shaded scatter plot of points and save it to a png file and set the background color:
- Create a shaded scatter plot of points and save it to a PNG file and set the background color:
`datashader_cli points {{path/to/input.parquet}} --x {{pickup_x}} --y {{pickup_y}} {{path/to/output.png}} --background {{black|white|#rrggbb}}`

View File

@@ -21,7 +21,7 @@ source: https://github.com/tldr-pages/tldr.git
`dep rollback`
- Connect to a remote host via ssh:
- Connect to a remote host via SSH:
`dep ssh {{hostname}}`

View File

@@ -9,7 +9,7 @@ source: https://github.com/tldr-pages/tldr.git
> Some subcommands such as `docker run` have their own usage documentation.
> More information: <https://docs.docker.com/engine/reference/commandline/cli/>.
- List all docker containers (running and stopped):
- List all Docker containers (running and stopped):
`docker ps --all`
@@ -21,7 +21,7 @@ source: https://github.com/tldr-pages/tldr.git
`docker {{start|stop}} {{container_name}}`
- Pull an image from a docker registry:
- Pull an image from a Docker registry:
`docker pull {{image}}`

View File

@@ -8,19 +8,19 @@ source: https://github.com/tldr-pages/tldr.git
> Build an image from a Dockerfile.
> More information: <https://docs.docker.com/engine/reference/commandline/build/>.
- Build a docker image using the Dockerfile in the current directory:
- Build a Docker image using the Dockerfile in the current directory:
`docker build .`
- Build a docker image from a Dockerfile at a specified URL:
- Build a Docker image from a Dockerfile at a specified URL:
`docker build {{github.com/creack/docker-firefox}}`
- Build a docker image and tag it:
- Build a Docker image and tag it:
`docker build --tag {{name:tag}} .`
- Build a docker image with no build context:
- Build a Docker image with no build context:
`docker build --tag {{name:tag}} - < {{Dockerfile}}`
@@ -28,7 +28,7 @@ source: https://github.com/tldr-pages/tldr.git
`docker build --no-cache --tag {{name:tag}} .`
- Build a docker image using a specific Dockerfile:
- Build a Docker image using a specific Dockerfile:
`docker build --file {{Dockerfile}} .`

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# docker compose
> Run and manage multi container docker applications.
> Run and manage multi container Docker applications.
> More information: <https://docs.docker.com/compose/reference/>.
- List all running containers:

View File

@@ -32,7 +32,7 @@ source: https://github.com/tldr-pages/tldr.git
`docker container inspect {{container_name}}`
- Export a container's filesystem as a `tar` archive:
- Export a container's filesystem as a tar archive:
`docker container export {{container_name}}`

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# docker login
> Log into a docker registry.
> Log into a Docker registry.
> More information: <https://docs.docker.com/engine/reference/commandline/login/>.
- Interactively log into a registry:

View File

@@ -8,11 +8,11 @@ source: https://github.com/tldr-pages/tldr.git
> Create and manage machines running Docker.
> More information: <https://docs.docker.com/machine/reference/>.
- List currently running docker machines:
- List currently running Docker machines:
`docker-machine ls`
- Create a new docker machine with specific name:
- Create a new Docker machine with specific name:
`docker-machine create {{name}}`

View File

@@ -5,10 +5,10 @@ source: https://github.com/tldr-pages/tldr.git
---
# docker network
> Create and manage docker networks.
> Create and manage Docker networks.
> More information: <https://docs.docker.com/engine/reference/commandline/network/>.
- List all available and configured networks on docker daemon:
- List all available and configured networks on Docker daemon:
`docker network ls`

View File

@@ -8,11 +8,11 @@ source: https://github.com/tldr-pages/tldr.git
> List Docker containers.
> More information: <https://docs.docker.com/engine/reference/commandline/ps/>.
- List currently running docker containers:
- List currently running Docker containers:
`docker ps`
- List all docker containers (running and stopped):
- List all Docker containers (running and stopped):
`docker ps --all`

View File

@@ -8,11 +8,11 @@ source: https://github.com/tldr-pages/tldr.git
> Export Docker images to archive.
> More information: <https://docs.docker.com/engine/reference/commandline/save/>.
- Save an image by redirecting `stdout` to a `tar` archive:
- Save an image by redirecting `stdout` to a tar archive:
`docker save {{image}}:{{tag}} > {{path/to/file.tar}}`
- Save an image to a `tar` archive:
- Save an image to a tar archive:
`docker save --output {{path/to/file.tar}} {{image}}:{{tag}}`

View File

@@ -5,10 +5,10 @@ source: https://github.com/tldr-pages/tldr.git
---
# docker service
> Manage the services on a docker daemon.
> Manage the services on a Docker daemon.
> More information: <https://docs.docker.com/engine/reference/commandline/service/>.
- List the services on a docker daemon:
- List the services on a Docker daemon:
`docker service ls`

View File

@@ -12,7 +12,7 @@ source: https://github.com/tldr-pages/tldr.git
`docker start`
- Start a docker container:
- Start a Docker container:
`docker start {{container}}`

View File

@@ -12,7 +12,7 @@ source: https://github.com/tldr-pages/tldr.git
`docker system`
- Show docker disk usage:
- Show Docker disk usage:
`docker system df`

View File

@@ -9,19 +9,19 @@ source: https://github.com/tldr-pages/tldr.git
> Layouts: `dot`, `neato`, `twopi`, `circo`, `fdp`, `sfdp`, `osage` & `patchwork`.
> More information: <https://graphviz.org/doc/info/command.html>.
- Render a `png` image with a filename based on the input filename and output format (uppercase -O):
- Render a PNG image with a filename based on the input filename and output format (uppercase -O):
`dot -T {{png}} -O {{path/to/input.gv}}`
- Render a `svg` image with the specified output filename (lowercase -o):
- Render a SVG image with the specified output filename (lowercase -o):
`dot -T {{svg}} -o {{path/to/image.svg}} {{path/to/input.gv}}`
- Render the output in `ps`, `pdf`, `svg`, `fig`, `png`, `gif`, `jpg`, `json`, or `dot` format:
- Render the output in PS, PDF, SVG, Fig, PNG, GIF, JPEG, JSON, or DOT format:
`dot -T {{format}} -O {{path/to/input.gv}}`
- Render a `gif` image using `stdin` and `stdout`:
- Render a GIF image using `stdin` and `stdout`:
`echo "{{digraph {this -> that} }}" | dot -T {{gif}} > {{path/to/image.gif}}`

View File

@@ -25,7 +25,7 @@ source: https://github.com/tldr-pages/tldr.git
`duplicity collection-status "file://{{absolute/path/to/backup/directory}}"`
- List the files in a backup stored on a remote machine, via ssh:
- List the files in a backup stored on a remote machine, via SSH:
`duplicity list-current-files --time {{YYYY-MM-DD}} scp://{{user@hostname}}/{{path/to/backup/dir}}`

View File

@@ -9,26 +9,26 @@ source: https://github.com/tldr-pages/tldr.git
> Animated WebP files are not supported.
> More information: <https://developers.google.com/speed/webp/docs/dwebp/>.
- Convert a `webp` file into a `png` file:
- Convert a WebP file into a PNG file:
`dwebp {{path/to/input.webp}} -o {{path/to/output.png}}`
- Convert a `webp` file into a specific filetype:
- Convert a WebP file into a specific filetype:
`dwebp {{path/to/input.webp}} -bmp|-tiff|-pam|-ppm|-pgm|-yuv -o {{path/to/output}}`
- Convert a `webp` file, using multi-threading if possible:
- Convert a WebP file, using multi-threading if possible:
`dwebp {{path/to/input.webp}} -o {{path/to/output.png}} -mt`
- Convert a `webp` file, but also crop and scale at the same time:
- Convert a WebP file, but also crop and scale at the same time:
`dwebp {{input.webp}} -o {{output.png}} -crop {{x_pos}} {{y_pos}} {{width}} {{height}} -scale {{width}} {{height}}`
- Convert a `webp` file and flip the output:
- Convert a WebP file and flip the output:
`dwebp {{path/to/input.webp}} -o {{path/to/output.png}} -flip`
- Convert a `webp` file and don't use in-loop filtering to speed up the decoding process:
- Convert a WebP file and don't use in-loop filtering to speed up the decoding process:
`dwebp {{path/to/input.webp}} -o {{path/to/output.png}} -nofilter`

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# ect
> Efficient Compression Tool.
> File optimizer written in C++. It supports `.png`, `.jpg`, `.gzip` and `.zip` files.
> File optimizer written in C++. It supports PNG, JPEG, gzip and Zip files.
> More information: <https://github.com/fhanau/Efficient-Compression-Tool>.
- Compress a file:

View File

@@ -21,7 +21,7 @@ source: https://github.com/tldr-pages/tldr.git
`fastmod {{regex}} {{replacement}} --dir {{path/to/directory}} --iglob {{'**/*.{js,json}'}}`
- Replace for an exact string in .js or .json files:
- Replace for an exact string in `.js` or JSON files:
`fastmod --fixed-strings {{exact_string}} {{replacement}} --extensions {{json,js}}`

View File

@@ -9,11 +9,11 @@ source: https://github.com/tldr-pages/tldr.git
> Layouts: `dot`, `neato`, `twopi`, `circo`, `fdp`, `sfdp`, `osage` & `patchwork`.
> More information: <https://graphviz.org/doc/info/command.html>.
- Render a `png` image with a filename based on the input filename and output format (uppercase -O):
- Render a PNG image with a filename based on the input filename and output format (uppercase -O):
`fdp -T png -O {{path/to/input.gv}}`
- Render a `svg` image with the specified output filename (lowercase -o):
- Render a SVG image with the specified output filename (lowercase -o):
`fdp -T svg -o {{path/to/image.svg}} {{path/to/input.gv}}`

View File

@@ -8,14 +8,14 @@ source: https://github.com/tldr-pages/tldr.git
> Print the content of the first (non-directory) member in an archive without extraction.
> More information: <https://manned.org/funzip>.
- Print the content of the first member in a `.zip` archive:
- Print the content of the first member in a Zip archive:
`funzip {{path/to/archive.zip}}`
- Print the content in a `.gz` archive:
- Print the content in a gzip archive:
`funzip {{path/to/archive.gz}}`
- Decrypt a `.zip` or `.gz` archive and print the content:
- Decrypt a Zip or gzip archive and print the content:
`funzip -password {{password}} {{path/to/archive}}`

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# gcpdiag
> Google Cloud Platform troubleshooting and diagnostics tool.
> Run in a docker container or in GCP Cloudshell.
> Run in a Docker container or in GCP Cloudshell.
> More information: <https://github.com/GoogleCloudPlatform/gcpdiag>.
- Run `gcpdiag` on your project, returning all rules:

View File

@@ -5,10 +5,10 @@ source: https://github.com/tldr-pages/tldr.git
---
# git archive-file
> Export all the files of the current Git branch into a `zip` archive.
> Export all the files of the current Git branch into a Zip archive.
> Part of `git-extras`.
> More information: <https://github.com/tj/git-extras/blob/master/Commands.md#git-archive-file>.
- Pack the currently checked out commit into a `zip` archive:
- Pack the currently checked out commit into a Zip archive:
`git archive-file`

View File

@@ -20,6 +20,6 @@ source: https://github.com/tldr-pages/tldr.git
`git init --object-format={{sha256}}`
- Initialize a barebones repository, suitable for use as a remote over ssh:
- Initialize a barebones repository, suitable for use as a remote over SSH:
`git init --bare`

View File

@@ -33,7 +33,7 @@ source: https://github.com/tldr-pages/tldr.git
`helm install {{name}} {{repository_name}}/{{chart_name}}`
- Download helm chart as a `tar` archive:
- Download helm chart as a tar archive:
`helm get {{chart_release_name}}`

View File

@@ -20,7 +20,7 @@ source: https://github.com/tldr-pages/tldr.git
`httpflow -u '{{regular_expression}}'`
- Read packets from pcap format binary file:
- Read packets from PCAP format binary file:
`httpflow -r {{out.cap}}`

View File

@@ -13,7 +13,7 @@ source: https://github.com/tldr-pages/tldr.git
`httpry -o {{path/to/file.log}}`
- Listen on a specific interface and save output to a binary pcap format file:
- Listen on a specific interface and save output to a binary PCAP format file:
`httpry {{eth0}} -b {{path/to/file.pcap}}`

View File

@@ -8,6 +8,6 @@ source: https://github.com/tldr-pages/tldr.git
> Clone an existing repository.
> More information: <https://hub.github.com/hub-clone.1.html>.
- Clone an existing repository to current directory (If run into authentication problem, try full ssh path):
- Clone an existing repository to current directory (If run into authentication problem, try full SSH path):
`hub clone {{remote_repository_location}}`

View File

@@ -8,7 +8,7 @@ source: https://github.com/tldr-pages/tldr.git
> Produce aggregate statistics of TCP/IP dumps.
> More information: <https://manned.org/ipaggcreate>.
- Count the number of packets sent from each source address appearing in a pcap file:
- Count the number of packets sent from each source address appearing in a PCAP file:
`ipaggcreate --src {{path/to/file.pcap}}`
@@ -16,6 +16,6 @@ source: https://github.com/tldr-pages/tldr.git
`ipaggcreate --interface {{eth0}} --length`
- Count the number of bytes sent between each address pair appearing in a pcap file:
- Count the number of bytes sent between each address pair appearing in a PCAP file:
`ipaggcreate --address-pairs --bytes {{path/to/file.pcap}}`

View File

@@ -8,7 +8,7 @@ source: https://github.com/tldr-pages/tldr.git
> Summarise TCP/IP dumps into a human and machine readable ASCII format.
> More information: <https://manned.org/ipsumdump>.
- Print the source and destination IP addresses of all packets in a pcap file:
- Print the source and destination IP addresses of all packets in a PCAP file:
`ipsumdump --src --dst {{path/to/file.pcap}}`
@@ -16,6 +16,6 @@ source: https://github.com/tldr-pages/tldr.git
`ipsumdump --interface {{eth0}} -tsSdDp`
- Print the anonymised source address, anonymised destination address, and IP packet length of all packets in a pcap file:
- Print the anonymised source address, anonymised destination address, and IP packet length of all packets in a PCAP file:
`ipsumdump --src --dst --length --anonymize {{path/to/file.pcap}}`

View File

@@ -12,7 +12,7 @@ source: https://github.com/tldr-pages/tldr.git
`jhat {{dump_file.bin}}`
- Analyze a heap dump, specifying an alternate port for the http server:
- Analyze a heap dump, specifying an alternate port for the HTTP server:
`jhat -p {{port}} {{dump_file.bin}}`

View File

@@ -12,7 +12,7 @@ source: https://github.com/tldr-pages/tldr.git
`kops create cluster -f {{cluster_name.yaml}}`
- Create a new ssh public key:
- Create a new SSH public key:
`kops create secret sshpublickey {{key_name}} -i {{~/.ssh/id_rsa.pub}}`

View File

@@ -25,6 +25,6 @@ source: https://github.com/tldr-pages/tldr.git
`wget -qO - {{https://host.tld/filename.key}} | apt-key add -`
- Add a key from keyserver with only key id:
- Add a key from keyserver with only key ID:
`apt-key adv --keyserver {{pgp.mit.edu}} --recv {{KEYID}}`

View File

@@ -8,7 +8,7 @@ source: https://github.com/tldr-pages/tldr.git
> Manage archives of various formats.
> More information: <https://www.nongnu.org/atool/>.
- List files in a `zip` archive:
- List files in a Zip archive:
`atool --list {{path/to/archive.zip}}`
@@ -16,10 +16,10 @@ source: https://github.com/tldr-pages/tldr.git
`atool --extract {{path/to/archive.tar.gz}}`
- Create a new `7z` archive with two files:
- Create a new 7z archive with two files:
`atool --add {{path/to/archive.7z}} {{path/to/file1 path/to/file2 ...}}`
- Extract all `zip` and rar archives in the current directory:
- Extract all Zip and rar archives in the current directory:
`atool --each --extract {{*.zip *.rar}}`

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# distrobox-list
> List all Distrobox containers. See also: `tldr distrobox`.
> Distrobox containers are listed separately from the rest of normal podman or Docker containers.
> Distrobox containers are listed separately from the rest of normal Podman or Docker containers.
> More information: <https://distrobox.it/usage/distrobox-list>.
- List all Distrobox containers:

View File

@@ -5,14 +5,14 @@ source: https://github.com/tldr-pages/tldr.git
---
# dockerd
> A persistent process to start and manage docker containers.
> A persistent process to start and manage Docker containers.
> More information: <https://docs.docker.com/engine/reference/commandline/dockerd/>.
- Run docker daemon:
- Run Docker daemon:
`dockerd`
- Run docker daemon and configure it to listen to specific sockets (UNIX and TCP):
- Run Docker daemon and configure it to listen to specific sockets (UNIX and TCP):
`dockerd --host unix://{{path/to/tmp.sock}} --host tcp://{{ip}}`

View File

@@ -28,7 +28,7 @@ source: https://github.com/tldr-pages/tldr.git
`dolphin --split {{path/to/directory1}} {{path/to/directory2}}`
- Launch the daemon (only required to use the DBus interface):
- Launch the daemon (only required to use the D-Bus interface):
`dolphin --daemon`

View File

@@ -13,6 +13,6 @@ source: https://github.com/tldr-pages/tldr.git
`sudo groupmod --new-name {{new_group}} {{group_name}}`
- Change the group id:
- Change the group ID:
`sudo groupmod --gid {{new_id}} {{group_name}}`

View File

@@ -36,6 +36,6 @@ source: https://github.com/tldr-pages/tldr.git
`kdialog --getopenfilename`
- Open a progressbar dialog and print a DBUS reference for communication to `stdout`:
- Open a progressbar dialog and print a D-Bus reference for communication to `stdout`:
`kdialog --progressbar "{{message}}"`

View File

@@ -9,7 +9,7 @@ source: https://github.com/tldr-pages/tldr.git
> See also: `tar`, `lrzuntar`, `lrunzip`.
> More information: <https://manned.org/lrztar>.
- Archive a directory with `tar`, then compress:
- Archive a directory with tar, then compress:
`lrztar {{path/to/directory}}`

View File

@@ -20,7 +20,7 @@ source: https://github.com/tldr-pages/tldr.git
`mksquashfs {{path/to/file_or_directory1 path/to/file_or_directory2 ...}} {{filesystem.squashfs}} -e {{file|directory1 file|directory2 ...}}`
- Create or append files and directories to a squashfs filesystem, [e]xcluding those ending with `.gz`:
- Create or append files and directories to a squashfs filesystem, [e]xcluding those ending with gzip:
`mksquashfs {{path/to/file_or_directory1 path/to/file_or_directory2 ...}} {{filesystem.squashfs}} -wildcards -e "{{*.gz}}"`

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# nsenter
> Run a new command in a running process' namespace.
> Particularly useful for docker images or chroot jails.
> Particularly useful for Docker images or chroot jails.
> More information: <https://manned.org/nsenter>.
- Run a specific command using the same namespaces as an existing process:

View File

@@ -16,7 +16,7 @@ source: https://github.com/tldr-pages/tldr.git
`pidstat -r`
- Show input/output usage per process id:
- Show input/output usage per process ID:
`pidstat -d`

View File

@@ -8,7 +8,7 @@ source: https://github.com/tldr-pages/tldr.git
> Report memory map of a process or processes.
> More information: <https://manned.org/pmap>.
- Print memory map for a specific process id (PID):
- Print memory map for a specific process ID (PID):
`pmap {{pid}}`

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# pngcheck
> Forensics tool for validating the integrity of PNG based (`.png`, `.jng`, `.mng`) image files.
> Forensics tool for validating the integrity of PNG based (PNG, JNG, MNG) image files.
> Can also extract embedded images and text from a file.
> More information: <http://www.libpng.org/pub/png/apps/pngcheck.html>.

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# pw-cat
> Play and record audio files through pipewire.
> Play and record audio files through PipeWire.
> More information: <https://fedoraproject.org/wiki/QA:Testcase_PipeWire_PipeWire_CLI>.
- Play a WAV file over the default target:

View File

@@ -8,7 +8,7 @@ source: https://github.com/tldr-pages/tldr.git
> Profile a local or remote instance.
> More information: <https://docs.pipewire.org/page_man_pw-profiler_1.html>.
- Profile the default instance, logging to `profile.log` (`gnuplot` files and a `.html` file for result visualizing are also generated):
- Profile the default instance, logging to `profile.log` (`gnuplot` files and a HTML file for result visualizing are also generated):
`pw-profiler`

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# pw-record
> Record audio files through pipewire.
> Record audio files through PipeWire.
> Shorthand for pw-cat --record.
> More information: <https://fedoraproject.org/wiki/QA:Testcase_PipeWire_PipeWire_CLI>.

View File

@@ -9,7 +9,7 @@ source: https://github.com/tldr-pages/tldr.git
> Use `--skiplock` and `--skiplockstorage` flags with caution, as they may lead to data corruption in certain situations.
> More information: <https://pve.proxmox.com/pve-docs/qm.1.html>.
- Suspend a virtual machine by id:
- Suspend a virtual machine by ID:
`qm suspend {{vm_id}} {{integer}}`

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# rexec
> Execute a command on a remote host.
> Note: Use `rexec` with caution, as it transmits data in plain text. Consider secure alternatives like `ssh` for encrypted communication.
> Note: Use `rexec` with caution, as it transmits data in plain text. Consider secure alternatives like SSH for encrypted communication.
> More information: <https://www.gnu.org/software/inetutils/manual/html_node/rexec-invocation.html>.
- Execute a command on a remote [h]ost:

View File

@@ -8,11 +8,11 @@ source: https://github.com/tldr-pages/tldr.git
> Display accounting data from the Slurm service.
> More information: <https://slurm.schedmd.com/sacct.html>.
- Display job id, job name, partition, account, number of allocated cpus, job state, and job exit codes for recent jobs:
- Display job ID, job name, partition, account, number of allocated cpus, job state, and job exit codes for recent jobs:
`sacct`
- Display job id, job state, job exit code for recent jobs:
- Display job ID, job state, job exit code for recent jobs:
`sacct --brief`

View File

@@ -8,22 +8,22 @@ source: https://github.com/tldr-pages/tldr.git
> Create a squashfs filesystem from a tar archive.
> More information: <https://manned.org/sqfstar>.
- Create a squashfs filesystem (compressed using `gzip` by default) from an uncompressed `tar` archive:
- Create a squashfs filesystem (compressed using `gzip` by default) from an uncompressed tar archive:
`sqfstar {{filesystem.squashfs}} < {{archive.tar}}`
- Create a squashfs filesystem from a `tar` archive compressed with `gzip`, and [comp]ress the filesystem using a specific algorithm:
- Create a squashfs filesystem from a tar archive compressed with `gzip`, and [comp]ress the filesystem using a specific algorithm:
`zcat {{archive.tar.gz}} | sqfstar -comp {{gzip|lzo|lz4|xz|zstd|lzma}} {{filesystem.squashfs}}`
- Create a squashfs filesystem from a `tar` archive compressed with `xz`, excluding some of the files:
- Create a squashfs filesystem from a tar archive compressed with `xz`, excluding some of the files:
`xzcat {{archive.tar.xz}} | sqfstar {{filesystem.squashfs}} {{file1 file2 ...}}`
- Create a squashfs filesystem from a `tar` archive compressed with `zstd`, excluding files ending with `.gz`:
- Create a squashfs filesystem from a tar archive compressed with `zstd`, excluding files ending with `.gz`:
`zstdcat {{archive.tar.zst}} | sqfstar {{filesystem.squashfs}} "{{*.gz}}"`
- Create a squashfs filesystem from a `tar` archive compressed with `lz4`, excluding files matching a regular expression:
- Create a squashfs filesystem from a tar archive compressed with `lz4`, excluding files matching a regular expression:
`lz4cat {{archive.tar.lz4}} | sqfstar {{filesystem.squashfs}} -regex "{{regular_expression}}"`

View File

@@ -24,7 +24,7 @@ source: https://github.com/tldr-pages/tldr.git
`ss -lt src :{{8080}}`
- Show all TCP sockets along with processes connected to a remote ssh port:
- Show all TCP sockets along with processes connected to a remote SSH port:
`ss -pt dst :{{ssh}}`

View File

@@ -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}}`

View File

@@ -13,10 +13,30 @@ source: https://github.com/tldr-pages/tldr.git
`sudo tlp-stat`
- Show battery information:
- Show information about various devices:
`sudo tlp-stat -b`
`sudo tlp-stat --{{battery|disk|processor|graphics|pcie|rfkill|usb}}`
- Show verbose information about devices that support verbosity:
`sudo tlp-stat --verbose --{{battery|processor|pcie|usb}}`
- Show configuration:
`sudo tlp-stat -c`
`sudo tlp-stat {{-c|--config}}`
- Monitor [p]ower supply `udev` [ev]ents:
`sudo tlp-stat {{-P|--pev}}`
- Show [p]ower [sup]ply diagonistics:
`sudo tlp-stat --psup`
- Show [temp]eratures and fan speed:
`sudo tlp-stat {{-t|--temp}}`
- Show general system information:
`sudo tlp-stat {{-s|--system}}`

View File

@@ -5,10 +5,10 @@ source: https://github.com/tldr-pages/tldr.git
---
# unzipsfx
> Create a self-extracting compressed binary file by prepending self-extracting stubs on a `zip` file.
> Create a self-extracting compressed binary file by prepending self-extracting stubs on a Zip file.
> More information: <https://manned.org/unzipsfx>.
- Create a self-extracting binary file of a `zip` archive:
- Create a self-extracting binary file of a Zip archive:
`cat unzipsfx {{path/to/archive.zip}} > {{filename}} && chmod 755 {{filename}}`
@@ -24,6 +24,6 @@ source: https://github.com/tldr-pages/tldr.git
`{{./path/to/binary)}} -c {{path/to/filename}}`
- Print comments on `zip` archive in the self-extracting binary:
- Print comments on Zip archive in the self-extracting binary:
`{{./path/to/binary)}} -z`

View File

@@ -13,7 +13,7 @@ source: https://github.com/tldr-pages/tldr.git
`sudo useradd {{username}}`
- Create a new user with the specified user id:
- Create a new user with the specified user ID:
`sudo useradd --uid {{id}} {{username}}`

View File

@@ -13,7 +13,7 @@ source: https://github.com/tldr-pages/tldr.git
`sudo usermod --login {{new_username}} {{username}}`
- Change a user id:
- Change a user ID:
`sudo usermod --uid {{id}} {{username}}`

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# zip
> Package and compress (archive) files into `zip` archive.
> Package and compress (archive) files into a Zip archive.
> See also: `unzip`.
> More information: <https://manned.org/zip>.
@@ -29,7 +29,7 @@ source: https://github.com/tldr-pages/tldr.git
`zip -r --encrypt {{path/to/compressed.zip}} {{path/to/file_or_directory1 path/to/file_or_directory2 ...}}`
- Archive files/directories to a multi-part [s]plit `zip` archive (e.g. 3 GB parts):
- Archive files/directories to a multi-part [s]plit Zip archive (e.g. 3 GB parts):
`zip -r -s {{3g}} {{path/to/compressed.zip}} {{path/to/file_or_directory1 path/to/file_or_directory2 ...}}`

View File

@@ -17,7 +17,7 @@ source: https://github.com/tldr-pages/tldr.git
`magick {{path/to/input_image.jpg}} -resize {{100x100}} {{path/to/output_image.jpg}}`
- Create a GIF out of all JPG images in the current directory:
- Create a GIF out of all JPEG images in the current directory:
`magick {{*.jpg}} {{path/to/images.gif}}`
@@ -25,6 +25,6 @@ source: https://github.com/tldr-pages/tldr.git
`magick -size {{640x480}} pattern:checkerboard {{path/to/checkerboard.png}}`
- Create a PDF file out of all JPG images in the current directory:
- Create a PDF file out of all JPEG images in the current directory:
`magick {{*.jpg}} -adjoin {{path/to/file.pdf}}`

View File

@@ -9,19 +9,19 @@ source: https://github.com/tldr-pages/tldr.git
> Layouts: `dot`, `neato`, `twopi`, `circo`, `fdp`, `sfdp`, `osage` & `patchwork`.
> More information: <https://graphviz.org/doc/info/command.html>.
- Render a `png` image with a filename based on the input filename and output format (uppercase -O):
- Render a PNG image with a filename based on the input filename and output format (uppercase -O):
`neato -T {{png}} -O {{path/to/input.gv}}`
- Render a `svg` image with the specified output filename (lowercase -o):
- Render a SVG image with the specified output filename (lowercase -o):
`neato -T {{svg}} -o {{path/to/image.svg}} {{path/to/input.gv}}`
- Render the output in `ps`, `pdf`, `svg`, `fig`, `png`, `gif`, `jpg`, `json`, or `dot` format:
- Render the output in PS, PDF, SVG, Fig, PNG, GIF, JPEG, JSON, or DOT format:
`neato -T {{format}} -O {{path/to/input.gv}}`
- Render a `gif` image using `stdin` and `stdout`:
- Render a GIF image using `stdin` and `stdout`:
`echo "{{graph {this -- that} }}" | neato -T {{gif}} > {{path/to/image.gif}}`

View File

@@ -13,11 +13,11 @@ source: https://github.com/tldr-pages/tldr.git
`nix registry pin {{nixpkgs}}`
- Pin an entry to the latest version of the branch, or a particular reivision of a github repository:
- Pin an entry to the latest version of the branch, or a particular reivision of a GitHub repository:
`nix registry pin {{entry}} {{github:owner/repo/branch_or_revision}}`
- Add a new entry that always points to the latest version of a github repository, updating automatically:
- Add a new entry that always points to the latest version of a GitHub repository, updating automatically:
`nix registry add {{entry}} {{github:owner/repo}}`

View File

@@ -8,7 +8,7 @@ source: https://github.com/tldr-pages/tldr.git
> Monitor a process and trigger a banner notification.
> More information: <https://github.com/variadico/noti>.
- Display a notification when `tar` finishes compressing files:
- Display a notification when tar finishes compressing files:
`noti {{tar -cjf example.tar.bz2 example/}}`

View File

@@ -9,19 +9,19 @@ source: https://github.com/tldr-pages/tldr.git
> Layouts: `dot`, `neato`, `twopi`, `circo`, `fdp`, `sfdp`, `osage` & `patchwork`.
> More information: <https://graphviz.org/doc/info/command.html>.
- Render a `png` image with a filename based on the input filename and output format (uppercase -O):
- Render a PNG image with a filename based on the input filename and output format (uppercase -O):
`osage -T {{png}} -O {{path/to/input.gv}}`
- Render a `svg` image with the specified output filename (lowercase -o):
- Render a SVG image with the specified output filename (lowercase -o):
`osage -T {{svg}} -o {{path/to/image.svg}} {{path/to/input.gv}}`
- Render the output in `ps`, `pdf`, `svg`, `fig`, `png`, `gif`, `jpg`, `json`, or `dot` format:
- Render the output in PS, PDF, SVG, Fig, PNG, GIF, JPEG, JSON, or DOT format:
`osage -T {{format}} -O {{path/to/input.gv}}`
- Render a `gif` image using `stdin` and `stdout`:
- Render a GIF image using `stdin` and `stdout`:
`echo "{{digraph {this -> that} }}" | osage -T {{gif}} > {{path/to/image.gif}}`

View File

@@ -8,7 +8,7 @@ source: https://github.com/tldr-pages/tldr.git
> Scan various mediums for dependencies and matches them against the OSV database.
> More information: <https://osv.dev/about>.
- Scan a docker image:
- Scan a Docker image:
`osv-scanner -D {{docker_image_name}}`

View File

@@ -24,6 +24,6 @@ source: https://github.com/tldr-pages/tldr.git
`packwiz refresh`
- Export as a Modrinth (`.mrpack`) or Curseforge (`.zip`) file:
- Export as a Modrinth (`.mrpack`) or Curseforge (Zip) file:
`packwiz {{modrinth|curseforge}} export`

View File

@@ -16,7 +16,7 @@ source: https://github.com/tldr-pages/tldr.git
`ls *.txt | parallel -j4 gzip`
- Convert JPG images to PNG using replacement strings:
- Convert JPEG images to PNG using replacement strings:
`parallel convert {} {.}.png ::: *.jpg`

View File

@@ -9,15 +9,15 @@ source: https://github.com/tldr-pages/tldr.git
> Layouts: `dot`, `neato`, `twopi`, `circo`, `fdp`, `sfdp`, `osage` & `patchwork`.
> More information: <https://graphviz.org/doc/info/command.html>.
- Render a `png` image with a filename based on the input filename and output format (uppercase -O):
- Render a PNG image with a filename based on the input filename and output format (uppercase -O):
`patchwork -T {{png}} -O {{path/to/input.gv}}`
- Render a `svg` image with the specified output filename (lowercase -o):
- Render a SVG image with the specified output filename (lowercase -o):
`patchwork -T {{svg}} -o {{path/to/image.svg}} {{path/to/input.gv}}`
- Render the output in `ps`, `pdf`, `svg`, `fig`, `png`, `gif`, `jpg`, `json`, or `dot` format:
- Render the output in PS, PDF, SVG, Fig, PNG, GIF, JPEG, JSON, or DOT format:
`patchwork -T {{format}} -O {{path/to/input.gv}}`

View File

@@ -5,22 +5,22 @@ source: https://github.com/tldr-pages/tldr.git
---
# pcapfix
> Repair damaged or corrupted `pcap` and `pcapng` files.
> Repair damaged or corrupted PCAP and PcapNG files.
> More information: <https://f00l.de/pcapfix/>.
- Repair a `pcap`/`pcapng` file (Note: for `pcap` files, only the first 262144 bytes of each packet are scanned):
- Repair a PCAP/PCapNG file (Note: for PCAP files, only the first 262144 bytes of each packet are scanned):
`pcapfix {{path/to/file.pcapng}}`
- Repair an entire `pcap` file:
- Repair an entire PCAP file:
`pcapfix --deep-scan {{path/to/file.pcap}}`
- Repair a `pcap`/`pcapng` file and write the repaired file to the specified location:
- Repair a PCAP/PcapNG file and write the repaired file to the specified location:
`pcapfix --outfile {{path/to/repaired.pcap}} {{path/to/file.pcap}}`
- Repair a `pcapng` file and treat it as a `pcapng` file, ignoring the automatic recognition:
- Repair a PcapNG file and treat it as a PcapNG file, ignoring the automatic recognition:
`pcapfix --pcapng {{path/to/file.pcapng}}`

View File

@@ -8,11 +8,11 @@ source: https://github.com/tldr-pages/tldr.git
> List Podman containers.
> More information: <https://docs.podman.io/en/latest/markdown/podman-ps.1.html>.
- List currently running podman containers:
- List currently running Podman containers:
`podman ps`
- List all podman containers (running and stopped):
- List all Podman containers (running and stopped):
`podman ps --all`

View File

@@ -8,7 +8,7 @@ source: https://github.com/tldr-pages/tldr.git
> Find regular expression patterns in tar archive files.
> More information: <https://manned.org/ptargrep>.
- Search for a pattern within one or more `tar` archives:
- Search for a pattern within one or more tar archives:
`ptargrep "{{search_pattern}}" {{path/to/file1 path/to/file2 ...}}`
@@ -16,6 +16,6 @@ source: https://github.com/tldr-pages/tldr.git
`ptargrep --basename "{{search_pattern}}" {{path/to/file}}`
- Search for a case-insensitive pattern matching within a `tar` archive:
- Search for a case-insensitive pattern matching within a tar archive:
`ptargrep --ignore-case "{{search_pattern}}" {{path/to/file}}`

View File

@@ -12,6 +12,6 @@ source: https://github.com/tldr-pages/tldr.git
`pueue send {{task_id}} "{{input}}"`
- Send confirmation to a task expecting y/N (e.g. apt, cp):
- Send confirmation to a task expecting y/N (e.g. APT, cp):
`pueue send {{task_id}} {{y}}`

View File

@@ -16,7 +16,7 @@ source: https://github.com/tldr-pages/tldr.git
`cat {{index.html}} | pup '{{tag}}'`
- Filter HTML by id:
- Filter HTML by ID:
`cat {{index.html}} | pup '{{div#id}}'`

6
tldr/q
View File

@@ -5,14 +5,14 @@ source: https://github.com/tldr-pages/tldr.git
---
# q
> Execute SQL-like queries on .csv and .tsv files.
> Execute SQL-like queries on CSV and TSV files.
> More information: <https://harelba.github.io/q>.
- Query `.csv` file by specifying the delimiter as ',':
- Query a CSV file by specifying the delimiter as ',':
`q -d',' "SELECT * from {{path/to/file}}"`
- Query `.tsv` file:
- Query a TSV file:
`q -t "SELECT * from {{path/to/file}}"`

View File

@@ -12,7 +12,7 @@ source: https://github.com/tldr-pages/tldr.git
`qcp {{source_file}}`
- Copy multiple JPG files:
- Copy multiple JPEG files:
`qcp {{*.jpg}}`

View File

@@ -12,7 +12,7 @@ source: https://github.com/tldr-pages/tldr.git
`qmv {{source_file}}`
- Move multiple JPG files:
- Move multiple JPEG files:
`qmv {{*.jpg}}`

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# rarcrack
> Password cracker for `rar`, `zip` and `7z` archives.
> Password cracker for RAR, Zip and 7z archives.
- Brute force the password for an archive (tries to guess the archive type):

View File

@@ -5,14 +5,14 @@ source: https://github.com/tldr-pages/tldr.git
---
# sc_warts2pcap
> Write packets included in `warts` object to a `pcap` file.
> Write packets included in `warts` object to a PCAP file.
> This is only possible for tbit, sting and sniff.
> More information: <https://www.caida.org/catalog/software/scamper/>.
- Convert the data from several `warts` files into one `pcap` file:
- Convert the data from several `warts` files into one PCAP file:
`sc_warts2pcap -o {{path/to/output.pcap}} {{path/to/file1.warts path/to/file2.warts ...}}`
- Convert the data from a `warts` file into a `pcap` file and sort the packets by timestamp:
- Convert the data from a `warts` file into a PCAP file and sort the packets by timestamp:
`sc_warts2pcap -s -o {{path/to/output.pcap}} {{path/to/file.warts}}`

View File

@@ -33,7 +33,7 @@ source: https://github.com/tldr-pages/tldr.git
`scp {{path/to/local_file}} {{remote_username}}@{{remote_host}}:{{path/to/remote_directory}}`
- Use a specific ssh private key for authentication with the remote host:
- Use a specific SSH private key for authentication with the remote host:
`scp -i {{~/.ssh/private_key}} {{path/to/local_file}} {{remote_host}}:{{path/to/remote_file}}`

View File

@@ -9,19 +9,19 @@ source: https://github.com/tldr-pages/tldr.git
> Layouts: `dot`, `neato`, `twopi`, `circo`, `fdp`, `sfdp`, `osage` & `patchwork`.
> More information: <https://graphviz.org/doc/info/command.html>.
- Render a `png` image with a filename based on the input filename and output format (uppercase -O):
- Render a PNG image with a filename based on the input filename and output format (uppercase -O):
`sfdp -T {{png}} -O {{path/to/input.gv}}`
- Render a `svg` image with the specified output filename (lowercase -o):
- Render a SVG image with the specified output filename (lowercase -o):
`sfdp -T {{svg}} -o {{path/to/image.svg}} {{path/to/input.gv}}`
- Render the output in `ps`, `pdf`, `svg`, `fig`, `png`, `gif`, `jpg`, `json`, or `dot` format:
- Render the output in PS, PDF, SVG, Fig, PNG, GIF, JPEG, JSON, or DOT format:
`sfdp -T {{format}} -O {{path/to/input.gv}}`
- Render a `gif` image using `stdin` and `stdout`:
- Render a GIF image using `stdin` and `stdout`:
`echo "{{digraph {this -> that} }}" | sfdp -T {{gif}} > {{path/to/image.gif}}`

View File

@@ -17,7 +17,7 @@ source: https://github.com/tldr-pages/tldr.git
`ssh -i {{path/to/key_file}} {{username}}@{{remote_host}}`
- Connect to a remote server using a specific port:
- Connect to a remote server using a specific [p]ort:
`ssh {{username}}@{{remote_host}} -p {{2222}}`
@@ -25,7 +25,7 @@ source: https://github.com/tldr-pages/tldr.git
`ssh {{username}}@{{remote_host}} -t {{command}} {{command_arguments}}`
- SSH tunneling: Dynamic port forwarding (SOCKS proxy on `localhost:1080`):
- SSH tunneling: [D]ynamic port forwarding (SOCKS proxy on `localhost:1080`):
`ssh -D {{1080}} {{username}}@{{remote_host}}`
@@ -33,7 +33,7 @@ source: https://github.com/tldr-pages/tldr.git
`ssh -L {{9999}}:{{example.org}}:{{80}} -N -T {{username}}@{{remote_host}}`
- SSH jumping: Connect through a jumphost to a remote server (Multiple jump hops may be specified separated by comma characters):
- SSH [J]umping: Connect through a jumphost to a remote server (Multiple jump hops may be specified separated by comma characters):
`ssh -J {{username}}@{{jump_host}} {{username}}@{{remote_host}}`

View File

@@ -9,7 +9,7 @@ source: https://github.com/tldr-pages/tldr.git
> Ensure that `ssh-agent` is up and running for the keys to be loaded in it.
> More information: <https://man.openbsd.org/ssh-add>.
- Add the default ssh keys in `~/.ssh` to the ssh-agent:
- Add the default SSH keys in `~/.ssh` to the ssh-agent:
`ssh-add`

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# ssh-keygen
> Generate ssh keys used for authentication, password-less logins, and other things.
> Generate SSH keys used for authentication, password-less logins, and other things.
> More information: <https://man.openbsd.org/ssh-keygen>.
- Generate a key interactively:

View File

@@ -5,21 +5,21 @@ source: https://github.com/tldr-pages/tldr.git
---
# ssh-keyscan
> Get the public ssh keys of remote hosts.
> Get the public SSH keys of remote hosts.
> More information: <https://man.openbsd.org/ssh-keyscan>.
- Retrieve all public ssh keys of a remote host:
- Retrieve all public SSH keys of a remote host:
`ssh-keyscan {{host}}`
- Retrieve all public ssh keys of a remote host listening on a specific port:
- Retrieve all public SSH keys of a remote host listening on a specific port:
`ssh-keyscan -p {{port}} {{host}}`
- Retrieve certain types of public ssh keys of a remote host:
- Retrieve certain types of public SSH keys of a remote host:
`ssh-keyscan -t {{rsa,dsa,ecdsa,ed25519}} {{host}}`
- Manually update the ssh known_hosts file with the fingerprint of a given host:
- Manually update the SSH known_hosts file with the fingerprint of a given host:
`ssh-keyscan -H {{host}} >> ~/.ssh/known_hosts`

View File

@@ -5,18 +5,18 @@ source: https://github.com/tldr-pages/tldr.git
---
# sshpass
> An ssh password provider.
> It works by creating a TTY, feeding the password into it, and then redirecting `stdin` to the ssh session.
> An SSH password provider.
> It works by creating a TTY, feeding the password into it, and then redirecting `stdin` to the SSH session.
> More information: <https://manned.org/sshpass>.
- Connect to a remote server using a password supplied on a file descriptor (in this case, `stdin`):
`sshpass -d {{0}} ssh {{user}}@{{hostname}}`
- Connect to a remote server with the password supplied as an option, and automatically accept unknown ssh keys:
- Connect to a remote server with the password supplied as an option, and automatically accept unknown SSH keys:
`sshpass -p {{password}} ssh -o StrictHostKeyChecking=no {{user}}@{{hostname}}`
- Connect to a remote server using the first line of a file as the password, automatically accept unknown ssh keys, and launch a command:
- Connect to a remote server using the first line of a file as the password, automatically accept unknown SSH keys, and launch a command:
`sshpass -f {{path/to/file}} ssh -o StrictHostKeyChecking=no {{user}}@{{hostname}} "{{command}}"`

View File

@@ -33,7 +33,7 @@ source: https://github.com/tldr-pages/tldr.git
`tar caf {{path/to/target.tar.xz}} {{path/to/file1 path/to/file2 ...}}`
- Lis[t] the contents of a `tar` [f]ile [v]erbosely:
- Lis[t] the contents of a tar [f]ile [v]erbosely:
`tar tvf {{path/to/source.tar}}`

View File

@@ -5,14 +5,14 @@ source: https://github.com/tldr-pages/tldr.git
---
# textql
> Execute SQL against structured text like csv or tsv files.
> Execute SQL against structured text like CSV or TSV files.
> More information: <https://github.com/dinedal/textql>.
- Print the lines in the specified `.csv` file that match an SQL query to `stdout`:
- Print the lines in the specified CSV file that match an SQL query to `stdout`:
`textql -sql "{{SELECT * FROM filename}}" {{path/to/filename.csv}}`
- Query `.tsv` file:
- Query a TSV file:
`textql -dlm=tab -sql "{{SELECT * FROM filename}}" {{path/to/filename.tsv}}`

View File

@@ -9,19 +9,19 @@ source: https://github.com/tldr-pages/tldr.git
> Layouts: `dot`, `neato`, `twopi`, `circo`, `fdp`, `sfdp`, `osage` & `patchwork`.
> More information: <https://graphviz.org/doc/info/command.html>.
- Render a `png` image with a filename based on the input filename and output format (uppercase -O):
- Render a PNG image with a filename based on the input filename and output format (uppercase -O):
`twopi -T {{png}} -O {{path/to/input.gv}}`
- Render a `svg` image with the specified output filename (lowercase -o):
- Render a SVG image with the specified output filename (lowercase -o):
`twopi -T {{svg}} -o {{path/to/image.svg}} {{path/to/input.gv}}`
- Render the output in `ps`, `pdf`, `svg`, `fig`, `png`, `gif`, `jpg`, `json`, or `dot` format:
- Render the output in PS, PDF, SVG, Fig, PNG, GIF, JPEG, JSON, or DOT format:
`twopi -T {{format}} -O {{path/to/input.gv}}`
- Render a `gif` image using `stdin` and `stdout`:
- Render a GIF image using `stdin` and `stdout`:
`echo "{{digraph {this -> that} }}" | twopi -T {{gif}} > {{path/to/image.gif}}`

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