mirror of
https://github.com/tldr-pages/tldr.git
synced 2024-11-12 04:54:52 +03:00
5599de1063
* lpr: add page * responded to pr review suggestions * Added references to CUPS/other notable commands * Update lpr.md * Update lpr.md
733 B
733 B
lpr
CUPS tool for printing files. See also
lpstat
andlpadmin
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:
lpr -o sides={{two-sided-long-edge}} {{path/to/file}}
- Print double sided in landscape:
lpr -o sides={{two-sided-short-edge}} {{path/to/file}}
- 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}}