How do you output a QR code to the linux cli terminal for scanning?

2

I want to be able to output a QR code to the ubuntu cli terminal where I can scan with my phone. I have a configuration file I want to convert to a QR code so I can scan it vs having to transfer it over a usb drive. Many of the google results only show you how to convert a file to a QR image file, but I want to output to the terminal itself.

Patoshi パトシ

Posted 2019-10-15T17:12:54.793

Reputation: 1 687

Answers

4

Use the terminal application 'qrencode'. The command you are looking for is the following:

qrencode -t ansiutf8 < myfile_here

The t option is to specify output type. it can also be PNG for a file or ASCII as ascii format.

Patoshi パトシ

Posted 2019-10-15T17:12:54.793

Reputation: 1 687