Linux中怎么解压rar文件
这篇文章主要讲解了“Linux中怎么解压rar文件”,文中的讲解内容简单清晰,易于学习与理解,下面请大家跟着小编的思路慢慢深入,一起来研究和学习“Linux中怎么解压rar文件”吧!
RAR是一种专利文件格式,用于数据压缩与归档打包,其主要优点是可以把文件压缩目标分割到多个文件,并且很容易从这样的分割的压缩文件解压出源文件。
我们进入rarlab网站,进行下载 rar for linux x64
2. 使用 tar 命令 解压 (*.tar 用 tar –xvf )➜Downloadstar-xvfrarlinux-x64-5.6.0.tar.gz3. 进入文件夹make (需要 管理员权限)
➜rarcatmakefile####################################################################InstallingRARexecutables,configurationfilesandSFXmodules##toappropriatedirectories####################################################################PREFIX=/usr/localinstall:mkdir-p$(PREFIX)/binmkdir-p$(PREFIX)/libcprarunrar$(PREFIX)/bincprarfiles.lst/etccpdefault.sfx$(PREFIX)/lib%
如果不进行make 需要在命令所在的文件夹执行命令,或者把文件夹加入环境变量中。
4. 最后,可以使用 unrar 进行解压, 使用 rar 命令,进行压缩。➜~unrarx[file]
我们 可以直接输入 unrar 查看帮助
➜rar./unrarUNRAR5.60freewareCopyright(c)1993-2018AlexanderRoshalUsage:unrar--eExtractfileswithoutarchivedpathsl[t[a],b]Listarchivecontents[technical[all],bare]pPrintfiletostdouttTestarchivefilesv[t[a],b]Verboselylistarchivecontents[technical[all],bare]xExtractfileswithfullpath-Stopswitchesscanning@[+]Disable[enable]filelistsadAppendarchivenametodestinationpathag[format]GeneratearchivenameusingthecurrentdateaiIgnorefileattributesapSetpathinsidearchivec-Disablecommentsshowcfg-DisablereadconfigurationclConvertnamestolowercasecuConvertnamestouppercasedhOpensharedfilesepExcludepathsfromnamesep3ExpandpathstofullincludingthedriveletterfFreshenfilesid[c,d,p,q]DisablemessagesierrSendallmessagestostderrinulDisableallmessageskbKeepbrokenextractedfilesnAdditionallyfilterincludedfilesn@Readadditionalfiltermasksfromstdinn@Readadditionalfiltermasksfromlistfileo[+|-]Settheoverwritemodeol[a]Processsymboliclinksasthelink[absolutepaths]orRenamefilesautomaticallyowSaveorrestorefileownerandgroupp[password]Setpasswordp-DonotquerypasswordrRecursesubdirectoriessc[obj]SpecifythecharactersetslProcessfileswithsizelessthanspecifiedsmProcessfileswithsizemorethanspecifiedtaProcessfilesmodifiedafterinYYYYMMDDHHMMSSformattbProcessfilesmodifiedbeforeinYYYYMMDDHHMMSSformattnProcessfilesnewerthantoProcessfilesolderthants[m|c|a]Saveorrestorefiletime(modification,creation,access)uUpdatefilesvListallvolumesver[n]FileversioncontrolvpPausebeforeeachvolumexExcludespecifiedfilex@Readfilenamestoexcludefromstdinx@ExcludefileslistedinspecifiedlistfileyAssumeYesonallqueries
其他解压缩命令:
1、*.tar用tar–xvf解压2、*.gz用gzip-d或者gunzip解压3、*.tar.gz和*.tgz用tar–xzf解压4、*.bz2用bzip2-d或者用bunzip2解压5、*.tar.bz2用tar–xjf解压6、*.Z用uncompress解压7、*.tar.Z用tar–xZf解压8、*.rar用unrare解压9、*.zip用unzip解压
感谢各位的阅读,以上就是“Linux中怎么解压rar文件”的内容了,经过本文的学习后,相信大家对Linux中怎么解压rar文件这一问题有了更深刻的体会,具体使用情况还需要大家实践验证。这里是亿速云,小编将为大家推送更多相关知识点的文章,欢迎关注!
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。