1
我們經常在windows下面見到rar文件,而在linux下面rar文件怎么辦呢?
我們喜歡的ark軟件無法解壓rar文件,出現了下面的問題:
我們應該使用linux下面的rar軟件來解壓,用rarlinux,可以在網上下載到rpm包,
然后rpm -ivh xxx.rpm就可以安裝好了,
加壓我們要用rar,解壓我們用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
<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
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<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
2
看到如此復雜的參數是不是號頭大,其實我們只需要幾個參數就好了,
**1.查看rar包中的內容:
unrar l *.rar
或者
unrar v *.rar
2.測試rar包是否能解壓成功:
unrar t *.rar
3.解壓到當前文件夾:
unrar e *.rar
4.解壓到指定文件夾:
unrar x *.rar /tmp
**