{"id":3588,"date":"2019-06-28T11:19:28","date_gmt":"2019-06-28T03:19:28","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=3588"},"modified":"2019-06-28T11:19:30","modified_gmt":"2019-06-28T03:19:30","slug":"lp","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/lp","title":{"rendered":"lp\u547d\u4ee4 – \u6253\u5370\u6587\u4ef6\u6216\u8005\u4fee\u6539\u6392\u961f\u7684\u6253\u5370\u4efb\u52a1"},"content":{"rendered":"\n

lp\u547d\u4ee4\u7528\u4e8e\u6253\u5370\u6587\u4ef6\uff0c\u6216\u8005\u4fee\u6539\u6392\u961f\u7684\u6253\u5370\u4efb\u52a1\u3002\u4e0elpr\u547d\u4ee4\u7c7b\u4f3c\uff0clp\u547d\u4ee4\u65e2\u652f\u6301\u6587\u4ef6\u8f93\u5165\u4e5f\u652f\u6301\u6807\u51c6\u8f93\u5165\u3002\u5b83\u4e0elpr\u7684\u4e0d\u540c\u4e4b\u5904\u5728\u4e8e\u5b83\u6709\u4e00\u4e2a\u4e0d\u540c\uff08\u7a0d\u5fae\u590d\u6742\u70b9\uff09\u7684\u53c2\u6570\u9009\u9879\u8bbe\u7f6e\u3002 <\/p>\n\n\n\n

\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>lp [\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>
-U<\/td>\u6307\u5b9a\u8fde\u63a5\u6253\u5370\u670d\u52a1\u5668\u65f6\u4f7f\u7528\u7684\u7528\u6237\u540d <\/td><\/tr>
-d<\/td>\u6307\u5b9a\u63a5\u6536\u6253\u5370\u4efb\u52a1\u7684\u76ee\u6807\u6253\u5370\u673a <\/td><\/tr>
-i<\/td>\u6307\u5b9a\u4e00\u4e2a\u5b58\u5728\u7684\u6253\u5370\u4efb\u52a1\u53f7 <\/td><\/tr>
-m<\/td>\u6253\u5370\u5b8c\u6210\u65f6\u53d1\u9001E-mail <\/td><\/tr>
-n<\/td>\u6307\u5b9a\u6253\u5370\u7684\u4efd\u6570 <\/td><\/tr>
-t<\/td>\u6307\u5b9a\u6253\u5370\u4efb\u52a1\u7684\u540d\u79f0 <\/td><\/tr>
-H<\/td>\u6307\u5b9a\u6253\u5370\u4efb\u52a1\u5f00\u59cb\u7684\u65f6\u95f4 <\/td><\/tr>
-P<\/td>\u6307\u5b9a\u9700\u8981\u6253\u5370\u7684\u9875\u7801 <\/td><\/tr><\/tbody><\/table>\n\n\n\n

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

\u8981\u5728\u8fde\u63a5\u5728\u8bbe\u5907dlp0\u4e0a\u7684\u6253\u5370\u673alp0\u4e0a\u6253\u5370\u6587\u4ef6\/etc\/motd\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# lp \/etc\/motd <\/pre>\n\n\n\n

\u8981\u4f7f\u7528\u6587\u4ef6\u7684\u4e00\u4e2a\u526f\u672c\u6253\u5370\/etc\/motd\u6587\u4ef6\u768430\u4e2a\u526f\u672c\uff0c\u5e76\u4e14\u8981\u7528\u90ae\u4ef6\u901a\u77e5\u7528\u6237\u4f5c\u4e1a\u5b8c\u6210\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# lp -c -m -n30 -dlp0:lpd0 \/etc\/motd <\/pre>\n\n\n\n

\u8981\u6392\u961fMyFile\u6587\u4ef6\u5e76\u8fd4\u56de\u4f5c\u4e1a\u7f16\u53f7\uff1a<\/p>\n\n\n\n

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

lp\u547d\u4ee4\u7528\u4e8e\u6253\u5370\u6587\u4ef6\uff0c\u6216\u8005\u4fee\u6539\u6392\u961f\u7684\u6253\u5370\u4efb\u52a1\u3002\u4e0elpr\u547d\u4ee4\u7c7b\u4f3c\uff0clp\u547d\u4ee4\u65e2\u652f\u6301\u6587\u4ef6\u8f93\u5165\u4e5f\u652f\u6301\u6807\u51c6\u8f93\u5165\u3002\u5b83\u4e0elp […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[9],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/3588"}],"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=3588"}],"version-history":[{"count":2,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/3588\/revisions"}],"predecessor-version":[{"id":3629,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/3588\/revisions\/3629"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=3588"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=3588"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=3588"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}