Easy Tutorial
❮ Linux Comm Netconf Linux Comm Badblocks ❯

Linux lpr Command

Linux Command Manual

The lpr (line printer, print by line) utility is used to place one or more files into the print queue for printing.

lpr can be used to send materials to a local or remote host for processing.

Syntax

lpr [ -P printer ]

Parameters:

Examples

The following command line will print the report file on the printer named mailroom:

$ lpr -P mailroom report

Multiple files can be printed using a single print command. The following command line prints 3 files on the printer named laser1:

$ lpr -P laser1 05.txt 108.txt 12.txt

Linux Command Manual

❮ Linux Comm Netconf Linux Comm Badblocks ❯