如何使用命令行工具显示打印机信息,例如打印机描述或打印机位置?
lpstat -t列出了打印机的打印机名称,类和设备,但它没有列出打印机描述或位置.有没有办法在不使用http或GUI界面的情况下获取此信息?
解决方法
您可以使用lpstat -l -p printername获取此信息.
[root@Valley ~]# lpstat -l -p zebra2 printer zebra2 is idle. enabled since Tue Jun 8 15:50:35 2010 Form mounted: Content types: any Printer types: unknown Description: Zebra 105SL in shipping Alerts: none Location: Shipping Connection: direct On fault: no alert After fault: continue Users allowed: (all) Forms allowed: (none) Banner required Charset sets: (none) Default pitch: Default page size: Default port settings: