Get All the Information About Your Printers at Once


lpstat -t

Now for the mighty command. The nice thing about using lpstat -p, lpstat -d, or lpstat -s is that you only get the precise bit of information you want. If you want everything all at once, however, use lpstat with the -t option, which dumps everything lpstat knows about your printers onto your shell.

$ lpstat -t scheduler is running system default destination: bro device for bro: socket://192.168.0.160:9100 device for bro_wk: socket://192.168.1.10:9100 device for wu: socket://128.252.93.10:9100 bro accepting requests since Jan 01 00:00 bro_wk accepting requests since Jan 01 00:00 wu accepting requests since Jan 01 00:00 printer bro is idle. enabled since Jan 01 00:00 printer bro_wk is idle. enabled since Jan 01 00:00 printer wu is idle. enabled since Jan 01 00:00 


You get it all: your default printer, a list of all printers known to your system, the connection methods and locations of those printers, and the status of all printers. The more printers you have configured on your computer, the longer this listing. For some of you, it will be overwhelming, so you might find that lpstat with one of the other options you've examined is a better choice.



Linux Phrasebook
Linux Phrasebook
ISBN: 0672328380
EAN: 2147483647
Year: 2007
Pages: 288

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net