How to list all available printers from terminal?
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