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

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s