20

I need a command to list available printers in my Ubuntu.

The printers list could be installed or shared?

This list also should state the state of the printer .

Any Help to achieve my goal?

28

The Command lpstat -p will list all available printers for your Desktop .

And whether or not they are available ( the state of them) .

| improve this answer | |
9

If you just want the printer names:

lpstat -p | awk '{print $2}'

To see their names and print queues:

lpstat -p | awk '{print $2}' | xargs -n1 lpq -P
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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