← 返回命令列表

Linux command

qr 命令

趣味

复制后可按需替换文件名、目录或参数。

常用示例

Generate QR code

qr "[text]"

Generate from stdin

echo "[text]" | qr

Output as image

qr --output=[qr.png] "[text]"

说明

qr is a simple command-line utility for generating QR codes from text input. It can display QR codes directly in the terminal using Unicode block characters or save them as image files, making it useful for quickly sharing URLs, WiFi credentials, or other short text via scannable codes. The tool accepts text as a command-line argument or reads from standard input, allowing it to be used in shell pipelines. Various implementations of the qr command exist across different packages.

参数

--output _FILE_
Output file.
-o _FILE_
Output file.

FAQ

What is the qr command used for?

qr is a simple command-line utility for generating QR codes from text input. It can display QR codes directly in the terminal using Unicode block characters or save them as image files, making it useful for quickly sharing URLs, WiFi credentials, or other short text via scannable codes. The tool accepts text as a command-line argument or reads from standard input, allowing it to be used in shell pipelines. Various implementations of the qr command exist across different packages.

How do I run a basic qr example?

Run `qr "[text]"` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does --output _FILE_ do in qr?

Output file.