{"id":1120,"date":"2019-04-30T00:30:06","date_gmt":"2019-04-29T16:30:06","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=1120"},"modified":"2019-04-30T00:30:35","modified_gmt":"2019-04-29T16:30:35","slug":"lpr","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/lpr","title":{"rendered":"lpr\u547d\u4ee4 – \u5c06\u6587\u4ef6\u653e\u5165\u6253\u5370\u961f\u5217\u7b49\u5f85\u6253\u5370"},"content":{"rendered":"\n

lpr\u547d\u4ee4\u7528\u4e8e\u5c06\u6587\u4ef6\u53d1\u9001\u7ed9\u6307\u5b9a\u6253\u5370\u673a\u8fdb\u884c\u6253\u5370\uff0c\u5982\u679c\u4e0d\u6307\u5b9a\u76ee\u6807\u6253\u5370\u673a\uff0c\u5219\u4f7f\u7528\u9ed8\u8ba4\u6253\u5370\u673a\u3002<\/p>\n\n\n\n

\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>lpr [\u53c2\u6570]<\/p>\n\n\n\n

\u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n
-E <\/td>\u4e0e\u6253\u5370\u670d\u52a1\u5668\u8fde\u63a5\u65f6\u5f3a\u5236\u4f7f\u7528\u52a0\u5bc6 <\/td><\/tr>
-H <\/td>\u6307\u5b9a\u53ef\u9009\u7684\u6253\u5370\u670d\u52a1\u5668 <\/td><\/tr>
-C <\/td>\u6307\u5b9a\u6253\u5370\u4efb\u52a1\u7684\u540d\u79f0 <\/td><\/tr>
-P <\/td>\u6307\u5b9a\u63a5\u53d7\u6253\u5370\u4efb\u52a1\u7684\u76ee\u6807\u6253\u5370\u673a <\/td><\/tr>
-U <\/td>\u6307\u5b9a\u53ef\u9009\u7684\u7528\u6237\u540d <\/td><\/tr>
-# <\/td>\u6307\u5b9a\u6253\u5370\u7684\u4efd\u6570 <\/td><\/tr>
-h <\/td>\u5173\u95edbanner\u6253\u5370 <\/td><\/tr>
-m <\/td>\u6253\u5370\u5b8c\u6210\u540e\u53d1\u9001E-mail <\/td><\/tr>
-r <\/td>\u6253\u5370\u5b8c\u6210\u540e\u5220\u9664\u6587\u4ef6 <\/td><\/tr><\/tbody><\/table>\n\n\n\n

\u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n

\u5c06man1\u548cman2\u9001\u5230\u6253\u5370\u673alp\u8fdb\u884c\u6253\u5370\uff1a <\/p>\n\n\n\n

[root@linuxcool ~]# lpr -P lp man1 man2<\/pre>\n\n\n\n

\u5728\u540d\u4e3amailroom\u7684\u6253\u5370\u673a\u4e0a\u6253\u5370report\u6587\u4ef6 \uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# lpr -P mailroom report <\/pre>\n\n\n\n

\u5728\u540d\u4e3alaser1\u7684\u6253\u5370\u673a\u4e0a\u6253\u53703\u4e2a\u6587\u4ef6 \uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# lpr -P laser1 file_1.txt file_2.txt file_3.txt <\/pre>\n","protected":false},"excerpt":{"rendered":"

lpr\u547d\u4ee4\u7528\u4e8e\u5c06\u6587\u4ef6\u53d1\u9001\u7ed9\u6307\u5b9a\u6253\u5370\u673a\u8fdb\u884c\u6253\u5370\uff0c\u5982\u679c\u4e0d\u6307\u5b9a\u76ee\u6807\u6253\u5370\u673a\uff0c\u5219\u4f7f\u7528\u9ed8\u8ba4\u6253\u5370\u673a\u3002 \u8bed\u6cd5\u683c\u5f0f\uff1alpr [\u53c2 […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[4],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/1120"}],"collection":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/comments?post=1120"}],"version-history":[{"count":5,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/1120\/revisions"}],"predecessor-version":[{"id":1789,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/1120\/revisions\/1789"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=1120"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=1120"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=1120"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}