This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
it_services:mf:printing_cmdline [2014/09/17 15:54] florido [Other useful utilities] |
it_services:mf:printing_cmdline [2014/09/17 15:55] (current) florido |
||
|---|---|---|---|
| Line 17: | Line 17: | ||
| <code:bash>lpr -P copy_n file.ps</code> | <code:bash>lpr -P copy_n file.ps</code> | ||
| - | ==== See what is in the print queue ==== | + | ===== See what is in the print queue ===== |
| <code:bash> | <code:bash> | ||
| Line 24: | Line 24: | ||
| </code> | </code> | ||
| - | ==== Remove all your printouts from the queue ==== | + | ===== Remove all your printouts from the queue ===== |
| <code:bash> | <code:bash> | ||
| lprm - | lprm - | ||
| Line 30: | Line 30: | ||
| </code> | </code> | ||
| - | ==== Duplex/simplex ==== | + | ===== Duplex/simplex ===== |
| Printers that are able to print duplex, do that by default, and are flipping the page along the long edge. | Printers that are able to print duplex, do that by default, and are flipping the page along the long edge. | ||
| Line 46: | Line 46: | ||
| <code:bash>lpr -o sides=two-sided-long-edge file.ps</code> | <code:bash>lpr -o sides=two-sided-long-edge file.ps</code> | ||
| - | ==== Print only selected pages ==== | + | ===== Print only selected pages ===== |
| <code:bash> | <code:bash> | ||
| Line 54: | Line 54: | ||
| </code> | </code> | ||
| - | ==== Pretty printing ==== | + | ===== Pretty printing ===== |
| This option is **only useful when printing text files**. | This option is **only useful when printing text files**. | ||
| Line 68: | Line 68: | ||
| <code:bash>lpr -o prettyprint file.ps</code> | <code:bash>lpr -o prettyprint file.ps</code> | ||
| - | ==== Print more pages on each sheet ==== | + | ===== Print more pages on each sheet ===== |
| To print two pages on each side of the paper | To print two pages on each side of the paper | ||
| Line 80: | Line 79: | ||
| You can also use 8 and 16. But can you read it? | You can also use 8 and 16. But can you read it? | ||
| - | ==== Rotate ==== | + | ===== Rotate ===== |
| To rotate the page 90 degrees and print it in landscape orientation | To rotate the page 90 degrees and print it in landscape orientation | ||
| Line 88: | Line 87: | ||
| In most cases it is better to create the file in landscape orientation. | In most cases it is better to create the file in landscape orientation. | ||
| - | ==== Mirroring ==== | + | ===== Mirroring ===== |
| <code:bash>lpr -o mirror file.ps</code> | <code:bash>lpr -o mirror file.ps</code> | ||
| Line 94: | Line 93: | ||
| Might be useful if you want to print something that Leonardo D. has written. | Might be useful if you want to print something that Leonardo D. has written. | ||
| - | ==== Combining options ==== | + | ===== Combining options ===== |
| You can combine the options, like in the following example | You can combine the options, like in the following example | ||
| Line 100: | Line 99: | ||
| <code:bash>lpr -P newprinter -o prettyprint -o number-up=2 file.ps</code> | <code:bash>lpr -P newprinter -o prettyprint -o number-up=2 file.ps</code> | ||
| - | ==== Other useful utilities ==== | + | ===== Other useful utilities ===== |
| ''ps2ps'' can do a lot of tricks on a postscript-file. It is used in the background of the printing system to handle many of the options above, but can be used directly on a file. ''ps2ps'' can sometimes be used to "clean up" ps or eps files originating from other systems. | ''ps2ps'' can do a lot of tricks on a postscript-file. It is used in the background of the printing system to handle many of the options above, but can be used directly on a file. ''ps2ps'' can sometimes be used to "clean up" ps or eps files originating from other systems. | ||
| Line 106: | Line 105: | ||
| ''gv'' or ''ghostview'', is the number one program to check a ps-file before printing it. It can save many trees -- but nowadays you're used to this. | ''gv'' or ''ghostview'', is the number one program to check a ps-file before printing it. It can save many trees -- but nowadays you're used to this. | ||
| - | ==== References ==== | + | ====== References ====== |
| * The CUPS printing system http://cups.org/ | * The CUPS printing system http://cups.org/ | ||