Sunday, June 2, 2013

What is LPR command in linux

lpr command is used to give file for printing to the destined printer.
there are few options for lpr command

-P prints file to the named printer or give address of printer

-# sets number of copies to be printed between 1 to 100

for example
lpr -P addressofprinter -# 4 filename1 filename2

you can print multiple files at a time. number after -# is number of copies to be printed.