Вы находитесь на странице: 1из 37

~~~~~~~~

RAR 5.00
~~~~~~~~~~~~~~~~~~~

=-=-=-=-=-=-=-=-=-=-=-=-=-=-
RAR !
-=-=-=-=-=-=-=-=-=-=-=-=-=-=


~~~~

RAR R A R

RAR RAR .rar ) ZIP


.zip ) RAR Windows
WinRAR
( RAR
ZIP

WinRAR RAR
WinRAR

rar.txt
RAR(rar.exe Windows )winrar.chm WinRAR
(winrar.exe)


~~~~~~~~

Unix RAR home /etc .rarrc

( HOME
)

Windows RAR rar.ini rar.exe

switches= RAR

switches=-m5 -s


~~~~~~~~


b"RAR" 4.

Unix :

RAR='-s -md1024'
export RAR

RAR 1024KB 4

RAR :


RAR


~~~~~~~~

-ilog RAR

-ilog

- rarfiles.lst
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

rarfiles.lst RAR


-
$default
';'.

Windows RAR %APPDATA%\WinRAR ,


Unix - home /etc

- ;
-



rarfiles.lst
}
*.cpp f*.cpp
f*.cpp

RAR
~~~~~~~~~~~~~~

RAR <> [ -<> ] <> [ <@...> ]


[ <...> ] [ <\> ]

( ) RAR


(
) RAR 4
RAR

(


//
backup.lst:

c:\work\doc\*.txt //
c:\work\image\*.bmp //
c:\work\misc

rar a backup @backup.lst

,
( @)

, RAR -sc< >l





RAR *.*4

RAR


)RAR .rar *

.rar )
)
*. *.*

Unix RAR
Shell

RAR *.asm
:

rar e '*.rar' '*.asm'

1) *.hlp help.rar :

rar a help *.hlp

2) 362000
:

rar a -r -v362 -s -sfx -rr save

(*)

3)
-r

Bitmaps RAR
Pictures.rar :

rar a Pictures.rar Bitmaps

4)

-r 4

Bitmaps
-r:

rar a Pictures.rar Bitmaps\*

c

32767

rar c distrib.rar

-z[] :
info.txt :

rar c -zinfo.txt dummy

ch


-cl, -cu, -tl


'ch'

rar ch -tl files.rar

cw

5 -sc

1) rar cw oldarch comment.txt

2) rar cw -scuc arc unicode.txt

3) rar cw arc

(,

'x'

rar e -or html.rar *.css css\

html.rar *.css css


(

i[i|c|h|t]=< >

i - ();

c - ;

h - ;

t - ANSI, Unicode OEM ( Windows );



i< > 4

i=< >

't'  ict=


1) rar "ic=first level" -r c:\*.rar *.txt

c:\*.rar *.txt
"first level"

2) rar ih=f0e0aeaeab2d83e3a9 -r e:\text

e:\text rar
f0 e0 ae ae ab 2d 83 e3 a9
k

rar k final.rar

l[t[a],b]
[[], ]

'l'
*

'lt'
OS

'lta' NTFS

'lb'

-v : rar l -v
vol.part1.rar

'lt', 'lta' 'lb'


'vt',
'vta' 'vb'

m[f]
'f'/'-ed'



-inul 4 RAR

r {

('rr')
l 4


fixed.arcname.rar 'arcname'

( )

rebuilt.arcname.rar,

'arcname'

,

destpath\

rar r buggy.rar c:\fixed\

buggy.rar 'c:\fixed'

rc (.rev )
'rar rc backup.part03.rar'

'rv'

rn

rar rn <> <1> <1> ... <N>


<
N>

rar rn data.rar readme.txt readme.bak info.txt info.bak

data.rar readme.txt readme.bak

info.txt info.bak



4 )
:

rar rn data.rar *.txt *.bak

*.txt *.bak

RAR







rr[N]
( )





r

(repair)


RAR 4.x RAR 5.0

RAR 4.x XOR


4 44 .x


rr rr1000 1000

p % rr5prr5% 5%
Windows .bat .cmd

rr5%%
rr5%'%'



p %

RAR 4.x 512






l
512

524288

4.x <>/256 + < >


*512 <

RAR 5.0 Reed-Solomon 4 l



f
RAR 4.x ,


RAR 4.x

RAR 5.0 512



4 %p RAR 5.0
RAR rr5 rr5p 5%


RAR 5.0

100%

RAR 5.0





4.x 5.0






} ,
RAR 5.0 RAR 4.x


rrWinRAR
3%

rar rr5p arcname

5%

rv[N] (.rev)


:
rar rv3 data.part01.rar

RAR 303
3.rev
RAR 4.x
255
RAR 5.0 65535

4

RAR REV
RAR 4 RAR RAR
REV

RAR 5.0
4 RAR RAR

RAR REV
8
RAR K

<N>

RAR
.rev
RAR
:

rar rv15% data.part01.rar

RAR rc


.rev



*.bad volname.part03.rar
volname.part03.rar.bad

s[] (
default.sfx ) Windows default.sfx
RAR.exe Unix home
/usr/lib /usr/local/lib

s- RAR
4

t
4

Unix:

rar t '*'

rar t -r *

Unix:

rar t -r '*'

v[t[a],b]
[[], ]

'v'

*

BLAKE2sp }

'vt'
OS

'vta' NTFS

'vb'

-v : rar v -v
vol.part1.rar

'vt', 'vta' 'vb'


'lt',
'lta' 'lb'

1) 10cents.txt

rar x -c- dime 10cents.txt

2) docs.rar *.txt c:\docs

rar x docs.rar *.txt c:\docs\

3) docs.rar

rar x docs.rar

():

-?

--

RAR

- '--'

'-StrangeName'

RAR a -s -- -StrangeName

-@[+] []

RAR @




RAR @


@ RAR
@


-@[+] @

-@

-@+

'@home'

rar t -@ notes.rar @home

-ac
( Windows).

-ad

RAR


5

rar x -ad *.rar data\

RAR 'data'
-ag[]

"YYYYMMDDHHMMSS"

:

Y -
M -
MMM (JanFeb.)
-
W ( )
-
A ( -1 - 7)
-
D
-
E
-
H -
M (
-
)
I ()
-
S -
N RAR
-


'N'

RAR

N1

,
WW 2 YYYY 4

'+'


'{' '}'

-ag
5
-ag
RAR
-log

1) YYYYMMDDHHMMSS

rar a -ag backup

2) DD-MMM-YY

rar t -agDD-MMM-YY backup


3) YYYYMMDDHHMM 'backup'

rar a -ag+YYYYMMDDHHMM backup

4) YYYY-WW-A

rar a -agYYYY{year}-WW{week}-A{wday} backup

5) YYYYMMDD


-agyymmdd-nn

rar a -agYYYYMMDD-NN backup

-ao
( Windows ).

C:
'f:backup'

rar a -r -ac -ao f:backup c:\*.*

-ai


RAR


Windows Unix

-ap

' r eadme.txt' ' r elease'


'DOCS\ENG':

rar a -apDOCS\ENG release readme.txt


'ENG' :

rar x -apDOCS release DOCS\ENG\*.*

-as


-u()

rar a -u -as backup sources\*.cpp

'backup.rar' 'sources'*.cpp



:

-cfg- RAR

-cl

-cu

-c-

-df

'A' 'M'


-dh

-dr

Windows

-ds

-dw

0 ,






SSD

-ed



, RAR

(, ,
)

,

-ed 'm' -df RAR

-ee )

) OS/2

-en ""

RAR 5.0

RAR "
"
)

l
}



-ep


-ep1

tmp
'test'
'tmp\'

rar a -ep1 -r test tmp\*

cd tmp
rar a -r ..\test
cd ..

-ep2 )(

).

-ep3 )
Windows

()
-ep3




4 UNC \\server\share
__server\share



:

rar a -ep3 -r backup.rar c:\ d:\ e:\

4 :

rar x -ep3 backup.rar

-ep3



(

-e[+]<>

<> ( '0' ) ( '0x' )


, <>+, <
>
AND
0

Windows DSHA



Unix D V 4

-e<atr> -e+<atr>

1)

rar a -r -e+d dirs

2) :

rar a -esh files

-f


"a
'f''m''mf''-f' '-
f'
'x''e'

3) :

rar x -er files

-hp[p]

-p[p] -p
(


-hp r

rar a -hpfGzq5yKw secret report.txt

report.txt
'fGzq5yKw'

-ht[b|c]
[BLAKE2,CRC32]


RAR

WinRAR CRC32 4RAR 5.0


BLAKE2 CRC32

BLAKE2 -htb CRC32 -htc CRC32


WinRAR -htb
-htc

CRC32 32 CRC32

}
CRC32

BLAKE2sp 256
} BLAKE2sp


BLAKE2sp
f CRC32

BLAKE2sp -htb

( -hp) RAR 5.0

5

BLAKE2sp CRC32

RAR 5.0 , -ma


vtlt

:
rar a -ma -htb lists.rar *.lst

BLAKE2 *.lst lists.rar

-id[c,d,p,q]

-idc

-idd

-idp

-idq
,

,
-idcdp

-ieml[.][ ]
E-mail Windows



E-mail

MAPI E-mail4(
E-mail
MAPI)

E-mail
E-mail

'.' -iemlE-
mail
5
E-mail

-ierr

-ilog[]
( ).

RAR rar.log
rar.log-
:

RAR rar.log ""

, :

Unix: .rarlog home ;


Windows: rar.log %APPDATA%\WinRAR

, RAR

UTF-8 -sc<
>g -scag

rar a -ilogc:\log\backup.log backup d:\docs

c:\log\backup.log

-inul

-ioff
Windows

-isnd

-k .

-kb

RAR -kb 4

-log[][=]

''
:

A - RAR

F -

P -






U - Unicode

'A' 'F' 'A'

'' '=' ''



'' RAR rarinfo.log


-log

-ag -v



arcname.txt
RAR -loga=arcname.txt
Windows set /p name=<arcname.txt

1) vollist.txt:

rar a -v100m -loga=vollist.txt volume.rar c:\data

2) Unicode backup.txt:

rar a -ag -logau=backup.txt backup.rar myfiles\*

3) vollist.txt
filelist.txt:

rar t -log=vollist.txt -logf=filelist.txt volume.part01.rar

-m<n> :

-m0

-m1 ()
-m2
-m3 ()
-m4 ()
-m5 ()

RAR-m3()

-ma[4|5]

RAR RAR 4.x -ma5 -ma RAR 5.0

-ma5 -ma4
RAR
RAR 4.x

-mc<>




RAR

-mc[1][:2][][+ -]

<>

A - ;
C - (RGB);
D - ;
E - 32- x86 Intel ;
I - 64- Intel Itanium ;
T -

RAR 5.0 'D' 'E'

'+' ' -'


RAR

-mc-

<1> <2>

<1>
5
(1 - 31)RAR 3
#}16? RAR !

<2>

32 x86 Intel
64 Intel Itanium
(RGB):

<1> <2>

<1> PPM +( 2 - 63)




4
PPM

<2> PPM -1)



(128
PPM



1) -mc1a+ 8

2) -mc10:40t+ ,

10 40 MB
3) -mc12t
1212
RAR

4) -mct- -mcd-

-md<n>[k,m,g]

()

RAR 4.x : 64 KB, 128 KB, 256 KB,


512 KB, 1 MB, 2 MB, 4 MB

RAR 5.0 : 128 KB, 256 KB, 512 KB,


1 MB, 2 MB, 4 MB, 8 MB, 16 MB, 32 MB, 64 MB, 128 MB, 256 MB,
512 MB, 1 GB

'k', 'm' 'g'


KBMB GB,

-md64m 4 64MB
MB -md64m
-md64

RAR 6 512 MB
1 GB 64 RAR
32 64
(1 GB

RAR

RAR 4.x 4 MBRAR 5.0 32 MB

RAR a -s -ma -md128 lib *.dll

128 MB RAR 5.0

-ms[]

<> )
-msrar;zip;jpg RAR RARZIP
JPG -ms*.rar;
-ms -msrar -mszip
*.zip;*.jpg
-msrar;zip.

Unix -ms (
Unix
shell 5
-ms<>

<> -ms )
:

7z, ace, arj, bz2, cab, gz, jpeg, jpg, lha, lzh, mp3,
rar, taz, tgz, xz, z, zip

-mt<>

Window

> 0 16
<
0RAR

<
> 0RAR

<>



-mt l

-mt RAR 

-n<f>

4
-n

Cn

Project Info
*.txt
*.lst :

rar a -r text Project\*.txt Project\*.lst Info\*.txt Info\*.lst

-n:

rar a -r -n*.txt -n*.lst text Project Info

-n@<>

-n<>

-n@

rar a -r -n@inclist.txt text Project Info


-oc NTFS Windows

NTFS RAR

-oc

-oh tt

NTFS tt
tt

WinARR t


t
t

tt
t t

RAR 5.0 -ma 4

-oi[0-4][:<>]

-oi0 ( -oi-)



4 RAR -oi

4 -oi1 ( -oi) WinRAR




-oi
-md<n> -s

-oi

-oi2 -oi1


-oi3 -oi4 RAR



-oi3
4 -oi4

,

<> <>
64

KB
< >

-oi1 -oi2 RAR 5.0 -ma


1) rar a -oi -ma archive


archive.rar

2) rar a -oi3:1000000 -r dummy c:\photo\*.jpg

c:\photo 1000000

*.jpg

-ol tt

tt Windows
t
t

Unix RAR 4.x RAR 5.0


Windows RAR 5.0

Windows t

-or

'filename(N).txt' 'filename.txt'

'N' 1

-os NTFS Win32

NTFS
Windows 2000XP
Windows

45 RAR
4
NTFS

-ow

Unix RAR

Windows

NTFS Windows


-o[+|-] :

-o
();

-o+
();

-o-

-o+

-o-

-p[p]
<p>

rar a -pmyhoney secret1 *.txt

*.txt"myhoney".

-p-

4
4 RAR

-qo[-|+]
[|]

RAR



WinRAR

5
RAR 5.0


ll
2

WinRAR

/


4 -qo -qo WinRAR


5 WinRAR


-qo+




-qo-

-r :
aufmxetpvlccf s.

'a''u''f''m'

xetpvlccf s

-r-

-r RAR -r-


-r
RAR


RAR -r-

rar a -r- arc dirname

'dirname' :

rar a -r- arc c:\

c:

-r0 -r
'a''u''f''m' (
((

'*' '?'
'dirname' -r0
-r-

rar a -r0 docs.rar *.doc readme.txt

*.doc readme.txt
docs.rar -r RAR

readme.txt

-ri<p>[:<s>]
Windows RAR
RAR
4

0 15 <p> 0
1
15 -

<s> 0 1000 ) RAR


(

{

RAR10 ms

rar a -r -sfx -ri0:10 backup *.*

-rr[N]

-rv[N] 4
'rv[N]'

-s

l




4



)
-ds
, rarfiles.lst 4

:
512KB
sources.rar
.asm:

rar a -s -md512 sources.rar *.asm -r

-s<N>

-s <N>


-sc<>[]

, :

U - Unicode;
A - ANSI Windows ;
O - OEM (DOS) Windows ;

Unicode FFFE FEFF Unicode , RAR

ASCII


, :

G - -ilog ;
L - ;
C -


, , -scolc '' ,
'
'


-z[] ,

"cw" l

1) rar a -scol data @list

OEM 'list'

2) rar c -scuc -zcomment.txt data

comment.txt Unicode

3) rar cw -scuc data comment.txt

comment.txt Unicode

-se )

-s )




-sfx[]
b (
default.sfx )Windows

default.sfx rar.exe Unix - home


/usr/lib /usr/local/lib

rar a -sfxwincon.sfx myinst

wincon.sfx
(SFX)

-si[]
stdin()


stdin
-v

type Tree.Far | rar a -siTree.Far tree.rar

'type Tree.Far' 'Tree.Far' .

-sv 5


RAR
)
(

RAR


RAR

RAR

-sl<>
< >
<>

-sm<>
< >
<>

-sv- 5

-s-

-t

-ta<>

YYYYMMDDHHMMSS'-'
':':
-ta2001-11-20 -ta20011120000000 "2001
1120000"

-tb<>
-ta<>

-tk

RAR

-tl
RAR

-tn<>
:

[<ndays>d][<nhours>h][<nminutes>m][<nseconds>s]

-tn15d 415-tn2h30m 4

230

-to<>
-tn<>

-ts<m,c,a>[N]
()

-tsm
4 RAR -tsc - tsa -
RAR 4.x 0 4
41 1 2 -
0.0065536
, 3 - 0.00002564+ NTFS
0.0000001 0-

(})
-tsm4 -tsa4 -tsc4 19

RAR 4()

RAR 5.0 1
1NTFS
2,34

RAR -tsm4 -tsc0 -tsa0



( 0) -tsc -tsa
4
RAR
4 -tsm-



-tsm4 -tsa4 -tsc4 -ts4, -ts+ -ts -ts- 4
;

RAR

FAT } Unix 1 NTFS


0.0000001

Windows
Unix -

1) rar a -ts backup

2) rar x -tsa backup

-tsm RAR

3) rar a -tsm1 -tsc1 backup

; -tsm1 RAR

-u
'a -u'
'u''-
u''m''mf'
'-u''x''e'

-v




-v
<> u

'V'
'L'
RAR RAR
5

-v<>[k|b|f|m|M|g|G]
b=<>*1000 [*1024 | *1]
<> (1000)(1024
)
"k" 4(1024) "b"
(1024 x 1024) -"m" - "M"G - 'g',
- 'G' "f"
36072012001440 2880

v1.5g 1.5
GB


-v 4

:

rar a -v100k -v200k -v300k arcname

100 KB , 200 KB, 300 KB

: //


'A'

RAR volname.partNNN.rarNNN
RAR 4.x -vn )

.rar ) .r00 .r99 RAR 5.0


-vn )

<>


RAR
:

<>

'd''f''u''s'

'a'

'

'()

'-v' '-
sfx'

rar a -s -v1440 floparch.rar *.*

1440000

-vd

'-vd'

-ver[n]

RAR

'filename;n''n'

-ver rar

(

'rar x arcname'
'rar x arcname file.txt;5'
'file.txt;5'


-ver
RAR

-
ver4
RAR
'rar x -ver5 arcname'

-vn

RAR 'volname.partNNN.rar'NNN RAR


4.x -vn
)

.rar ) .r00 .r99 RAR 5.0
-vn )
-vp

RAR
RAR

-w<p> <p>4

-x<f>
<f>



'-
x'4





filename
'filename' 'filename'

"*\filename" "filename"

\4
-x\




4
(Windows '\'Unix '/')

"*tmp*\" "*tmp*"
"*\tmp\"
'tmp'

1) rar a -r -x*.jpg -x*.avi rawfiles

*.jpg *.avi

2) rar a -r -x*\temp\ savec c:\*

C: 'temp' 'temp'

3) rar x -x*.txt docs

docs.rar *.txt
-x@<lf> -x@

rar a -x@exlist.txt arch *.exe

-y

-z[f] <f>
-sc < f> ,

~~~~

'd','u','f','c','cf'

'a' 44

~~~~~~

RAR
0 0 :

4 'k'

10

11

255

~~~~~~

SFX

(l
)

(c) 1993-2013 Alexander Roshal