Feed on
Posts
Comments

let’s say you want to print all of the pdf files in a directory quickly.  printing from the command line in these situations can be handy.  here’s how to do it:

 >> lpstat -a 

 will give you a list of all of the installed printer names.

>> lp -d “my_printer_name” ~/my_folder/*.pdf 

will send out all of those pdf files to be printed! 


Bookmark and Share

if that was helpful ...

check out the other tips and tricks i've compiled on these pages. you might learn something else interesting!

One Response to “print from the command line in mac os x”

  1. on 10 Dec 2011 at 12:49 pm Michael Howitz

    The default page size to print on seems to be “letter” to switch it e. g. to “a4″ add the option “-o media=”. Example:

    >> lp -d “my_printer_name” -o media=A4 ~/my_folder/*.pdf

Did I get this wrong? Let me know!

Trackback URI | Comments RSS

More blogs about http://desk.stinkpot.org:8080/tricks.