qr
Generate QR codes from text
TLDR
Generate a QR code
Specify the error correction level (defaults to M)
Generate a QR code from the output of another command
Save the QR code as a PNG image
SYNOPSIS
qr [string]
PARAMETERS
[string]
The string to encode as a QR code. If no string is provided, qr reads from standard input.
DESCRIPTION
The qr command is a simple utility for generating QR codes directly from your Linux terminal. It takes input from standard input (stdin) or as a command-line argument and outputs a QR code as an image. This image can then be displayed or saved to a file. It leverages other command line tools to encode data into a QR code and display it in the terminal. This utility offers a convenient and efficient way to encode information, such as URLs, text, or any other data, into a QR code format without relying on graphical interfaces or external websites. It is handy for quickly sharing information between devices or for automating the creation of QR codes in scripts. It's often implemented as a shell script or a thin wrapper around more established QR code generators.
CAVEATS
The `qr` command typically depends on other tools like `qrencode` and `imagemagick`. Make sure they are installed before using it.
The visual quality of the QR code depends on the specific implementation of `qr`.
Some qr implementations might require shell script interpreters like `bash` to work correctly.
DISPLAYING THE QR CODE
The simplest way is to display using `display` command from imagemagick.
Alternatively, you can save the image to a file and open it with your favorite image viewer.
INSTALLATION
Installation varies depending on the package manager used by your distribution. Typically it's available through your distribution's package manager such as `apt`, `yum`, or `pacman` or you could build it from source code.