Create a QR code

$ qrencode 'string' -o <outputfile.png>

Read a QR code

Source

$ zbarimg <file>