Identify Available Printer Names
Some machines cause got access to to a greater extent than than i printer. Unless the default printer is the i you lot want, you lot require to know the cite of the printer to role inwards the printer-related command. For instance, if you lot desire to know the condition of a printer, you lot execute the lpq command:
$ lpq ml1640 is create no entries
ml1640 is the default printer for the machine. If you lot desire a printer other than the default, the lpq ascendency requires that you lot specify the printer name. Other commands such every bit lpr, in addition to lprm comport the same way.
How produce you lot discovery out the printer cite that the Linux printing organisation volition recognize?
$ lpstat -a clp325w accepting requests since Tue 12 Mar 2013 09:42:07 PM PDT ml1640 accepting requests since Sunday 10 Mar 2013 09:22:33 PM PDT scx3405 accepting requests since Sunday 10 Mar 2013 09:24:00 PM PDT
Armed alongside the printer cite scx3405, you lot merely last lpq i time to a greater extent than similar this:
$ lpq -P scx3405 scx3405 is create no entries
If you lot last lpstat alongside the -s parameter, it volition hand fifty-fifty to a greater extent than data inwards the flat of a condition summary (including identifying the default printer):
$ lpstat -s organisation default destination: ml1640 device for clp325w: ipp://192.168.1.22 device for ml1640: mfp:/dev/mfp4 device for scx3405: ipp://192.168.1.11
You tin mail away state thus ml1640, the default printer, is a local printer, in addition to the residuum are remote.
With lpstat, you lot tin mail away listing the printer names that the Linux printing organisation tin mail away recognize.
0 Response to "Identify Available Printer Names"
Post a Comment