LinuxCommandLibrary

lpr

submits print jobs

TLDR

Print file

$ lpr [file]
copy
Print to specific printer
$ lpr -P [printer] [file]
copy
Print multiple copies
$ lpr -# [3] [file]
copy
Print from stdin
$ cat [file] | lpr
copy
Remove file after printing
$ lpr -r [file]
copy
Title for job
$ lpr -T "[title]" [file]
copy

SYNOPSIS

lpr [options] [files]

DESCRIPTION

lpr submits print jobs. It's the BSD-style print command used with CUPS.
The tool queues files for printing. Options control destination, copies, and formatting.

PARAMETERS

FILES

Files to print.
-P PRINTER
Destination printer.
-# COPIES
Number of copies.
-r
Remove file after printing.
-T TITLE
Job title.
-o OPTION
Printer option.
--help
Display help information.

CAVEATS

Requires CUPS. Use lp for System V style. Options are printer-specific.

HISTORY

lpr originated in BSD Unix as the line printer spooler, now implemented by CUPS.

SEE ALSO

lp(1), lpq(1), lprm(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community