| 39 | | where printername is one of the names defined above (e.g., moth, cricket, etc.). |
| | 39 | |
| | 40 | For printers which have a duplex unit, you can print in duplex with a command like: |
| | 41 | {{{ |
| | 42 | lp -d printername -o Duplex=DuplexNoTumble file-to-print.ps |
| | 43 | |
| | 44 | (change DuplexNoTumble? to DuplexTumble? if you'd prefer the "short edge" duplexing) |
| | 45 | }}} |
| | 46 | To print single-sided on a printer that defaults to duplex, something like this should work: |
| | 47 | {{{ |
| | 48 | lp -d printername -o Duplex=None file-to-print.ps |
| | 49 | }}} |
| | 50 | To learn more about what values are available (and default) |
| | 51 | for an option for a given printer from the command line, use lpoptions: |
| | 52 | {{{ |
| | 53 | lpoptions -d printername -l | grep ^Duplex |
| | 54 | }}} |