{"id":1063,"date":"2019-04-29T23:17:48","date_gmt":"2019-04-29T15:17:48","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=1063"},"modified":"2019-05-01T16:17:19","modified_gmt":"2019-05-01T08:17:19","slug":"lprm","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/lprm","title":{"rendered":"lprm\u547d\u4ee4 – \u5220\u9664\u6253\u5370\u961f\u5217\u4e2d\u7684\u6253\u5370\u4efb\u52a1"},"content":{"rendered":"\n

lprm\u547d\u4ee4\u7684\u82f1\u6587\u5168\u79f0\u662f\u201cRemove\u2002jobs\u2002from\u2002the\u2002print\u2002queue\u201d\uff0c\u610f\u4e3a\u7528\u4e8e\u5220\u9664\u6253\u5370\u961f\u5217\u4e2d\u7684\u6253\u5370\u4efb\u52a1\u3002\u5c1a\u672a\u5b8c\u6210\u7684\u6253\u5370\u673a\u5de5\u4f5c\u4f1a\u88ab\u653e\u5728\u6253\u5370\u673a\u8d2e\u5217\u4e4b\u4e2d\uff0c\u8fd9\u4e2a\u547d\u4ee4\u53ef\u7528\u6765\u5c06\u672a\u9001\u5230\u6253\u5370\u673a\u7684\u5de5\u4f5c\u53d6\u6d88\u3002<\/p>\n\n\n\n

\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>lprm [\u53c2\u6570] [\u4efb\u52a1\u7f16\u53f7]<\/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>
-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><\/tbody><\/table>\n\n\n\n

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

\u5c06\u6253\u5370\u673ahpprint\u4e2d\u7684\u7b2c102\u53f7\u4efb\u52a1\u79fb\u9664\uff1a <\/p>\n\n\n\n

[root@linuxcool ~]# lprm -Phpprint 102<\/pre>\n\n\n\n

\u5c06\u7b2c101\u53f7\u4efb\u52a1\u7531\u9884\u8bbe\u6253\u5370\u673a\u4e2d\u79fb\u9664\uff1a <\/p>\n\n\n\n

[root@linuxcool ~]# lprm 101<\/pre>\n","protected":false},"excerpt":{"rendered":"

lprm\u547d\u4ee4\u7684\u82f1\u6587\u5168\u79f0\u662f\u201cRemove\u2002jobs\u2002from\u2002the\u2002print\u2002queue\u201d\uff0c\u610f\u4e3a\u7528\u4e8e\u5220\u9664\u6253\u5370 […]<\/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\/1063"}],"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=1063"}],"version-history":[{"count":8,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/1063\/revisions"}],"predecessor-version":[{"id":1837,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/1063\/revisions\/1837"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=1063"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=1063"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=1063"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}