Ubuntu provides the traditional Unix lp
/lpr
commands via the cupsys-bsd
package, but they annoyingly don’t pick up the CUPS default printer.
How do you identify your current default printer from the command line?
lpstat -d
How do you set your preferred default printer?
lpoptions -d PRINTER_NAME
Ah, yes. But how do you find the names of your installed printers?
lpstat -a
What’s all this good for anyway?
lpr [-P PRINTER_NAME] PS_OR_TXT_FILE
-OR-
enscript [-P PRINTER_NAME] TXT_FILE
Hi, thanks for posting this! Just saved me a lot of time in getting my printing set up.
Chris
Comment by Chris H — April 20, 2009 @ 4:49 pm