{"id":326,"date":"2010-04-10T11:53:44","date_gmt":"2010-04-10T11:53:44","guid":{"rendered":""},"modified":"2010-04-10T11:53:44","modified_gmt":"2010-04-10T11:53:44","slug":"326","status":"publish","type":"post","link":"https:\/\/www.poloo.org\/?p=326","title":{"rendered":"\u5bf9\u4e8eubuntu\u4e2drar\u6587\u4ef6\u64cd\u4f5c\u653b\u7565"},"content":{"rendered":"<p>\u9996\u5148\u8bf4\u660e\uff0c\u6b64\u65b9\u6cd5\u4e3a\u4e60\u60ef\u547d\u4ee4\u884c\u65b9\u5f0f\u7684\u7528\u6237\u5199\u7684\uff0c\u5982\u679c\u4f60\u4e0d\u559c\u6b22\u4f7f\u7528command line\u7684\u8bdd\uff0c\u8bf7\u4e0d\u8981\u6d6a\u8d39\u65f6\u95f4\u4f4f\u4e0b\u8bfb\u4e86\u3002<\/p>\n<p>rar \u662f\u6e90\u4e8e windows \u7684\u538b\u7f29\u683c\u5f0f\uff0c linux \u5bf9\u5b83\u4eec\u7684\u652f\u6301\u5e76\u4e0d\u50cf tar \u6216\u8005 gzip \u90a3\u6837\u7406\u6240\u5f53\u7136\uff0c\u56e0\u6b64\uff0c\u5f53\u4f60\u5728 ubuntu \u4e0b\u65e0\u6cd5\u907f\u5f00\u8fd9\u4e24\u79cd\u538b\u7f29\u683c\u5f0f\u7684\u6587\u4ef6\u65f6\uff0c\u4f60\u5fc5\u987b\u5b89\u88c5\u989d\u5916\u7684\u5de5\u5177\u8f6f\u4ef6\u6765\u89e3\u5f00\u8fd9\u4e9b\u538b\u7f29\u6587\u4ef6\u3002<\/p>\n<p>\u5b89\u88c5 rar \u89e3\u538b\u7f29\u6587\u4ef6\uff1a<\/p>\n<p>sudo apt-get install rar<\/p>\n<p>\u89e3\u538b\u7f29 rar \u6587\u4ef6\uff1a<\/p>\n<p>rar e myfile.rar<\/p>\n<p>\u4e0b\u9762\u662f\u5229\u7528<br \/>rar &gt; rar.txt<br \/>\u547d\u4ee4\u5f97\u5230\u7684rar\u547d\u4ee4\u7684\u8bf4\u660e\u6587\u6863\uff0c\u4f9b\u6709\u9700\u8981\u7684\u540c\u5fd7\u53c2\u8003\u3002<\/p>\n<p>_________________________________________________________________________________<br \/>RAR 3.70 beta 1&nbsp;&nbsp; Copyright (c) 1993-2007 Alexander Roshal&nbsp;&nbsp; 8 Jan 2007<br \/>Shareware version&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Type RAR -? for help<\/p>\n<p>Usage:&nbsp;&nbsp;&nbsp;&nbsp; rar &lt;command&gt; -&lt;switch 1&gt; -&lt;switch N&gt; &lt;archive&gt; &lt;files&#8230;&gt;<br \/>&lt;@listfiles&#8230;&gt; &lt;path_to_extract&gt;<\/p>\n<p>&lt;Commands&gt;<br \/>a&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Add files to archive<br \/>c&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Add archive comment<br \/>cf&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Add files comment<br \/>ch&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Change archive parameters<br \/>cw&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Write archive comment to file<br \/>d&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Delete files from archive<br \/>e&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Extract files to current directory<br \/>f&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Freshen files in archive<br \/>i[par]=&lt;str&gt; Find string in archives<br \/>k&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Lock archive<br \/>l[t,b]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;List archive [technical, bare]<br \/>m[f]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Move to archive [files only]<br \/>p&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Print file to stdout<br \/>r&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Repair archive<br \/>rc&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Reconstruct missing volumes<br \/>rn&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Rename archived files<br \/>rr[N]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Add data recovery record<br \/>rv[N]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Create recovery volumes<br \/>s[name|-]&nbsp;&nbsp;&nbsp;&nbsp; Convert archive to or from SFX<br \/>t&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Test archive files<br \/>u&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Update files in archive<br \/>v[t,b]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Verbosely list archive [technical,bare]<br \/>x&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Extract files with full path<\/p>\n<p>&lt;Switches&gt;<br \/>&#8211;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Stop switches scanning<br \/>ad&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Append archive name to destination path<br \/>ag[format]&nbsp;&nbsp;&nbsp;&nbsp;Generate archive name using the current date<br \/>ap&lt;path&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set path inside archive<br \/>as&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Synchronize archive contents<br \/>av&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Put authenticity verification (registered versions only)<br \/>av-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Disable authenticity verification check<br \/>c-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Disable comments show<br \/>cfg-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Disable read configuration<br \/>cl&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Convert names to lower case<br \/>cu&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Convert names to upper case<br \/>df&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Delete files after archiving<br \/>dh&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Open shared files<br \/>ds&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Disable name sort for solid archive<br \/>e[+]&lt;attr&gt;&nbsp;&nbsp;&nbsp;&nbsp;Set file exclude and include attributes<br \/>ed&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Do not add empty directories<br \/>en&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Do not put &#8216;end of archive&#8217; block<br \/>ep&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Exclude paths from names<br \/>ep1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Exclude base directory from names<br \/>ep3&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Expand paths to full including the drive letter<br \/>f&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Freshen files<br \/>hp[password] Encrypt both file data and headers<br \/>id[c,d,p,q]&nbsp;&nbsp; Disable messages<br \/>ierr&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Send all messages to stderr<br \/>ilog[name]&nbsp;&nbsp;&nbsp;&nbsp;Log errors to file (registered versions only)<br \/>inul&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Disable all messages<br \/>isnd&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Enable sound<br \/>k&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Lock archive<br \/>kb&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Keep broken extracted files<br \/>m&lt;0..5&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set compression level (0-store&#8230;3-default&#8230;5-maximal)<br \/>mc&lt;par&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set advanced compression parameters<br \/>md&lt;size&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Dictionary size in KB (64,128,256,512,1024,2048,4096 or A-G)<br \/>ms[ext;ext]&nbsp;&nbsp; Specify file types to store<br \/>n&lt;file&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Include only specified file<br \/>n@&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Read file names to include from stdin<br \/>n@&lt;list&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Include files in specified list file<br \/>o+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Overwrite existing files<br \/>o-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Do not overwrite existing files<br \/>ol&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Save symbolic links as the link instead of the file<br \/>o&#114;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Rename files automatically<br \/>ow&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Save or restore file owner and group<br \/>p[password]&nbsp;&nbsp; Set password<br \/>p-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Do not query password<br \/>r&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Recurse subdirectories<br \/>r0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Recurse subdirectories for wildcard names only<br \/>rr[N]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Add data recovery record<br \/>rv[N]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Create recovery volumes<br \/>s[&lt;N&gt;,v[-],e] Create solid archive<br \/>s-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Disable solid archiving<br \/>sc&lt;chr&gt;&lt;obj&gt; Specify the character set<br \/>sfx[name]&nbsp;&nbsp;&nbsp;&nbsp; Create SFX archive<br \/>si[name]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Read data from standard input (stdin)<br \/>sl&lt;size&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Process files with size less than specified<br \/>sm&lt;size&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Process files with size more than specified<br \/>t&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Test files after archiving<br \/>ta&lt;date&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Process files modified after &lt;date&gt; in YYYYMMDDHHMMSS format<br \/>tb&lt;date&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Process files modified before &lt;date&gt; in YYYYMMDDHHMMSS format<br \/>tk&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Keep original archive time<br \/>tl&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set archive time to latest file<br \/>tn&lt;time&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Process files newer than &lt;time&gt;<br \/>to&lt;time&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Process files older than &lt;time&gt;<br \/>ts&lt;m,c,a&gt;[N] Save or restore file time (modification, creation, access)<br \/>u&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Update files<br \/>v&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Create volumes with size autodetection or list all volumes<br \/>v&lt;size&gt;[k,b] Create volumes with size=&lt;size&gt;*1000 [*1024, *1]<br \/>ver[n]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;File version control<br \/>vn&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Use the old style volume naming scheme<br \/>vp&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Pause before each volume<br \/>w&lt;path&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Assign work directory<br \/>x&lt;file&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Exclude specified file<br \/>x@&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Read file names to exclude from stdin<br \/>x@&lt;list&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Exclude files in specified list file<br \/>y&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Assume Yes on all queries<br \/>z[file]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Read archive comment from file<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u9996\u5148\u8bf4\u660e\uff0c\u6b64\u65b9\u6cd5\u4e3a\u4e60\u60ef\u547d\u4ee4\u884c\u65b9\u5f0f\u7684\u7528\u6237\u5199\u7684\uff0c\u5982\u679c\u4f60\u4e0d\u559c\u6b22\u4f7f\u7528comm&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17],"tags":[],"class_list":["post-326","post","type-post","status-publish","format-standard","hentry","category-Linux"],"_links":{"self":[{"href":"https:\/\/www.poloo.org\/index.php?rest_route=\/wp\/v2\/posts\/326","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.poloo.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.poloo.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.poloo.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.poloo.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=326"}],"version-history":[{"count":0,"href":"https:\/\/www.poloo.org\/index.php?rest_route=\/wp\/v2\/posts\/326\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.poloo.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=326"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.poloo.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=326"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.poloo.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=326"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}