lpr Command Examples

Print files. See also: lpstat and lpadmin. More information: https://openprinting.github.io/cups/doc/man-lpr.html.

lpr {{path/to/file}}

lpr -# {{2}} {{path/to/file}}

lpr -P {{printer}} {{path/to/file}}

lpr -o page-ranges={{2|2-16}} {{path/to/file}}

lpr -o sides={{two-sided-long-edge|two-sided-short-edge}} {{path/to/file}}

lpr -o media={{a4|letter|legal}} {{path/to/file}}

lpr -o number-up={{2|4|6|9|16}} {{path/to/file}}