From 5599de106352f68fc8907606103c8cd47e44645d Mon Sep 17 00:00:00 2001 From: Josef Duchesne Date: Sat, 11 Apr 2020 04:13:16 -0400 Subject: [PATCH] lpr: add page (#3913) * lpr: add page * responded to pr review suggestions * Added references to CUPS/other notable commands * Update lpr.md * Update lpr.md --- pages/common/lpr.md | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 pages/common/lpr.md diff --git a/pages/common/lpr.md b/pages/common/lpr.md new file mode 100644 index 0000000000..1656eda0f0 --- /dev/null +++ b/pages/common/lpr.md @@ -0,0 +1,33 @@ +# lpr + +> CUPS tool for printing files. +> See also `lpstat` and `lpadmin` for listing and configuring printers. +> More information: . + +- 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}}`