1 进入网站https://www.rarlab.com/download.htm下载rar for linux x64
2 执行以下语句进行安装

tar zxvf rarlinux-3.8.0.tar.gz
cd rar
make
make install

3 压缩与解压缩演示

解压缩演示:rar x etc.rar ./aa/     :将etc.rar压缩包解压到当前目录下的aa文件件内unrar e etc.rar ./aa/
压缩演示:rar a etc.rar /etc      :将/etc文件夹压缩成etc.rar文件

4 更多命令,使用查询手册

z@z-Lenovo-G40-70:~/Downloads/33$ rar
RAR 5.90 beta 2   Copyright (c) 1993-2020 Alexander Roshal   9 Feb 2020
Trial version             Type 'rar -?' for helpUsage:     rar <command> -<switch 1> -<switch N> <archive> <files...><@listfiles...> <path_to_extract\><Commands>a             Add files to archivec             Add archive commentch            Change archive parameterscw            Write archive comment to filed             Delete files from archivee             Extract files without archived pathsf             Freshen files in archivei[par]=<str>  Find string in archivesk             Lock archivel[t[a],b]     List archive contents [technical[all], bare]m[f]          Move to archive [files only]p             Print file to stdoutr             Repair archiverc            Reconstruct missing volumesrn            Rename archived filesrr[N]         Add data recovery recordrv[N]         Create recovery volumess[name|-]     Convert archive to or from SFXt             Test archive filesu             Update files in archivev[t[a],b]     Verbosely list archive contents [technical[all],bare]x             Extract files with full path<Switches>-             Stop switches scanning@[+]          Disable [enable] file listsad            Append archive name to destination pathag[format]    Generate archive name using the current dateai            Ignore file attributesap<path>      Set path inside archiveas            Synchronize archive contentsc-            Disable comments showcfg-          Disable read configurationcl            Convert names to lower casecu            Convert names to upper casedf            Delete files after archivingdh            Open shared filesds            Disable name sort for solid archivedw            Wipe files after archivinge[+]<attr>    Set file exclude and include attributesed            Do not add empty directoriesen            Do not put 'end of archive' blockep            Exclude paths from namesep1           Exclude base directory from namesep3           Expand paths to full including the drive letterf             Freshen fileshp[password]  Encrypt both file data and headersht[b|c]       Select hash type [BLAKE2,CRC32] for file checksumid[c,d,p,q]   Disable messagesierr          Send all messages to stderrilog[name]    Log errors to fileinul          Disable all messagesisnd[-]       Control notification soundsiver          Display the version numberk             Lock archivekb            Keep broken extracted fileslog[f][=name] Write names to log filem<0..5>       Set compression level (0-store...3-default...5-maximal)ma[4|5]       Specify a version of archiving formatmc<par>       Set advanced compression parametersmd<n>[k,m,g]  Dictionary size in KB, MB or GBms[ext;ext]   Specify file types to storemt<threads>   Set the number of threadsn<file>       Additionally filter included filesn@            Read additional filter masks from stdinn@<list>      Read additional filter masks from list fileo[+|-]        Set the overwrite modeoh            Save hard links as the link instead of the fileoi[0-4][:min] Save identical files as referencesol[a]         Process symbolic links as the link [absolute paths]or            Rename files automaticallyow            Save or restore file owner and groupp[password]   Set passwordp-            Do not query passwordqo[-|+]       Add quick open information [none|force]r             Recurse subdirectoriesr-            Disable recursionr0            Recurse subdirectories for wildcard names onlyrr[N]         Add data recovery recordrv[N]         Create recovery volumess[<N>,v[-],e] Create solid archives-            Disable solid archivingsc<chr>[obj]  Specify the character setsfx[name]     Create SFX archivesi[name]      Read data from standard input (stdin)sl<size>      Process files with size less than specifiedsm<size>      Process files with size more than specifiedt             Test files after archivingta[mcao]<d>   Process files modified after <d> YYYYMMDDHHMMSS datetb[mcao]<d>   Process files modified before <d> YYYYMMDDHHMMSS datetk            Keep original archive timetl            Set archive time to latest filetn[mcao]<t>   Process files newer than <t> timeto[mcao]<t>   Process files older than <t> timets[m,c,a,p]   Save or restore time (modification, creation, access, preserve)u             Update filesv<size>[k,b]  Create volumes with size=<size>*1000 [*1024, *1]ver[n]        File version controlvn            Use the old style volume naming schemevp            Pause before each volumew<path>       Assign work directoryx<file>       Exclude specified filex@            Read file names to exclude from stdinx@<list>      Exclude files listed in specified list filey             Assume Yes on all queriesz[file]       Read archive comment from file

linux中rar压缩包的解压与压缩方法相关推荐

  1. Linux下各种压缩包的解压方法

    Linux下各种压缩包的解压方法 分类: LINUX 2013-05-20 15:56:00 <div class="Blog_con2"><div class= ...

  2. linux中.tar文件怎么解压

    linux中.tar文件怎么解压 1.打包压缩tar -cvf etc.tar /app/etc #打包 tar -zcvf pack.tar.gz pack/ #打包压缩为一个.gz格式的压缩包 t ...

  3. tar文件怎么解压linux,linux中.tar文件怎么解压

    linux中.tar文件怎么解压 1.打包压缩tar -cvf etc.tar /app/etc #打包 tar -zcvf pack.tar.gz pack/ #打包压缩为一个.gz格式的压缩包 t ...

  4. linux怎么解压tar文件,linux中.tar文件怎么解压

    linux中.tar文件怎么解压 1.打包压缩tar -cvf etc.tar /app/etc #打包 tar -zcvf pack.tar.gz pack/ #打包压缩为一个.gz格式的压缩包 t ...

  5. rhel-server-7.5-x86_64-dvd.iso镜像下载及rar压缩包的解压

    主机名为server1 [root@server1 ~]# ls rhel-server-7.5-x86_64-dvd.part1.rar    rarlinux-5.6.1.tar.gz   rhe ...

  6. linux中.sql.gz文件解压,linux下tar.gz、tar、bz2、zip等解压缩、压缩命令小结

    本文介绍了linux下的压缩程式tar.gzip.gunzip.bzip2.bunzip2.compress .uncompress. zip. unzip.rar.unrar等程式,以及如何使用它们 ...

  7. Linux系统rar格式怎么解压,如何在linux下解压缩rar格式的文件压缩包

    这样方便解压,一般来说没有理由要用rar.关于 linux上unzip命令有空细讲, 本节讲下,如何让linux支持解压缩rar文件 一 .系统环境 1.1 系统环境 实验环境一: CentOS re ...

  8. arpr选定的文件非rar压缩包_python解压压缩包

    压缩包类型:.gz .tar .tgz .zip .rar gz: 即gzip.通常仅仅能压缩一个文件.与tar结合起来就能够实现先打包,再压缩. tar: linux系统下的打包工具.仅仅打包.不压 ...

  9. linux中gz文件怎么解压,Linux解压gz文件的命令使用教程及详解

    今天小编给带来一篇linux解压方面的资料 Linux解压gz文件的命令有:gunzip命令.gzip命令.tar命令.下面本篇文章就来带大家了解一下 gz文件是一种压缩文件,以.gz或者.tar.g ...

最新文章

  1. 计算机视觉系统中图像究竟经历了哪些“折磨”
  2. C++模板之核心:typename
  3. php接收dup,TCP与DUP简单对比
  4. web.xml初始化spring容器
  5. 网络工程师历年试题解析(PDF文字版)2004-2009
  6. 自制一个 简易jQuery 的 API
  7. Spring Cloud 中 分布式事务解决方案 -- 阿里GTS的使用
  8. UE4 HTC VIVE - 番外篇 - 局域网联机(二)
  9. 【华为云技术分享】MongoDB经典故障系列二:如何限制最大连接数?
  10. siamese改进_[CVPR2019]我对Siamese网络的一点思考(SiamMask)
  11. ztree同级只显示一个节点
  12. 《锁王创造营》 第一关:初出茅庐
  13. UI设计师需要熟记的45个快捷键Windows、Mac
  14. JavaAndroid(2、Android开发环境搭建)
  15. stm32——使用串口下载程序
  16. Cortex-M3 (NXP LPC1788)之外部中断操作
  17. YYLabel 自动布局 不换行 numberOfLines无效
  18. 交互设计理论之格式塔理论与四大法则
  19. 消费评价网 | 线上保险消费调查报告 虚假宣传多 捆绑销售坑人
  20. Facebook CTF 2019 Products Manager

热门文章

  1. 数据库的垂直拆分和水平拆分
  2. github搜索html源码,三款十分简洁的自适应多引擎搜索主页源码_GitHub开源项目
  3. Anki 插入编程代码
  4. 减治算法——两个序列的中位数
  5. 如何在KeyShot中设置材质模板?
  6. 美化页面代码--(如果浏览器页面有代码片段,可以添加高亮美化)
  7. zabbix监控部署与设置报警发送邮件
  8. Lucene(2.4.1)技术研究(5)--IndexWrite类源代码解析(三)FSDirecto
  9. 【附源码】计算机毕业设计java医院住院部管理系统设计与实现
  10. OTA升级后应用未更新问题分析