1. Tech

Your suggestion is on its way!

An email with a link to:


was emailed to:

Thanks for sharing About.com with others!

Linux / Unix Command: lpr
Command Library


lpr - print files  


lpr [ -E ] [ -P destination ] [ -# num-copies [ -l ] [ -o option ] [ -p] [ -r ] [ -C/J/T title ] [ file(s) ]  


lpr submits files for printing. Files named on the command line are sent to the named printer (or the system default destination if no destination is specified). If no files are listed on the command-line lpr reads the print file from the standard input.  


The following options are recognized by lpr:

Forces encryption when connecting to the server.
-P destination

Prints files to the named printer.
-# copies

Sets the number of copies to print from 1 to 100.
-C name

Sets the job name.
-J name

Sets the job name.
-T name

Sets the job name.

Specifies that the print file is already formatted for the destination and should be sent without filtering. This option is equivalent to "-oraw".
-o option

Sets a job option.

Specifies that the print file should be formatted with a shaded header with the date, time, job name, and page number. This option is equivalent to "-oprettyprint" and is only useful when printing text files.

Specifies that the named print files should be deleted after printing them.


cancel(1), lp(1), lpstat(1), CUPS Software Users Manual  

Important: Use the man command (% man) to see how a command is used on your particular computer.

>> Linux/Unix Command Library

>> Shell Command Library

  1. About.com
  2. Tech
  3. Linux

©2016 About.com. All rights reserved.