{"id":8571,"date":"2020-08-28T13:16:27","date_gmt":"2020-08-28T05:16:27","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=8571"},"modified":"2020-08-28T13:16:27","modified_gmt":"2020-08-28T05:16:27","slug":"bsdtar","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/bsdtar","title":{"rendered":"bsdtar\u547d\u4ee4 – \u8bfb\u53d6\u548c\u5199\u5165\u78c1\u5e26\u5b58\u6863\u6587\u4ef6"},"content":{"rendered":"\n

bsdtar\u521b\u5efa\u548c\u64cd\u4f5c\u6d41\u5f0f\u6863\u6848\u6587\u4ef6\uff0c \u8fd9\u4e2a\u5b9e\u73b0\u53ef\u4ee5\u4ecetar\u3001pax\u3001cpio\u3001zip\u3001jar\u3001ar\u3001xar\u3001rpm\u30017-zip\u548cISO 9660 cdrom\u955c\u50cf\u4e2d\u63d0\u53d6\uff0c\u5e76\u4e14\u53ef\u4ee5\u521b\u5efatar\u3001pax\u3001cpio\u3001ar\u3001zip\u30017-zip\u548cshar\u5b58\u6863\u3002<\/p>\n\n\n\n

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

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

-c<\/td>\u521b\u5efa\u4e00\u4e2a\u6863\u6848<\/td><\/tr>
-f archive-filename<\/td>\u6863\u6848\u6587\u4ef6\u7684\u540d\u79f0<\/td><\/tr>
-t<\/td>\u5217\u51fa\u6863\u6848\u7684\u5185\u5bb9<\/td><\/tr>
-x<\/td>\u63d0\u53d6\u6863\u6848\u7684\u5185\u5bb9<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n

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

\u5217\u51fa\u6863\u6848\u7684\u6587\u4ef6\u540d\u79f0\u548c\u5185\u5bb9\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# bsdtar -tf archive-filename<\/pre>\n\n\n\n

\u63d0\u53d6\u6863\u6848\u7684\u5185\u5bb9\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# bsdtar -xf archive-filename<\/pre>\n\n\n\n

\u521b\u5efa\u4e00\u4e2a\u6863\u6848\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# bsdtar -cf archive-filename<\/pre>\n","protected":false},"excerpt":{"rendered":"

bsdtar\u521b\u5efa\u548c\u64cd\u4f5c\u6d41\u5f0f\u6863\u6848\u6587\u4ef6\uff0c \u8fd9\u4e2a\u5b9e\u73b0\u53ef\u4ee5\u4ecetar\u3001pax\u3001cpio\u3001zip\u3001jar\u3001ar\u3001xar\u3001r […]<\/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\/8571"}],"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=8571"}],"version-history":[{"count":3,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/8571\/revisions"}],"predecessor-version":[{"id":8576,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/8571\/revisions\/8576"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=8571"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=8571"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=8571"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}