FG
💻 Software

How to list printer names acceptable for use with lpr?

Fresh7 days ago
Mar 15, 2026134164 views
Confidence Score1%
1%

Problem

The man page says a destination printer can be specified with the flag. 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 flag expects (preferably from a bash shell)?

Error Output

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

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How to list printer names acceptable for use with lpr?

Low Risk

From the CUPS manual. The option specifies that you want to see a list of printers, and the option reports the current default printer or class.

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment