The lpr man page says a destination printer can be specified with the -P flag.

-P destination[/instance]
    Prints files to the named printer.

I have 'added' various printers on local Samba shares using the GUI in Ubuntu/Gnome. How can I get a list of these available printers in the format that the -P flag expects (preferably from a bash shell)?

link|improve this question

feedback

1 Answer

up vote 2 down vote accepted
$ lpstat -p -d

From the CUPS manual.

link|improve this answer
1  
Thank you! I've just found that lpq works too. – Ian Mackinnon Aug 18 '10 at 16:56
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.