{"id":6936,"date":"2020-04-30T08:02:04","date_gmt":"2020-04-30T00:02:04","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=6936"},"modified":"2020-04-30T08:02:05","modified_gmt":"2020-04-30T00:02:05","slug":"smbget","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/smbget","title":{"rendered":"smbget\u547d\u4ee4 – \u4e0b\u8f7dsamba\u5171\u4eab\u8d44\u6e90"},"content":{"rendered":"\n

\u4f7f\u7528smbget\u547d\u4ee4\u53ef\u4ee5\u7528\u4e8e\u901a\u8fc7smb\u4e0b\u8f7d\u6587\u4ef6\uff0c\u8fd9\u662f\u4e00\u4e2a\u7c7b\u4f3c\u4e8ewget\u4e00\u6837\u7684\u4f7f\u7528\u7a0b\u5e8f\u3002<\/p>\n\n\n\n

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

\u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n

-o<\/td>\u6b63\u5728\u4e0b\u8f7d\u7684\u6587\u4ef6\u5199\u5165\u5230\u6307\u5b9a\u7684\u6587\u4ef6<\/td><\/tr>
-O<\/td>\u6b63\u5728\u4e0b\u8f7d\u7684\u6587\u4ef6\u5199\u5165\u5230\u6807\u51c6\u8f93\u51fa<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n

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

\u4e0b\u8f7dsamba\u670d\u52a1\u5668192.168.0.2\u5171\u4eab\u76ee\u5f55\/it\u4e2d\u7684\u6587\u4ef6www\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# smbget smb:\/\/192.168.0.2\/it\/www<\/pre>\n\n\n\n

\u4e0b\u8f7dsamba\u670d\u52a1\u5668192.168.0.2\u5171\u4eab\u76ee\u5f55\/it\u4e2d\u7684\u6587\u4ef6www\uff0c\u5e76\u5c06\u4e0b\u8f7d\u6587\u4ef6\u5199\u5165\u5230\/data\/www\u6587\u4ef6\u4e2d\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# smbget smb:\/\/192.168.0.2\/it\/www -o \/data\/www<\/pre>\n\n\n\n

\u4e0b\u8f7dsamba\u670d\u52a1\u5668192.168.0.2\u5171\u4eab\u76ee\u5f55\/it\u4e2d\u7684\u6587\u4ef6www,\u5e76\u5c06\u6587\u4ef6\u5185\u5bb9\u663e\u793a\u5728\u5c4f\u5e55\u4e0a\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# smbget smb:\/\/192.168.0.2\/it\/www -O<\/pre>\n","protected":false},"excerpt":{"rendered":"

\u4f7f\u7528smbget\u547d\u4ee4\u53ef\u4ee5\u7528\u4e8e\u901a\u8fc7smb\u4e0b\u8f7d\u6587\u4ef6\uff0c\u8fd9\u662f\u4e00\u4e2a\u7c7b\u4f3c\u4e8ewget\u4e00\u6837\u7684\u4f7f\u7528\u7a0b\u5e8f\u3002 \u8bed\u6cd5\u683c\u5f0f\uff1asmbget […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/6936"}],"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=6936"}],"version-history":[{"count":2,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/6936\/revisions"}],"predecessor-version":[{"id":7187,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/6936\/revisions\/7187"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=6936"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=6936"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=6936"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}