How to list all available printers from terminal?
75,523
Solution 1
The Command lpstat -p
will list all available printers for your Desktop .
And whether or not they are available ( the state of them) .
Solution 2
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
Related videos on Youtube
Author by
nux
The Quieter you are , the more you are able to hear . "Once you stop learning, you start dying". -Albert Einstein Started learning Python . I am from Lebanon .
Updated on September 18, 2022Comments
-
nux almost 2 years
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?