O'Reilly logo

Linux Pocket Guide, 2nd Edition by Daniel J. Barrett

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

lpr — stdin  stdout  - file  -- opt  --help  --version

Synopsis

lpr [options] [files]

The lpr (line printer) command sends a file to a printer.

$ lpr -P myprinter myfile

Useful options

-P printername

Send the file to printer printername, which you have previously set up.

-# N

Print N copies of the file.

-J name

Set the job name that prints on the cover page (if your system is set up to print cover pages).

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required