Linux中解压rar文件具体方法

RAR是一种专利文件格式,用于数据压缩与归档打包,其主要优点是可以把文件压缩目标分割到多个文件,并且很容易从这样的分割的压缩文件解压出源文件。

image-20211017110557818

1. 下载

我们进入rarlab网站,进行下载 rar for linux x64

2. 使用 tar 命令 解压 (*.tar 用 tar –xvf )

  Downloads tar -xvf rarlinux-x64-5.6.0.tar.gz

3. 进入文件夹make (需要 管理员权限)

  rar cat makefile
#################################################################### Installing RAR executables, configuration files and SFX modules ## to appropriate directories                                      ####################################################################

PREFIX=/usr/local

install:
   mkdir -p $(PREFIX)/bin
   mkdir -p $(PREFIX)/lib
   cp rar unrar $(PREFIX)/bin
   cp rarfiles.lst /etc
   cp default.sfx $(PREFIX)/lib%        

如果不进行make 需要在命令所在的文件夹执行命令,或者把文件夹加入环境变量中。

4. 最后,可以使用 unrar 进行解压, 使用 rar 命令,进行压缩。

  ~ unrar x [file]

我们 可以直接输入 unrar 查看帮助

  rar ./unrar

UNRAR 5.60 freeware      Copyright (c) 1993-2018 Alexander Roshal

Usage:     unrar  - -  
              


 e             Extract files without archived paths
 l[t[a],b]     List archive contents [technical[all], bare]
 p             Print file to stdout
 t             Test archive files
 v[t[a],b]     Verbosely list archive contents [technical[all],bare]
 x             Extract files with full path


 -             Stop switches scanning
 @[+]          Disable [enable] file lists
 ad            Append archive name to destination path
 ag[format]    Generate archive name using the current date
 ai            Ignore file attributes
 ap      Set path inside archive
 c-            Disable comments show
 cfg-          Disable read configuration
 cl            Convert names to lower case
 cu            Convert names to upper case
 dh            Open shared files
 ep            Exclude paths from names
 ep3           Expand paths to full including the drive letter
 f             Freshen files
 id[c,d,p,q]   Disable messages
 ierr          Send all messages to stderr
 inul          Disable all messages
 kb            Keep broken extracted files
 n       Additionally filter included files
 n@            Read additional filter masks from stdin
 n@      Read additional filter masks from list file
 o[+|-]        Set the overwrite mode
 ol[a]         Process symbolic links as the link [absolute paths]
 or            Rename files automatically
 ow            Save or restore file owner and group
 p[password]   Set password
 p-            Do not query password
 r             Recurse subdirectories
 sc[obj]  Specify the character set
 sl      Process files with size less than specified
 sm      Process files with size more than specified
 ta      Process files modified after  in YYYYMMDDHHMMSS format
 tb      Process files modified before  in YYYYMMDDHHMMSS format
 tn      Process files newer than
 to      Process files older than
 ts[m|c|a]     Save or restore file time (modification, creation, access)
 u             Update files
 v             List all volumes
 ver[n]        File version control
 vp            Pause before each volume
 x       Exclude specified file
 x@            Read file names to exclude from stdin
 x@      Exclude files listed in specified list file
 y             Assume Yes on all queries

其他解压缩命令:

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 用 unrar e解压
9、*.zip 用 unzip 解压

文章来源网络,作者:管理,如若转载,请注明出处:https://shuyeidc.com/wp/219782.html<

(0)
管理的头像管理
上一篇2025-04-14 06:42
下一篇 2025-04-14 06:43

相关推荐

  • 骨干网络体系结构能干什么?骨干网络体系结构的作用

    骨干网络体系结构是现代信息社会的“超级高速公路网”,它通过分层设计、冗余备份和智能调度,确保海量数据在全球范围内高速、稳定、安全地传输,是支撑云计算、物联网及人工智能应用的底层基石,想象一下,如果你把互联网比作一个巨大的城市交通系统,那么骨干网络就是连接各个城市的主干道和立交桥,没有它,你的每一次微信发送、每一……

    2026-06-18
    0
  • 高io数据库可以干什么用?高io数据库适合什么场景

    高IO数据库的核心价值在于通过极高的读写吞吐量,解决海量数据场景下的性能瓶颈,是支撑高并发交易、实时分析及大规模内容分发的关键基础设施,在数字化转型的深水区,数据不再仅仅是静态的记录,而是流动的资产,传统的机械硬盘或普通SSD早已无法满足现代应用对速度的极致追求,高IO(Input/Output)数据库,就是那……

    2026-06-18
    0
  • 高io服务器性能如何?高io服务器适合什么场景

    高IO服务器并非单纯指代某种硬件,而是指在随机读写、高并发连接及小文件处理场景下,具备极致IOPS(每秒输入输出操作次数)和低延迟特性的计算资源,它是支撑现代高并发应用稳定运行的核心基石,在2026年的数字化浪潮中,业务负载早已从简单的静态页面展示演变为复杂的实时数据处理,许多开发者在排查系统瓶颈时,往往忽略了……

    2026-06-18
    0
  • 隔离网络空间哪里便宜?国内隔离网络空间价格

    隔离网络空间并没有统一的“便宜”标准,其成本高度取决于物理隔离等级、带宽需求及安全合规要求,通常物理网闸方案初期投入较高但长期运维成本低,而逻辑隔离方案虽初期便宜但存在潜在安全风险,建议根据业务敏感度选择混合隔离架构以平衡成本与安全,在数字化时代,企业构建独立网络环境的需求日益增长,但“隔离网络空间哪里便宜”这……

    2026-06-18
    0
  • 骨干网络体系结构设备为何故障?常见原因有哪些

    骨干网络体系结构设备故障的核心原因通常归结为硬件老化、配置错误、物理链路中断及外部攻击四大类,其中电源模块失效与光模块性能衰减是占比最高的隐性故障源,骨干网作为数字经济的“大动脉”,其稳定性直接关乎国计民生,当核心路由器或交换机出现丢包、震荡甚至宕机时,运维人员往往面临巨大的压力,很多人第一反应是检查软件配置……

    2026-06-18
    0

发表回复

您的邮箱地址不会被公开。必填项已用 * 标注