2020-04-11 09:13:16 +01:00
|
|
|
# lpr
|
|
|
|
|
|
|
|
> CUPS tool for printing files.
|
|
|
|
> See also `lpstat` and `lpadmin` for listing and configuring printers.
|
|
|
|
> More information: <http://www.CUPS.org>.
|
|
|
|
|
|
|
|
- Print a file to the default printer:
|
|
|
|
|
|
|
|
`lpr {{path/to/file}}`
|
|
|
|
|
|
|
|
- Print 2 copies:
|
|
|
|
|
|
|
|
`lpr -# {{2}} {{path/to/file}}`
|
|
|
|
|
|
|
|
- Print to a named printer:
|
|
|
|
|
|
|
|
`lpr -P {{printer}} {{path/to/file}}`
|
|
|
|
|
|
|
|
- Print double sided in portrait:
|
|
|
|
|
2020-11-01 13:40:05 +00:00
|
|
|
`lpr -o sides={{two_sided_long_edge}} {{path/to/file}}`
|
2020-04-11 09:13:16 +01:00
|
|
|
|
|
|
|
- Print double sided in landscape:
|
|
|
|
|
2020-11-01 13:40:05 +00:00
|
|
|
`lpr -o sides={{two_sided_long_edge}} {{path/to/file}}`
|
2020-04-11 09:13:16 +01:00
|
|
|
|
|
|
|
- Set page size (more options may be available depending on setup):
|
|
|
|
|
|
|
|
`lpr -o media={{a4|letter|legal}} {{path/to/file}}`
|
|
|
|
|
|
|
|
- Print multiple pages per sheet:
|
|
|
|
|
|
|
|
`lpr -o number-up={{2|4|6|9|16}} {{path/to/file}}`
|