Ye blog of Adam Wright

DIY, tutorials, stuff for geeks, all updated when I have the time to spare.

How to print multiple files at once in Linux

Screenshot-PDFs

So you’ve got a folder full of PDF files that you want to print. You hilight all of them and right-click, but there’s no “Print” or “Send to printer…” option. There are probably ways out there to add this option to your right-click menu, but a quick and dirty way is to use the command line using the lpr command. This is useful if you just need to print multiple files once in a blue moon. I mean, how often do you print 5 PDFs at once? Furthermore, how often do you print nowadays?

Here’s the command:

lpr *.pdf

That’s it. The lpr command sends files to your default printer for printing. In the above example, I sent all PDF files in my current folder to my printer. If you only want to send a few PDF files, or maybe multiple format files like .txt, .pdf, etc., then just do this:

  1. Once you have all the files you want to print hilighted, copy and paste them into a new empty folder.
  2. Navigate to that folder via command line/terminal.
  3. Print all the files in that folder: “lpr *”

Screenshot-lprfolder

I have only tested the lpr command with PDF files and it worked perfectly, but I suspect it should work with any file format that your system recognizes. For this reason I assume it should work for office documents, pictures, etc.

About these ads

3 responses to “How to print multiple files at once in Linux

  1. gorav seth 04/14/2013 at 10:27 PM

    helpful – for printing out a ton of pdfs for taxes!

  2. gorav seth 04/14/2013 at 10:28 PM

    wonder if there is a way to get it to do this double sided?

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

Follow

Get every new post delivered to your Inbox.

Join 488 other followers

%d bloggers like this: