
내 휴대폰으로 스캔할 수 있는 ubuntu cli 터미널에 QR 코드를 출력하고 싶습니다. 구성 파일을 QR 코드로 변환하여 스캔할 수 있고 USB 드라이브를 통해 전송할 필요가 있습니다. 구글 결과 중 다수는 파일을 QR 이미지 파일로 변환하는 방법만 보여주지만 터미널 자체에 출력하고 싶습니다.
답변1
답변2
URL 인라인 전달:
qrencode -m 2 -t utf8 <<< "https://superuser.com/questions/1492624/how-do-you-output-a-qr-code-to-the-linux-cli-terminal-for-scanning/1492625"
별칭을 사용하여 쉽게 사용하려면 다음을 수행하세요.
alias qr='qrencode -m 2 -t utf8 <<< "$1"'
처음:
. ~/.bashrc
이제 나중에 가능한 사용법은 다음과 같습니다.
qr https://superuser.com/questions/1492624/how-do-you-output-a-qr-code-to-the-linux-cli-terminal-for-scanning/1492625
qr "Hello world"
qr $(cat file.txt)
.