Command line printing in Ubuntu

Recently I wanted to print a bunch of files without having to open them. It was a joy to do it from the command line.

$ lpstat -p -d
printer HAT2-GD-03 is idle.  enabled since Tue 23 Jul 2013 10:16:28 BST

$ lpr -P "HAT2-GD-03" github-cmullaparthi-receipt-2013-03-28.pdf

Ta da!

Advertisements