200字范文,内容丰富有趣,生活中的好帮手!
200字范文 > linux rar加压_Linux环境中解压缩rar文件

linux rar加压_Linux环境中解压缩rar文件

时间:2021-05-10 15:50:42

相关推荐

linux rar加压_Linux环境中解压缩rar文件

Linux系统中默认没法解压rar文件,之前碰到过zip文件,可以使用zip和unzip来搞定,虽然也不是默认的,但是安装起来比较方便,直接yum就OK了,今天来看一下如何安装rar解压工具。

下图中看到,有两个rar,但是我一直解压不了,惨的一批:

按照我一贯的作风,是非要去官网下载的,但是这次时间有限,不知道找的这个是不是官网:/download.htm,转了好半天才出来,就在我准备开VPN的时候,竟然加载完了,据说这个东西好像还不是免费的,也不知道我找的这个能用多久。。。

下载的是一个tart.gz文件,解压之后,里面有两个shell脚本:

直接make:

还以为又是噼里啪啦一堆日志,没想到竟然这么少,而且看日志信息,似乎就是拷贝了两个shell脚本到/usr/local/bin下面。

现在就可以使用unrar命令进行解压了:unrar e

[root@iZbp16sksdu04rk7tj72xdZ 0425]# unrar e 8b668ce8-7a3c-4fe5-b3e8-6c0797ce7176.rar

UNRAR 5.71 beta 2 freeware Copyright (c) 1993- Alexander Roshal

Extracting from 8b668ce8-7a3c-4fe5-b3e8-6c0797ce7176.rar

Extracting pom.xml OK

Extracting BaseController.java OK

Extracting BookController.java OK

Extracting SchoolController.java OK

Extracting StudentController.java OK

Extracting BaseDao.java OK

Extracting BookDao.java OK

Extracting BookDaoImpl.java OK

Extracting SchoolDaoImpl.java OK

Extracting StudentDaoImpl.java OK

Extracting SchoolDao.java OK

Extracting StudentDao.java OK

Extracting Book.java OK

Extracting School.java OK

Extracting Student.java OK

Extracting BookService.java OK

Extracting BookServiceImpl.java OK

Extracting SchoolServiceImpl.java OK

Extracting StudentServiceImpl.java OK

Extracting SchoolService.java OK

Extracting StudentService.java OK

Extracting applicationContext.xml OK

Extracting hibernate.cfg.xml OK

Extracting Book.hbm.xml OK

Extracting School.hbm.xml OK

Extracting Student.hbm.xml OK

Extracting struts.xml OK

Extracting wolff.sql OK

Extracting book_list.jsp OK

Extracting book_maintain.jsp OK

Extracting index.jsp OK

Extracting jquery-1.9.0.min.js OK

Extracting school_list.jsp OK

Extracting school_maintain.jsp OK

Extracting student_list.jsp OK

Extracting student_maintain.jsp OK

Extracting web.xml OK

All OK

[root@iZbp16sksdu04rk7tj72xdZ 0425]#

rar命令相关的用法如下:

UNRAR 5.71 beta 2 freeware Copyright (c) 1993- 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[mcao] Process files modified after YYYYMMDDHHMMSS date

tb[mcao] Process files modified before YYYYMMDDHHMMSS date

tn[mcao] Process files newer than time

to[mcao] Process files older than time

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

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。