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
or Rename files automatically
ow Save or restore file owner and group
p[password] Set password
p- Do not query password
r Recurse subdirectories
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
to Process files older than
ts[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 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
2
看到如此复杂的参数是不是号头大,其实我们只需要几个参数就好了, 1.查看rar包中的内容: #unrar l .rar 或者 #unrar v .rar 2.测试rar包是否能解压成功: #unrar t .rar 3.解压到当前文件夹: #unrar e .rar 4.解压到指定文件夹: #unrar x *.rar /tmp