良许Linux教程网 Linux命令大全 Linux解压rar的方法步骤

Linux解压rar的方法步骤

Linux解压rar的方法步骤有哪些呢?这里良许教程网小编就给大家介绍下Linux解压rar的方法,希望对你有所帮助。
网上下载rar 压缩文件的使用,在linux在我们需要对其进行解压缩,这个时候,我们需要安装 rar相关的文件,来进行解压缩。

Linux学习
Linux学习
  1. 下载

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

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

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

  1. 进入文件夹make (需要 管理员权限)
1   rar cat makefile 
2   ###################################################################
3   # Installing RAR executables, configuration files and SFX modules #
4   # to appropriate directories                   #  
5   ###################################################################
6   PREFIX=/usr/local
7   install:
8    mkdir -p $(PREFIX)/bin
9    mkdir -p $(PREFIX)/lib
10   cp rar unrar $(PREFIX)/bin
11   cp rarfiles.lst /etc
12   cp default.sfx $(PREFIX)/lib%

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

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

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

1   rar ./unrar
2   UNRAR 5.60 freeware   Copyright (c) 1993-2018 Alexander Roshal
3   Usage:   unrar  - -
4            
5   
6    e       Extract files without archived paths
7    l[t[a],b]   List archive contents [technical[all], bare]
8    p       Print file to stdout
9    t       Test archive files
10    v[t[a],b]   Verbosely list archive contents [technical[all],bare]
11    x       Extract files with full path
12   
13    -       Stop switches scanning
14    @[+]     Disable [enable] file lists
15    ad      Append archive name to destination path
16    ag[format]  Generate archive name using the current date
17    ai      Ignore file attributes
18    ap   Set path inside archive
19    c-      Disable comments show
20    cfg-     Disable read configuration
21    cl      Convert names to lower case
22    cu      Convert names to upper case
23    dh      Open shared files
24    ep      Exclude paths from names
25    ep3      Expand paths to full including the drive letter
26    f       Freshen files
27    id[c,d,p,q]  Disable messages
28    ierr     Send all messages to stderr
29    inul     Disable all messages
30    kb      Keep broken extracted files
31    n    Additionally filter included files
32    n@      Read additional filter masks from stdin
33    n@   Read additional filter masks from list file
34    o[+|-]    Set the overwrite mode
35    ol[a]     Process symbolic links as the link [absolute paths]
36    or      Rename files automatically37
37    ow      Save or restore file owner and group
38    p[password]  Set password
39    p-      Do not query password
40    r       Recurse subdirectories
41    sc[obj] Specify the character set
42    sl   Process files with size less than specified
43    sm   Process files with size more than specified
44    ta   Process files modified after  in YYYYMMDDHHMMSS format
45    tb   Process files modified before  in YYYYMMDDHHMMSS format
46    tn

其他解压缩命令:

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 解压

以上就是良许教程网为各位朋友分享的Linux解压rar的使用方法。想要了解更多Linux相关知识记得关注公众号“良许Linux”,或扫描下方二维码进行关注,更多干货等着你!
公众号

本文由 良许Linux教程网 发布,可自由转载、引用,但需署名作者且注明文章出处。如转载至微信公众号,请在文末添加作者公众号二维码。
良许

作者: 良许

良许,世界500强企业Linux开发工程师,公众号【良许Linux】的作者,全网拥有超30W粉丝。个人标签:创业者,CSDN学院讲师,副业达人,流量玩家,摄影爱好者。
上一篇
下一篇

发表评论

联系我们

联系我们

公众号:良许Linux

在线咨询: QQ交谈

邮箱: yychuyu@163.com

关注微信
微信扫一扫关注我们

微信扫一扫关注我们

关注微博
返回顶部