linux ubuntu如何解压rar文件?unrar
Posted Dontla
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了linux ubuntu如何解压rar文件?unrar相关的知识,希望对你有一定的参考价值。
文章目录
安装
sudo apt install unrar
查看使用方法
注:archived paths 存档路径
unrar
[root@ubuntu /home/yg/H7 HEOP]6# unrar
UNRAR 5.30 beta 2 freeware Copyright (c) 1993-2015 Alexander Roshal
Usage: unrar <command> -<switch 1> -<switch N> <archive> <files...>
<@listfiles...> <path_to_extract\\>
<Commands>
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 (解压指定路径下的文件)
<Switches>
- 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<path> 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<file> Additionally filter included files
n@ Read additional filter masks from stdin
n@<list> 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<chr>[obj] Specify the character set
sl<size> Process files with size less than specified
sm<size> Process files with size more than specified
ta<date> Process files modified after <date> in YYYYMMDDHHMMSS format
tb<date> Process files modified before <date> in YYYYMMDDHHMMSS format
tn<time> Process files newer than <time>
to<time> Process files older than <time>
ts<m,c,a>[N] 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<file> Exclude specified file
x@ Read file names to exclude from stdin
x@<list> Exclude files listed in specified list file
y Assume Yes on all queries
[root@ubuntu /home/yg/H7 HEOP]7#
示例:解压HEOP-V2.3.0-211230开发指南.rar
压缩包到当前目录下的./HEOP/
unrar x HEOP-V2.3.0-211230开发指南.rar ./HEOP/
示例:解压到当前目录
unrar e xxx.rar
以上是关于linux ubuntu如何解压rar文件?unrar的主要内容,如果未能解决你的问题,请参考以下文章