{"id":293815,"date":"2024-10-23T12:06:12","date_gmt":"2024-10-23T04:06:12","guid":{"rendered":"https:\/\/lrxjmw.cn\/lzzhumldxxyf.html"},"modified":"2024-10-23T12:06:12","modified_gmt":"2024-10-23T04:06:12","slug":"lzzhumldxxyf","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/lzzhumldxxyf.html","title":{"rendered":"Linux \u4e2d zip \u548c unzip \u547d\u4ee4\u7684\u8be6\u7ec6\u7528\u6cd5\u53ca\u793a\u4f8b"},"content":{"rendered":"

linuxzip\u547d\u4ee4<\/a><\/p>\n

zip-rmyfile.zip.\/*<\/p>\n

\u5c06\u5f53\u524d\u76ee\u5f55\u4e0b\u7684\u6240\u6709\u6587\u4ef6\u548c\u6587\u4ef6\u5939\u5168\u90e8\u538b\u7f29\u6210myfile.zip\u6587\u4ef6,\uff0dr\u8868\u793a\u9012\u5f52\u538b\u7f29\u5b50\u76ee\u5f55\u4e0b\u6240\u6709\u6587\u4ef6.<\/p>\n

2.unzip<\/p>\n

unzip-o-d\/home\/sunnymyfile.zip<\/p>\n

\u628amyfile.zip\u6587\u4ef6\u89e3\u538b\u5230\/home\/sunny\/<\/p>\n

-o:\u4e0d\u63d0\u793a\u7684\u60c5\u51b5\u4e0b\u8986\u76d6\u6587\u4ef6\uff1b<\/p>\n

-d:-d\/home\/sunny\u6307\u660e\u5c06\u6587\u4ef6\u89e3\u538b\u7f29\u5230\/home\/sunny\u76ee\u5f55\u4e0b\uff1b<\/p>\n

3.\u5176\u4ed6<\/p>\n

zip-dmyfile.zipsmart.txt<\/p>\n

\u5220\u6389\u538b\u7f29\u6587\u4ef6\u4e2dsmart.txt\u6587\u4ef6<\/p>\n

zip-mmyfile.zip.\/rpm_info.txt<\/p>\n

\u5411\u538b\u7f29\u6587\u4ef6\u4e2dmyfile.zip\u4e2d\u6dfb\u52a0rpm_info.txt\u6587\u4ef6<\/p>\n

-------------------------------------------------------------------------------<\/p>\n

\u8981\u4f7f\u7528zip\u6765\u538b\u7f29\u6587\u4ef6\uff0c\u5728shell\u63d0\u793a\u4e0b\u952e\u5165\u4e0b\u8fb9\u7684\u547d\u4ee4\uff1a<\/p>\n

zip-rfilename.zipfilesdir<\/p>\n

\u5728\u8fd9\u4e2a\u4e8b\u4f8b\u91cc\uff0cfilename.zip\u4ee3\u8868\u4f60\u521b\u5efa\u7684\u6587\u4ef6\uff0cfilesdir\u4ee3\u8868\u4f60\u60f3\u653e\u7f6e\u65b0zip\u6587\u4ef6\u7684\u76ee\u5f55\u3002-r\u9009\u9879\u6307\u5b9a\u4f60\u60f3\u9012\u5f52\u5730\uff08recursively\uff09\u5305\u62ec\u6240\u6709\u5305\u62ec\u5728filesdir\u76ee\u5f55\u4e2d\u7684\u6587\u4ef6\u3002<\/p>\n

\u8981\u62bd\u53d6zip\u6587\u4ef6\u7684\u5185\u5bb9\uff0c\u952e\u5165\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n

unzipfilename.zip<\/p>\n

\u4f60\u53ef\u4ee5\u4f7f\u7528zip\u547d\u4ee4\u540c\u65f6\u5904\u7406\u591a\u4e2a\u6587\u4ef6\u548c\u76ee\u5f55\uff0c\u65b9\u5f0f\u662f\u5c06\u5b83\u4eec\u9010\u4e00\u5217\u4e3e\uff0c\u5e76\u7528\u7a7a\u683c\u95f4\u9694\uff1a<\/p>\n

zip-rfilename.zipfile1file2file3\/usr\/work\/school<\/p>\n

\u91cc\u9762\u7684\u547d\u4ee4\u628afile1\u3001file2\u3001file3\u3001\u4ee5\u53ca\/usr\/work\/school\u76ee\u5f55\u7684\u5185\u5bb9\uff08\u5047\u5b9a\u8fd9\u4e2a\u76ee\u5f55\u5b58\u5728\uff09\u538b\u7f29\u4e0a\u53bb\uff0c\u4e4b\u540e\u5012\u5165filename.zip\u6587\u4ef6\u4e2d\u3002<\/p>\n

tar\u547d\u4ee4\u89e3\u8bfb<\/p>\n

-c:\u6784\u5efa\u538b\u7f29\u6863\u6848<\/p>\n

-x\uff1a\u89e3\u538b<\/p>\n

-t\uff1a\u67e5\u770b\u5185\u5bb9<\/p>\n

-r\uff1a\u5411\u538b\u7f29\u5f52\u6863\u6587\u4ef6\u672b\u5c3e\u8ffd\u52a0\u6587\u4ef6<\/p>\n

-u\uff1a\u66f4\u65b0\u539f\u538b\u7f29\u5305\u4e2d\u7684\u6587\u4ef6<\/p>\n

\u8fd9\u4e94\u4e2a\u662f\u72ec\u7acb\u7684\u547d\u4ee4\uff0c\u538b\u7f29\u89e3\u538b\u90fd\u8981\u7528\u5230\u5176\u4e2d\u4e00\u4e2a\uff0c\u53ef\u4ee5\u548c\u522b\u7684\u547d\u4ee4\u8fde\u7528\u4f46\u53ea\u80fd\u7528\u5176\u4e2d\u4e00\u4e2a\u3002\u4e0b\u8fb9\u7684\u53c2\u6570\u662f\u6309\u7167\u987b\u8981\u5728\u538b\u7f29\u6216\u89e3\u538b\u6863\u6848\u65f6\u53ef\u9009\u7684\u3002<\/p>\n

-c:\u6784\u5efa\u538b\u7f29\u6863\u6848<\/p>\n

-x\uff1a\u89e3\u538b<\/p>\n

-t\uff1a\u67e5\u770b\u5185\u5bb9<\/p>\n

-r\uff1a\u5411\u538b\u7f29\u5f52\u6863\u6587\u4ef6\u672b\u5c3e\u8ffd\u52a0\u6587\u4ef6<\/p>\n

-u\uff1a\u66f4\u65b0\u539f\u538b\u7f29\u5305\u4e2d\u7684\u6587\u4ef6<\/p>\n

\u4e0b\u8fb9\u7684\u53c2\u6570-f\u662f\u5fc5\u987b\u7684<\/p>\n

-f:\u4f7f\u7528\u6863\u6848\u540d\u5b50\uff0c\u5207\u5fcc\uff0c\u8fd9\u4e2a\u53c2\u6570\u662f\u6700\u540e\u4e00\u4e2a\u53c2\u6570\uff0c\u524d\u9762\u53ea\u80fd\u63a5\u6863\u6848\u540d\u3002<\/p>\n

#tar-cfall.tar*.jpg<\/p>\n

\u8fd9\u6761\u547d\u4ee4\u662f\u5c06\u6240\u6709.jpg\u7684\u6587\u4ef6\u6253\u6210\u4e00\u4e2a\u540d\u4e3aall.tar\u7684\u5305\u3002-c\u662f\u8868\u793a\u5f62\u6210\u65b0\u7684\u5305\uff0c-f\u6307\u5b9a\u5305\u7684\u6587\u4ef6\u540d\u3002<\/p>\n

#tar-rfall.tar*.gif<\/p>\n

\u8fd9\u6761\u547d\u4ee4\u662f\u5c06\u6240\u6709.gif\u7684\u6587\u4ef6\u964d\u4f4e\u5230all.tar\u7684\u5305\u4e0a\u9762\u53bb\u3002-r\u662f\u8868\u793a\u964d\u4f4e\u6587\u4ef6\u7684\u610f\u601d\u3002<\/p>\n

#tar-ufall.tarlogo.gif<\/p>\n

\u8fd9\u6761\u547d\u4ee4\u662f\u66f4\u65b0\u539f\u5148tar\u5305all.tar\u4e2dlogo.gif\u6587\u4ef6\uff0c-u\u662f\u8868\u793a\u66f4\u65b0\u6587\u4ef6\u7684\u610f\u601d\u3002<\/p>\n

#tar-tfall.tar<\/p>\n

\u8fd9\u6761\u547d\u4ee4\u662f\u5217\u4e3eall.tar\u5305\u4e2d\u6240\u6709\u6587\u4ef6\uff0c-t\u662f\u5217\u4e3e\u6587\u4ef6\u7684\u610f\u601d<\/p>\n

#tar-xfall.tar<\/p>\n

\u8fd9\u6761\u547d\u4ee4\u662f\u89e3\u51faall.tar\u5305\u4e2d\u6240\u6709\u6587\u4ef6\uff0c-t\u662f\u89e3\u5f00\u7684\u610f\u601d<\/p>\n

\u538b\u7f29<\/p>\n

tar\u2013cvfjpg.tar*.jpg\/\/\u5c06\u76ee\u5f55\u91cc\u6240\u6709jpg\u6587\u4ef6\u6253\u5305\u6210tar.jpg<\/p>\n

tar\u2013czfjpg.tar.gz*.jpg\/\/\u5c06\u76ee\u5f55\u91cc\u6240\u6709jpg\u6587\u4ef6\u6253\u5305\u6210jpg.tar\u540elinux\u89e3\u538b\u7f29\u547d\u4ee4<\/strong>\uff0c\u4f46\u662f\u5c06\u5176\u7528gzip\u538b\u7f29\uff0c\u751f\u6210\u4e00\u4e2agzip\u538b\u7f29\u8fc7\u7684\u5305\uff0c\u547d\u540d\u4e3ajpg.tar.gz<\/p>\n

tar\u2013cjfjpg.tar.bz2*.jpg\/\/\u5c06\u76ee\u5f55\u91cc\u6240\u6709jpg\u6587\u4ef6\u6253\u5305\u6210jpg.tar\u540e\uff0c\u4f46\u662f\u5c06\u5176\u7528bzip2\u538b\u7f29\uff0c\u751f\u6210\u4e00\u4e2abzip2\u538b\u7f29\u8fc7\u7684\u5305\uff0c\u547d\u540d\u4e3ajpg.tar.bz2<\/p>\n

tar\u2013cZfjpg.tar.Z*.jpg\/\/\u5c06\u76ee\u5f55\u91cc\u6240\u6709jpg\u6587\u4ef6\u6253\u5305\u6210jpg.tar\u540e\uff0c\u4f46\u662f\u5c06\u5176\u7528compress\u538b\u7f29\uff0c\u751f\u6210\u4e00\u4e2aumcompress\u538b\u7f29\u8fc7\u7684\u5305\uff0c\u547d\u540d\u4e3ajpg.tar.Z<\/p>\n

rarajpg.rar*.jpg\/\/rar\u683c\u5f0f\u7684\u538b\u7f29\uff0c\u987b\u8981\u5148\u4e0b\u8f7drarforlinux<\/p>\n

zipjpg.zip*.jpg\/\/zip\u683c\u5f0f\u7684\u538b\u7f29\uff0c\u987b\u8981\u5148\u4e0b\u8f7dzipforlinux<\/p>\n

\u89e3\u538b<\/p>\n

\u89e3\u538b\u7f29\u547d\u4ee4Linux_linux\u89e3\u538b\u7f29\u547d\u4ee4_\u89e3\u538b\u7f29\u547d\u4ee4tar.gz<\/p>\n

tar\u2013xvffile.tar\/\/\u89e3\u538btar\u5305<\/p>\n

tar-xzvffile.tar.gz\/\/\u89e3\u538btar.gz<\/p>\n

tar-xjvffile.tar.bz2\/\/\u89e3\u538btar.bz2<\/p>\n

tar\u2013xZvffile.tar.Z\/\/\u89e3\u538btar.Z<\/p>\n

unrarefile.rar\/\/\u89e3\u538brar<\/p>\n

unzipfile.zip\/\/\u89e3\u538bzip<\/p>\n

\u603b\u7ed3<\/p>\n

1\u3001*.tar\u7528tar\u2013xvf\u89e3\u538b<\/p>\n

2\u3001*.gz\u7528gzip-d\u6216\u5219gunzip\u89e3\u538b<\/p>\n

3\u3001*.tar.gz\u548c*.tgz\u7528tar\u2013xzf\u89e3\u538b<\/p>\n

4\u3001*.bz2\u7528bzip2-d\u6216\u5219\u7528bunzip2\u89e3\u538b<\/p>\n

5\u3001*.tar.bz2\u7528tar\u2013xjf\u89e3\u538b<\/p>\n

6\u3001*.Z\u7528uncompress\u89e3\u538b<\/p>\n

7\u3001*.tar.Z\u7528tar\u2013xZf\u89e3\u538b<\/p>\n

8\u3001*.rar\u7528unrare\u89e3\u538b<\/p>\n

9\u3001*.zip\u7528unzip\u89e3\u538b<\/p>\n

Linux<\/a>\u4e2dtar\u547d\u4ee4\u89e3\u8bfb(\u8f6c\u8f7d\u7684\u8d44\u6599)<\/p>\n

2008\u5e7404\u670817\u65e5\u793c\u62dc\u56db15:37<\/p>\n

tar\u547d\u4ee4<\/p>\n

tar\u53ef\u4ee5\u4e3a\u6587\u4ef6\u548c\u76ee\u5f55\u521b\u5efa\u6863\u6848\u3002\u501f\u52a9tar\uff0c\u7528\u6237\u53ef\u4ee5\u4e3a\u67d0\u4e00\u7279\u5b9a\u6587\u4ef6\u521b\u5efa\u6863\u6848(\u5907\u4efd\u6587\u4ef6)\uff0c\u4e5f\u53ef\u4ee5\u5728\u6863\u6848\u4e2d\u6539\u53d8\u6587\u4ef6\uff0c\u6216\u5219\u5411\u6863\u6848\u4e2d\u52a0\u5165\u65b0\u7684\u6587\u4ef6\u3002tar\u6700\u521d\u88ab\u62ff\u6765\u5728\u78c1\u5e26\u4e0a\u521b\u5efa\u6863\u6848\uff0c\u5982\u4eca\uff0c\u7528\u6237\u53ef\u4ee5\u5728\u4efb\u4f55\u8bbe\u5907\u4e0a\u521b\u5efa\u6863\u6848\uff0c\u5982\u8f6f\u9a71\u3002\u501f\u52a9tar\u547d\u4ee4\uff0c\u53ef\u4ee5\u628a\u4e00\u5927\u5806\u7684\u6587\u4ef6\u548c\u76ee\u5f55\u5168\u90e8\u6253\u5305\u6210\u4e00\u4e2a\u6587\u4ef6\uff0c\u8fd9\u5bf9\u4e8e\u5907\u4efd\u6587\u4ef6\u6216\u5c06\u51e0\u4e2a\u6587\u4ef6\u7ec4\u5408\u6210\u4e3a\u4e00\u4e2a\u6587\u4ef6\u4ee5\u6613\u4e8e\u7f51\u8def\u4f20\u8f93\u662f\u5341\u5206\u6709\u7528\u7684\u3002Linux\u4e0a\u7684tar\u662fGNU\u7248\u672c\u7684\u3002<\/p>\n

\u53e5\u578b\uff1atar[\u4e3b\u9009\u9879+\u8f85\u9009\u9879]\u6587\u4ef6\u6216\u5219\u76ee\u5f55<\/p>\n

\u4f7f\u7528\u8be5\u547d\u4ee4\u65f6\uff0c\u4e3b\u9009\u9879\u662f\u5fc5\u9700\u8981\u6709\u7684\uff0c\u5b83\u544a\u8bc9tar\u8981\u505a\u54ea\u4e9b\u4e8b\u60c5\uff0c\u8f85\u9009\u9879\u662f\u8f85\u52a9\u4f7f\u7528\u7684\uff0c\u53ef\u4ee5\u9009\u7528\u3002<\/p>\n

\u4e3b\u9009\u9879\uff1a<\/p>\n

c\u521b\u5efa\u65b0\u7684\u6863\u6848\u6587\u4ef6\u3002\u5047\u5982\u7528\u6237\u60f3\u5907\u4efd\u4e00\u4e2a\u76ee\u5f55\u6216\u662f\u4e00\u4e9b\u6587\u4ef6\uff0c\u5c31\u8981\u9009\u62e9\u8fd9\u4e2a\u9009\u9879\u3002<\/p>\n

r\u628a\u8981\u5b58\u6863\u7684\u6587\u4ef6\u8ffd\u52a0\u5230\u6863\u6848\u6587\u4ef6\u7684\u672a\u5c3e\u3002\u8bf8\u5982\u7528\u6237\u65e9\u5df2\u4f5c\u597d\u5907\u4efd\u6587\u4ef6\uff0c\u53c8\u53d1\u89c9\u8fd8\u6709\u4e00\u4e2a\u76ee\u5f55\u6216\u662f\u4e00\u4e9b\u6587\u4ef6\u5fd8\u6389\u5907\u4efd\u4e86\uff0c\u8fd9\u65f6\u53ef\u4ee5\u4f7f\u7528\u8be5\u9009\u9879\uff0c\u5c06\u5fd8\u6389\u7684\u76ee\u5f55\u6216\u6587\u4ef6\u8ffd\u52a0\u5230\u5907\u4efd\u6587\u4ef6\u4e2d\u3002<\/p>\n

t\u5217\u4e3e\u6863\u6848\u6587\u4ef6\u7684\u5185\u5bb9\uff0c\u67e5\u770b\u65e9\u5df2\u5907\u4efd\u4e86\u4ec0\u4e48\u6587\u4ef6\u3002<\/p>\n

u\u66f4\u65b0\u6587\u4ef6\u3002\u5c31\u662f\u8bf4\uff0c\u7528\u65b0\u589e\u7684\u6587\u4ef6\u4ee3\u66ff\u539f\u5907\u4efd\u6587\u4ef6\uff0c\u5047\u5982\u5728\u5907\u4efd\u6587\u4ef6\u4e2d\u627e\u4e0d\u5230\u8981\u66f4\u65b0\u7684\u6587\u4ef6\uff0c\u5219\u628a\u5b83\u8ffd\u52a0\u5230\u5907\u4efd\u6587\u4ef6\u7684\u6700\u540e\u3002<\/p>\n

x\u4ece\u6863\u6848\u6587\u4ef6\u4e2d\u91ca\u653e\u6587\u4ef6\u3002<\/p>\n

\u8f85\u52a9\u9009\u9879\uff1a<\/p>\n

b\u8be5\u9009\u9879\u662f\u4e3a\u78c1\u5e26\u673a\u8bbe\u5b9a\u7684\u3002\u5176\u540e\u8ddf\u4e00\u6570\u5b57\uff0c\u62ff\u6765\u8bf4\u660e\u533a\u5757\u7684\u5927\u5c0f\uff0c\u7cfb\u7edf\u9884\u8bbe\u503c\u4e3a20(20*512bytes)\u3002<\/p>\n

f\u4f7f\u7528\u6863\u6848\u6587\u4ef6\u6216\u8bbe\u5907\uff0c\u8fd9\u4e2a\u9009\u9879\u4e00\u822c\u662f\u5fc5\u9009\u7684\u3002<\/p>\n

k\u4fdd\u5b58\u65e9\u5df2\u5b58\u5728\u7684\u6587\u4ef6\u3002\u8bf8\u5982\u6211\u4eec\u628a\u67d0\u4e2a\u6587\u4ef6\u8fd8\u539f\uff0c\u5728\u8fd8\u539f\u7684\u8fc7\u7a0b\u4e2d\uff0c\u9047\u89c1\u76f8\u540c\u7684\u6587\u4ef6\uff0c\u4e0d\u4f1a\u8fdb\u884c\u8986\u76d6\u3002<\/p>\n

m\u5728\u8fd8\u539f\u6587\u4ef6\u65f6\uff0c\u628a\u6240\u6709\u6587\u4ef6\u7684\u66f4\u6539\u65f6\u95f4\u8bbe\u5b9a\u4e3a\u73b0\u4eca\u3002<\/p>\n

M\u521b\u5efa\u591a\u5377\u7684\u6863\u6848\u6587\u4ef6\uff0c\u4fbf\u4e8e\u5728\u51e0\u4e2ac\u76d8\u4e2d\u50a8\u5b58\u3002<\/p>\n

v\u8be6\u5c3d\u62a5\u544atar\u5904\u7406\u7684\u6587\u4ef6\u4fe1\u606f\u3002\u5982\u65e0\u6b64\u9009\u9879\uff0ctar\u4e0d\u62a5\u544a\u6587\u4ef6\u4fe1\u606f\u3002<\/p>\n

w\u6bcf\u4e00\u6b65\u90fd\u8981\u6c42\u786e\u8ba4\u3002<\/p>\n

z\u7528gzip\u6765\u538b\u7f29\/\u89e3\u538b\u7f29\u6587\u4ef6\uff0c\u52a0\u4e0a\u8be5\u9009\u9879\u540e\u53ef\u4ee5\u5c06\u6863\u6848\u6587\u4ef6\u8fdb\u884c\u538b\u7f29\uff0c\u4f46\u8fd8\u539f\u65f6\u4e5f\u4e00\u5b9a\u8981\u4f7f\u7528\u8be5\u9009\u9879\u8fdb\u884c\u89e3\u538b\u7f29\u3002<\/p>\n

Linux\u4e0b\u7684\u538b\u7f29\u6587\u4ef6\u5206\u6790<\/p>\n

\u5bf9\u4e8e\u521a\u624d\u63a5\u89e6Linux\u7684\u4eba\u6765\u8bf4\uff0c\u4e00\u5b9a\u4f1a\u7ed9Linux\u4e0b\u4e00\u5927\u5806\u5404\u8272\u5404\u6837\u7684\u6587\u4ef6\u540d\u7ed9\u641e\u6655\u3002\u522b\u4e2a\u4e0d\u8bf4\uff0c\u5355\u5355\u5c31\u538b\u7f29\u6587\u4ef6\u4e3a\u4f8b\uff0c\u6211\u4eec\u6653\u5f97\u5728Windows\u4e0b\u6700\u5e38\u89c1\u7684\u538b\u7f29\u6587\u4ef6\u5c31\u53ea\u6709\u4e24\u79cd\uff0c\u4e00\u662f,zip\uff0c\u53e6\u4e00\u4e2a\u662f.rap\u3002\u800c\u4e14Linux\u5c31\u4e0d\u540c\u4e86\uff0c\u5b83\u6709.gz\u3001.tar.gz\u3001tgz\u3001bz2\u3001.Z\u3001.tar\u7b49\u8bf8\u591a\u7684\u538b\u7f29\u6587\u4ef6\u540d\uff0c\u518d\u8005windows\u4e0b\u7684.zip\u548c.rar\u4e5f\u53ef\u4ee5\u5728Linux\u4e0b\u4f7f\u7528\uff0c\u4e0d\u8fc7\u5728Linux\u4f7f\u7528.zip\u548c.rar\u7684\u4eba\u5c31\u592a\u5c11\u4e86\u3002\u672c\u6587\u5c31\u6765\u5bf9\u90a3\u4e9b\u5e38\u89c1\u7684\u538b\u7f29\u6587\u4ef6\u8fdb\u884c\u4e00\u756a\u5c0f\u7ed3\uff0c\u5e0c\u671b\u4f60\u4e0a\u6b21\u9047\u89c1\u90a3\u4e9b\u6587\u4ef6\u65f6\u4e0d\u81f3\u4e8e\u88ab\u641e\u6655\u3002<\/p>\n

\u5728\u5177\u4f53\u603b\u7ed3\u5404\u79cd\u538b\u7f29\u6587\u4ef6\u4e4b\u524d\u5462\uff0c\u9996\u5148\u8981\u5f04\u6e05\u4e24\u4e2a\u6982\u5ff5\uff1a\u6253\u5305\u548c\u538b\u7f29\u3002\u6253\u5305\u662f\u6307\u5c06\u4e00\u5927\u5806\u6587\u4ef6\u6216\u76ee\u5f55\u54ea\u4e9b\u7684\u5f04\u6210\u4e00\u4e2a\u603b\u7684\u6587\u4ef6\uff0c\u538b\u7f29\u5219\u662f\u5c06\u4e00\u4e2a\u5927\u7684\u6587\u4ef6\u901a\u8fc7\u4e00\u4e9b\u538b\u7f29\u7b97\u6cd5\u5f04\u6210\u4e00\u4e2a\u5c0f\u6587\u4ef6\u3002\u4e3a\u4f55\u8981\u5206\u8fa8\u8fd9\u4e24\u4e2a\u6982\u5ff5\u5462?\u867d\u7136\u8fd9\u7f18\u4e8eLinux\u4e2d\u7684\u597d\u591a\u538b\u7f29\u7a0b\u5e8f\u53ea\u80fd\u9488\u5bf9\u4e00\u4e2a\u6587\u4ef6\u8fdb\u884c\u538b\u7f29\uff0c\u8fd9\u6837\u5f53\u4f60\u60f3\u8981\u538b\u7f29\u4e00\u5927\u5806\u6587\u4ef6\u65f6\uff0c\u4f60\u5c31\u5f97\u5148\u5229\u7528\u53e6\u5b83\u7684\u5de5\u5177\u5c06\u8fd9\u4e00\u5927\u5806\u6587\u4ef6\u5148\u6253\u6210\u4e00\u4e2a\u5305\uff0c\u4e4b\u540e\u518d\u5c31\u539f\u5148\u7684\u538b\u7f29\u7a0b\u5e8f\u8fdb\u884c\u538b\u7f29\u3002<\/p>\n

Linux\u4e0b\u6700\u5e38\u7528\u7684\u6253\u5305\u7a0b\u5e8f\u5c31\u662ftar\u4e86\uff0c\u4f7f\u7528tar\u7a0b\u5e8f\u6253\u4e0b\u6765\u7684\u5305\u6211\u4eec\u5e38\u79f0\u4e3atar\u5305\uff0ctar\u5305\u6587\u4ef6\u7684\u547d\u4ee4\u4e00\u822c\u90fd\u662f\u4ee5.tar\u7ed3\u5c3e\u7684\u3002\u751f\u6210tar\u5305\u540e\uff0c\u5c31\u53ef\u4ee5\u7528\u5176\u5b83\u7684\u7a0b\u5e8f\u6765\u8fdb\u884c\u538b\u7f29\u4e86\uff0c\u6240\u4ee5\u9996\u5148\u5c31\u6765\u8bb2\u8bb2tar\u547d\u4ee4\u7684\u57fa\u672c\u7528\u6cd5\uff1a<\/p>\n

tar\u547d\u4ee4\u7684\u9009\u9879\u6709\u597d\u591a(\u7528mantar\u53ef\u4ee5\u67e5\u770b\u5230)\uff0c\u4f46\u5e38\u7528\u7684\u5c31\u8fd9\u4e48\u51e0\u4e2a\u9009\u9879\uff0c\u4e0b\u8fb9\u6765\u4e3e\u4f8b\u8bf4\u660e\u4e00\u4e0b\uff1a<\/p>\n

#tar-cfall.tar*.jpg<\/p>\n

\u8fd9\u6761\u547d\u4ee4\u662f\u5c06\u6240\u6709.jpg\u7684\u6587\u4ef6\u6253\u6210\u4e00\u4e2a\u540d\u4e3aall.tar\u7684\u5305\u3002-c\u662f\u8868\u793a\u5f62\u6210\u65b0\u7684\u5305\uff0c-f\u6307\u5b9a\u5305\u7684\u6587\u4ef6\u540d\u3002<\/p>\n

#tar-rfall.tar*.gif<\/p>\n

\u8fd9\u6761\u547d\u4ee4\u662f\u5c06\u6240\u6709.gif\u7684\u6587\u4ef6\u964d\u4f4e\u5230all.tar\u7684\u5305\u4e0a\u9762\u53bb\u3002-r\u662f\u8868\u793a\u964d\u4f4e\u6587\u4ef6\u7684\u610f\u601d\u3002<\/p>\n

#tar-ufall.tarlogo.gif<\/p>\n

\u8fd9\u6761\u547d\u4ee4\u662f\u66f4\u65b0\u539f\u5148tar\u5305all.tar\u4e2dlogo.gif\u6587\u4ef6\uff0c-u\u662f\u8868\u793a\u66f4\u65b0\u6587\u4ef6\u7684\u610f\u601d\u3002<\/p>\n

#tar-tfall.tar<\/p>\n

\u8fd9\u6761\u547d\u4ee4\u662f\u5217\u4e3eall.tar\u5305\u4e2d\u6240\u6709\u6587\u4ef6\uff0c-t\u662f\u5217\u4e3e\u6587\u4ef6\u7684\u610f\u601d<\/p>\n

#tar-xfall.tar<\/p>\n

\u8fd9\u6761\u547d\u4ee4\u662f\u89e3\u51faall.tar\u5305\u4e2d\u6240\u6709\u6587\u4ef6\uff0c-t\u662f\u89e3\u5f00\u7684\u610f\u601d<\/p>\n

\u4ee5\u4e0a\u5c31\u662ftar\u7684\u6700\u57fa\u672c\u7684\u7528\u6cd5\u3002\u4e3a\u4e86\u4fbf\u6377\u7528\u6237\u5728\u6253\u5305\u89e3\u5305\u7684\u540c\u65f6\u53ef\u4ee5\u538b\u7f29\u6216\u89e3\u538b\u6587\u4ef6\uff0ctar\u63d0\u4f9b\u4e86\u4e00\u79cd\u7279\u6b8a\u7684\u529f\u80fd\u3002\u8fd9\u5c31\u662ftar\u53ef\u4ee5\u5728\u6253\u5305\u6216\u89e3\u5305\u7684\u540c\u65f6\u8c03\u7528\u5176\u5b83\u7684\u538b\u7f29\u7a0b\u5e8f\uff0c\u4f8b\u5982\u8c03\u7528gzip\u3001bzip2\u7b49\u3002<\/p>\n

1)tar\u8c03\u7528gzip<\/p>\n

linux\u89e3\u538b\u7f29\u547d\u4ee4_\u89e3\u538b\u7f29\u547d\u4ee4Linux_\u89e3\u538b\u7f29\u547d\u4ee4tar.gz<\/p>\n

gzip\u662fGNU\u7ec4\u7ec7\u5f00\u53d1\u7684\u4e00\u4e2a\u538b\u7f29\u7a0b\u5e8f\uff0c.gz\u7ed3\u5c3e\u7684\u6587\u4ef6\u5c31\u662fgzip\u538b\u7f29\u7684\u7ed3\u679c\u3002\u4e0egzip\u76f8\u5bf9\u7684\u89e3\u538b\u7a0b\u5e8f\u662fgunzip\u3002tar\u4e2d\u4f7f\u7528-z\u8fd9\u4e2a\u53c2\u6570\u6765\u8c03\u7528gzip\u3002\u4e0b\u8fb9\u6765\u4e3e\u4f8b\u8bf4\u660e\u4e00\u4e0b\uff1a<\/p>\n

#tar-czfall.tar.gz*.jpg<\/p>\n

\u8fd9\u6761\u547d\u4ee4\u662f\u5c06\u6240\u6709.jpg\u7684\u6587\u4ef6\u6253\u6210\u4e00\u4e2atar\u5305\uff0c\u4f46\u662f\u5c06\u5176\u7528gzip\u538b\u7f29\uff0c\u751f\u6210\u4e00\u4e2agzip\u538b\u7f29\u8fc7\u7684\u5305\uff0c\u5305\u540d\u4e3aall.tar.gz<\/p>\n

#tar-xzfall.tar.gz<\/p>\n

\u8fd9\u6761\u547d\u4ee4\u662f\u5c06\u524d\u9762\u5f62\u6210\u7684\u5305\u89e3\u5f00\u3002<\/p>\n

2)tar\u8c03\u7528bzip2<\/p>\n

bzip2\u662f\u4e00\u4e2a\u538b\u7f29\u80fd\u529b\u66f4\u5f3a\u7684\u538b\u7f29\u7a0b\u5e8f\uff0c.bz2\u7ed3\u5c3e\u7684\u6587\u4ef6\u5c31\u662fbzip2\u538b\u7f29\u7684\u7ed3\u679c\u3002\u4e0ebzip2\u76f8\u5bf9\u7684\u89e3\u538b\u7a0b\u5e8f\u662fbunzip2\u3002tar\u4e2d\u4f7f\u7528-j\u8fd9\u4e2a\u53c2\u6570\u6765\u8c03\u7528gzip\u3002\u4e0b\u8fb9\u6765\u4e3e\u4f8b\u8bf4\u660e\u4e00\u4e0b\uff1a<\/p>\n

#tar-cjfall.tar.bz2*.jpg<\/p>\n

\u8fd9\u6761\u547d\u4ee4\u662f\u5c06\u6240\u6709.jpg\u7684\u6587\u4ef6\u6253\u6210\u4e00\u4e2atar\u5305\uff0c\u4f46\u662f\u5c06\u5176\u7528bzip2\u538b\u7f29\uff0c\u751f\u6210\u4e00\u4e2abzip2\u538b\u7f29\u8fc7\u7684\u5305\uff0c\u5305\u540d\u4e3aall.tar.bz2<\/p>\n

#tar-xjfall.tar.bz2<\/p>\n

\u8fd9\u6761\u547d\u4ee4\u662f\u5c06\u524d\u9762\u5f62\u6210\u7684\u5305\u89e3\u5f00\u3002<\/p>\n

3)tar\u8c03\u7528compress<\/p>\n

compress\u4e5f\u662f\u4e00\u4e2a\u538b\u7f29\u7a0b\u5e8flinux\u89c6\u9891\uff0c\u800c\u4e14\u4f3c\u4e4e\u4f7f\u7528compress\u7684\u4eba\u4e0d\u5982gzip\u548cbzip2\u7684\u4eba\u591a\u3002.Z\u7ed3\u5c3e\u7684\u6587\u4ef6\u5c31\u662fbzip2\u538b\u7f29\u7684\u7ed3\u679c\u3002\u4e0ecompress\u76f8\u5bf9\u7684\u89e3\u538b\u7a0b\u5e8f\u662funcompress\u3002tar\u4e2d\u4f7f\u7528-Z\u8fd9\u4e2a\u53c2\u6570\u6765\u8c03\u7528gzip\u3002\u4e0b\u8fb9\u6765\u4e3e\u4f8b\u8bf4\u660e\u4e00\u4e0b\uff1a<\/p>\n

#tar-cZfall.tar.Z*.jpg<\/p>\n

\u8fd9\u6761\u547d\u4ee4\u662f\u5c06\u6240\u6709.jpg\u7684\u6587\u4ef6\u6253\u6210\u4e00\u4e2atar\u5305\uff0c\u4f46\u662f\u5c06\u5176\u7528compress\u538b\u7f29\uff0c\u751f\u6210\u4e00\u4e2auncompress\u538b\u7f29\u8fc7\u7684\u5305\uff0c\u5305\u540d\u4e3aall.tar.Z<\/p>\n

#tar-xZfall.tar.Z<\/p>\n

\u8fd9\u6761\u547d\u4ee4\u662f\u5c06\u524d\u9762\u5f62\u6210\u7684\u5305\u89e3\u5f00<\/p>\n

\u6709\u4e86\u524d\u9762\u7684\u77e5\u8bc6\uff0c\u4f60\u5e94\u5f53\u53ef\u4ee5\u89e3\u5f00\u591a\u79cd\u538b\u7f29\u6587\u4ef6\u4e86\uff0c\u4e0b\u8fb9\u5bf9\u4e8etar\u7cfb\u5217\u7684\u538b\u7f29\u6587\u4ef6\u4f5c\u4e00\u4e2a\u5c0f\u7ed3\uff1a<\/p>\n

1)\u5bf9\u4e8e.tar\u7ed3\u5c3e\u7684\u6587\u4ef6<\/p>\n

tar-xfall.tar<\/p>\n

2)\u5bf9\u4e8e.gz\u7ed3\u5c3e\u7684\u6587\u4ef6<\/p>\n

gzip-dall.gz<\/p>\n

gunzipall.gz<\/p>\n

3)\u5bf9\u4e8e.tgz\u6216.tar.gz\u7ed3\u5c3e\u7684\u6587\u4ef6<\/p>\n

tar-xzfall.tar.gz<\/p>\n

tar-xzfall.tgz<\/p>\n

4)\u5bf9\u4e8e.bz2\u7ed3\u5c3e\u7684\u6587\u4ef6<\/p>\n

bzip2-dall.bz2<\/p>\n

bunzip2all.bz2<\/p>\n

5)\u5bf9\u4e8etar.bz2\u7ed3\u5c3e\u7684\u6587\u4ef6<\/p>\n

tar-xjfall.tar.bz2<\/p>\n

6)\u5bf9\u4e8e.Z\u7ed3\u5c3e\u7684\u6587\u4ef6<\/p>\n

uncompressall.Z<\/p>\n

7)\u5bf9\u4e8e.tar.Z\u7ed3\u5c3e\u7684\u6587\u4ef6<\/p>\n

tar-xZfall.tar.z<\/p>\n

\u53e6\u5916\u5bf9\u4e8eWindow\u4e0b\u7684\u5e38\u89c1\u538b\u7f29\u6587\u4ef6.zip\u548c.rar\uff0cLinux\u4e5f\u6709\u76f8\u5e94\u7684\u65b9\u5f0f\u6765\u89e3\u538b\u5b83\u4eec\uff1a<\/p>\n

1)\u5bf9\u4e8e.zip<\/p>\n

linux\u4e0b\u63d0\u4f9b\u4e86zip\u548cunzip\u7a0b\u5e8flinux\u89e3\u538b\u7f29\u547d\u4ee4<\/strong>\uff0czip\u662f\u538b\u7f29\u7a0b\u5e8f\uff0cunzip\u662f\u89e3\u538b\u7a0b\u5e8f\u3002\u5b83\u4eec\u7684\u53c2\u6570\u9009\u9879\u597d\u591a\uff0c\u8fd9\u513f\u53ea\u505a\u7b80\u5355\u4ecb\u7ecd\uff0c\u4ecd\u7136\u4e3e\u4f8b\u8bf4\u660e\u4e00\u4e0b\u5176\u7528\u6cd5\uff1a<\/p>\n

#zipall.zip*.jpg<\/p>\n

\u8fd9\u6761\u547d\u4ee4\u662f\u5c06\u6240\u6709.jpg\u7684\u6587\u4ef6\u538b\u7f29\u6210\u4e00\u4e2azip\u5305<\/p>\n

#unzipall.zip<\/p>\n

\u8fd9\u6761\u547d\u4ee4\u662f\u5c06all.zip\u4e2d\u7684\u6240\u6709\u6587\u4ef6\u89e3\u538b\u4e0b\u6765<\/p>\n

2)\u5bf9\u4e8e.rar<\/p>\n

\u8981\u5728linux\u4e0b\u5904\u7406.rar\u6587\u4ef6\uff0c\u987b\u8981\u5b89\u88c5RARforLinux\uff0c\u53ef\u4ee5\u4ece\u7f51\u4e0a\u4e0b\u8f7d\uff0c\u4f46\u8981\u8bb0\u4f4f\uff0cRARforLinux<\/p>\n

\u4e0d\u662f\u514d\u8d39\u7684;\u4e4b\u540e\u5b89\u88c5\uff1a<\/p>\n

#tar-xzpvfrarlinux-3.2.0.tar.gz<\/p>\n

#cdrar<\/p>\n

#make<\/p>\n

\u8fd9\u6837\u5c31\u5b89\u88c5\u597d\u4e86\uff0c\u5b89\u88c5\u540e\u5c31\u6709\u4e86rar\u548cunrar\u8fd9\u4e24\u4e2a\u7a0b\u5e8f\uff0crar\u662f\u538b\u7f29\u7a0b\u5e8f\uff0cunrar\u662f\u89e3\u538b\u7a0b\u5e8f\u3002\u5b83\u4eec\u7684\u53c2\u6570\u9009\u9879\u597d\u591a\uff0c\u8fd9\u513f\u53ea\u505a\u7b80\u5355\u4ecb\u7ecd\uff0c\u4ecd\u7136\u4e3e\u4f8b\u8bf4\u660e\u4e00\u4e0b\u5176\u7528\u6cd5\uff1a<\/p>\n

#raraall*.jpg<\/p>\n

\u8fd9\u6761\u547d\u4ee4\u662f\u5c06\u6240\u6709.jpg\u7684\u6587\u4ef6\u538b\u7f29\u6210\u4e00\u4e2arar\u5305\uff0c\u540d\u4e3aall.rar\uff0c\u8be5\u7a0b\u5e8f\u4f1a\u5c06.rar\u6269\u5145\u540d\u5c06\u624b\u52a8\u9644\u52a0\u5230\u5305\u540d\u540e\u3002<\/p>\n

#unrareall.rar<\/p>\n

\u8fd9\u6761\u547d\u4ee4\u662f\u5c06all.rar\u4e2d\u7684\u6240\u6709\u6587\u4ef6\u89e3\u538b\u4e0b\u6765<\/p>\n

\u5230\u6b64\u4e3a\u81f3\uff0c\u6211\u4eec\u65e9\u5df2\u4ecb\u7ecd\u8fc7linux\u4e0b\u7684tar\u3001gzip\u3001gunzip\u3001bzip2\u3001bunzip2\u3001compress\u3001uncompress\u3001zip\u3001unzip\u3001rar\u3001unrar\u7b49\u7a0b\u5f0f\uff0c\u4f60\u5e94\u5f53\u65e9\u5df2\u624d\u80fd\u4f7f\u7528\u5b83\u4eec\u5bf9.tar\u3001.gz\u3001.tar.gz\u3001.tgz\u3001.bz2\u3001.tar.bz2\u3001.Z\u3001.tar.Z\u3001.zip\u3001.rar\u8fd910\u79cd\u538b\u7f29\u6587\u4ef6\u8fdb\u884c\u89e3\u538b\u4e86linux\u793e\u533a\uff0c\u4e4b\u540e\u5e94\u5f53\u4e0d\u987b\u8981\u4e3a\u4e0b\u8f7d\u4e86\u4e00\u4e2a\u8f6f\u4ef6\u800c\u4e0d\u6653\u5f97\u600e\u4e48\u5728Linux\u4e0b\u89e3\u5f00\u800c\u82e6\u607c\u4e86\u3002\u5e76\u4e14\u4ee5\u4e0a\u65b9\u6cd5\u5bf9\u4e8eUnix\u4e5f\u57fa\u672c\u6709\u6548\u3002<\/p>\n

\u672c\u6587\u4ecb\u7ecd\u4e86linux\u4e0b\u7684\u538b\u7f29\u7a0b\u5f0ftar\u3001gzip\u3001gunzip\u3001bzip2\u3001bunzip2\u3001compress\u3001uncompress\u3001zip\u3001unzip\u3001rar\u3001unrar\u7b49\u7a0b\u5f0f\uff0c\u4ee5\u53ca\u600e\u6837\u4f7f\u7528\u5b83\u4eec\u5bf9.tar\u3001.gz\u3001.tar.gz\u3001.tgz\u3001.bz2\u3001.tar.bz2\u3001.Z\u3001.tar.Z\u3001.zip\u3001.rar\u8fd910\u79cd\u538b\u7f29\u6587\u4ef6\u8fdb\u884c\u64cd\u4f5c<\/p>\n","protected":false},"excerpt":{"rendered":"

linux\u4e0b\u63d0\u4f9b\u4e86zip\u548cunzip\u7a0b\u5e8f\uff0czip\u662f\u538b\u7f29\u7a0b\u5e8f\uff0cunzip\u662f\u89e3\u538b\u7a0b\u5e8f\u3002Z\u3001.tar.Z\u3001.zip\u3001.rar\u8fd910\u79cd\u538b\u7f29\u6587\u4ef6\u8fdb\u884c\u89e3\u538b\u4e86\uff0c\u4ee5\u540e\u5e94\u8be5\u4e0d\u9700\u8981\u4e3a\u4e0b\u8f7d\u4e86\u4e00\u4e2a\u8f6f\u4ef6\u800c\u4e0d\u77e5\u9053\u5982\u4f55\u5728Linux\u4e0b\u89e3\u5f00\u800c\u70e6\u607c\u4e86\u3002<\/p>\n","protected":false},"author":1,"featured_media":293816,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[988],"tags":[3769,1048,3771,1050,3770],"class_list":["post-293815","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tougao","tag-zml-2","tag-ys","tag-fg-3","tag-jy","tag-dg"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/293815","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=293815"}],"version-history":[{"count":0,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/293815\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/293816"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=293815"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=293815"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=293815"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}