1ARJ(1)                           Arj Software                           ARJ(1)
2
3
4

NAME

6       arj - Archiver for .arj files
7

SYNOPSIS

9       arj command [-switch[-|+|option]] archive[.arj] [base directory] [!list
10       name|path name|wildcard name]
11

COMMANDS

13       ac     Add Chapter to chapter archive.
14
15       cc     Convert archive to Chapter archive.
16
17       dc     Delete last Chapter from archive.
18
19       a      Add files to archive.
20
21       b      execute Batch or dos command.
22
23       c      Comment archive files.
24
25       d      Delete files from archive.
26
27       e      Extract files from archive.
28
29       f      Freshen files in archive.
30
31       g      Garble files in archive.
32
33       i      check Integrity of the arj program.
34
35       j      Join archives to archive
36
37       k      remove obsolete bacKup files.
38
39       l      List contents of archive.
40
41       m      Move files to archive.
42
43       n      reName files in archive.
44
45       o      Order files in archive.
46
47       p      Print files to standard output.
48
49       q      recover damaged arj file.
50
51       r      Remove paths from filenames.
52
53       s      Sample files to screen with pause.
54
55       t      Test integrity of archive.
56
57       u      Update files to archive.
58
59       v      Verbosely list contents of archive.
60
61       w      Where are text strings in archive.
62
63       x      eXtract files with full pathname.
64
65       y      copY archive with new options.
66

SWITCHES

68       c      skip time-stamp Check
69
70       e      Exclude paths from names
71
72       f      Freshen existing files
73
74       g      Garble with password
75
76       i      with no progress Indicator
77
78       m      with Method 0, 1, 2, 3, 4
79
80       n      only New files (not exist)
81
82       r      Recurse subdirectories
83
84       u      Update files (new and newer)
85
86       v      enable multiple Volumes
87
88       w      assign Work directory
89
90       x      eXclude selected files
91
92       y      assume Yes on all queries
93
94       hk     enable ARJ-PROTECT damage protection
95

DETAILED SWITCHES

97       -      Disables switch char
98
99       +      Inhibits ARJ_SW usage
100              +var: set environment variable
101
102       @      Set 1 token per response file line
103
104       !      Set list char (!)
105
106       &      Set batch critical error handler
107
108       #      Select files by number
109
110       $      Add/extract volume label
111              $A: add/extract label to drive A
112
113       a      Allow any file Attribute
114              a1: any files, directories and UNIX special files
115
116       b      Backup changed files
117              b1: Backup changed, reset archive bits
118              b2: only reset archive bits
119              b3: reset archive bit during restore
120              b4: do not restore bits, reset arc
121              b5: do not restore any file attributes
122
123       c      Skip time-stamp Check
124
125       d      Delete added files asks permission before deleting
126              d1: Delete without permission (same as arj m)
127              d2: Truncate instead of deleting
128
129       e      Exclude paths from names
130              e1: Exclude base dir from names
131
132       f      Freshen existing files
133              f1: Freshen with OLDER files
134              f2: Freshen with DIFFERENT files
135              f3: Freshen with CRC mismatched files
136
137       g      Garble with password
138              gstew: garble with password stew
139              g?: prompt for password
140
141       i      Show no progress Indicator
142              i1: show bar graph Indicator
143              i2: show percentage and bar graph
144              i3: total progress percentage
145              i4: total progress bar graph
146              i5: total percentage and bar graph
147              i6: total percentage and file graph
148
149       k      Keep a .bak of arj archive
150
151       l      Create List_name file
152              lnames.list: create names.list
153
154       m      With Method 0, 1, 2, 3, 4
155              m0: store (no compression)
156              m1: good compression (default)
157              m2: less memory and compression
158              m3: FAST! less compression
159              m4: FASTEST! least compression
160
161       n      Only New files (not exist)
162
163       o      On or after YYYYMMDDHHMMSS
164              o:       on today
165              o19901225: on/after 12/25/1990
166              ob: Before YYYYMMDDHHMMSS
167              ob:       before today
168              ob19901225: before 12/25/1990
169              od: no older than N Days
170              od5: five or less days old
171              oa: After YYYYMMDDHHMMSS (last access)
172              oa:       on today
173              oa19901225: after 12/25/1990
174              oab: Before YYYYMMDDHHMMSS (last access)
175              oab:      before today
176              oab19901225: before 12/25/1990
177              oc: After YYYYMMDDHHMMSS (created)
178              oc:       on today
179              oc19901225: after 12/25/1990
180              ocb: Before YYYYMMDDHHMMSS
181              ocb:      before today
182              ocb19901225: before 12/25/1990
183
184       p      Match using full Pathnames
185              p1: match Pathname with subdirs
186
187       q      Query on each file
188
189       r      Recurse subdirectories
190
191       s      Set archive time-Stamp to newest
192              s1: save original time-Stamp
193              s2: set archive time-Stamp
194              s3: save both original time-Stamps
195
196       t      Set file Type (default 0)
197              t0: set binary file type
198              t1: set C text file type
199              t1f: force C text file type
200              t1g: set C text with graphics
201
202       u      Update files (new + newer)
203              u1: Update files (new + OLDER)
204              u2: Update files (new + different)
205              u3: Update files (new + CRC mismatch)
206
207       v      Enable multiple Volumes
208              v360: build 362000 byte volumes
209              v50K: build 50000 byte volumes
210              va: auto-detect space available
211              vd/tmp/*: delete /tmp/*
212              ve: use alternate volume naming
213              vi: inhibit diskette change test
214              vr50K: reserve 50000 bytes of space on first volume
215              vs: provide command prompt
216              vscmd: execute cmd before each vol
217              vv: beep between volumes
218              vw: keep Whole files in volumes
219              vz: provide command with no echo
220              v360,v720,v1200,v1440: abbrevs Volume options may be in any order
221                     except s and z which must be last
222
223       w      Assign Work directory
224              w/tmp: use /tmp as work directory
225
226       x      eXclude selected files
227              x*.sh: exclude *.sh files
228              x!names: exclude files in names multiple exclusions are allowed
229
230       y      Assume Yes on all queries except diskette volume prompts
231                  Use this switch for batch mode
232
233       z      Supply archive comment file _ Convert filenames to lower case
234              zarc.cmt: use arc.cmt for comments
235              z/dev/null: use to strip comments
236

SHIFTED SWITCHES

238       h#     Append date string to name
239              h#1: append time string to name
240              h#2: append DHHMMSS to name (custom: h#{Y,M,D,N,h,m,s})
241              h#YYYY-MMDD: append YYYY-MMDD
242
243       h$     Try to use longnames (Win2000)
244
245       h2     Obsolete synonym for -2 group of options
246
247       ha     Ignore readonly Attribute
248
249       hb     Select by file attribute/type
250              a - archive bit set
251              b - archive bit clear
252              r - readonly
253              s - system
254              h - hidden
255              d - directory
256              n - normal file, not d,h,r,s,c,l
257              c - chapter label
258              l - volume label
259              f - abbrev for n,d,r,s,h
260              u - UNIX special files
261              w - win95 long filenames
262              hb: select all types
263              hbsh: select hidden, system only
264              hbd: select dirs only
265
266       hc     Execute Command at arj start
267              hcclear: execute clear
268
269       he     Skip test of security Envelope
270              he1: set error on security Envelope
271
272       hf     Set short filenames only
273              hf1: set longnames in file comment or extract with w95lname.nnn
274              hf2: use long filenames in DOS
275              hf3: set longnames in file comment using shortname wildcards
276              hf4: set all files archived in Windows as Windows long filenames
277
278       hg     Specify garble module filename
279              hgarjcrypt.so: set arjcrypt.so as name of garble module
280              hg!: specify use of 40 bit encryption
281
282       hi     Detailed display in Index files
283
284       hk     Build data protection record
285
286       hk     Default amount of recovery data
287              hk1: more recovery data
288              hk9: maximum amount of recovery data
289                   Disable ARJ-PROTECT when used with the "y" command
290
291       hl     Return error for Listfile error
292
293       hm     Increase file list capacity
294              hm!: redirect -hm temp file
295              hm! : move temp file to XMS mem
296              hm!/tmp : move temp file to /tmp
297
298       hn     Specify non-existent filespec
299              hn####: set #### as filespec
300
301       ho     Only extract files with matches
302              ho1: Only extract files without matches
303
304       hq     Ignore open access error on adds
305              hq1: ignore open not found error on adds
306              hq2: ignore access and not found on adds
307
308       hr     Try to ignore archive errors
309
310       hs     Disable file Sharing
311
312       ht     Set Target directory
313              ht/destdir
314
315       hu     Allow Update of volume archives
316
317       hv     Check for arj version
318
319       hw     Scroll save search filename display
320              hw1: display only filenames with matches
321
322       hx     Set default archive extensions
323              hx.arj.sdn
324
325       hy     set arj32 to use ANSI codepage set arj to extract ANSI  codepage
326              archive
327              hy1: force arj32 to use OEM codepage
328              hy2: force arj32 to use ANSI codepage
329
330       hz     Create an ARJ-SECURITY envelope
331
332       j#     Store only CRC and not the file
333              j#1: store only date, size, attributes
334              j#2: restore file attributes
335              j#3: restore file dates
336              j#4: restore file attributes and dates
337
338       j$     Do not process file DTA and DTC
339
340       ja     Set P command to display ANSI
341              ja1: inhibit the display of comments
342
343       jb     Set chapter backup processing
344              jb0: clear chapter archive status
345              jb*: select all chapter backup files
346
347       jc     Exit after Count of files
348              jc5: exit after 5 files
349              jc nam1 nam2: exit after 2 files
350
351       jd     Ensure free Disk space
352              e -jd50K: skip file if<50000 free
353              l -jd1000: set error if<1000 free
354
355       je     Create self-extracting archive
356              je1: create SFXJR archive
357
358       jf     Store/use Full specified path
359              jf1: store/use path minus drive
360
361       jg     [OBSOLETE]
362              jg1: [OBSOLETE]
363
364       jh     Set Huffman buffer size
365              jh65535: set to 65535 bytes (max)
366              jh2048: set to 2048 bytes (min)
367
368       ji     Create Index file
369              jiindex.file: create index.file
370
371       jk     Keep temp archive on error
372
373       jl     Display only filespecs
374
375       jm     Set Maximum compression mode
376              jm1: set faster Maximum compression
377
378       jn     Restart volumes at fileName
379              jn/bin/test: restart at /bin/test
380              jn: get restart information from previously written index file
381
382       jo     Query when updating archive file
383              jo: extract to unique Output names
384              jo1: extract to unique Output names keeping file extension
385
386       jp     Pause after each screenful
387              jp50: pause, set page size to 50
388
389       jq     Set string parameter
390              jqstring: set parameter to string
391
392       jr     Recover broken archive files
393              jr1: Recover badly broken archive files
394
395       js     Store  archives  by  suffix (default is arj, arc, lzh, pak, rar,
396              zip, zoo, j, and uc2).
397              js.zoo: store only .zoo files
398
399       jt     Test temporary archive by CRC
400              jt1: Test CRC and file contents
401              jt2: Test only added file contents
402              jt3: Test only file date-time and size
403
404       ju     Translate UNIX style paths
405
406       jv     Set Verbose display
407              jv1: set special verbose list mode
408
409       jw     Set extract output filename
410              jwnew.file: output to new.file
411
412       jx     Start at eXtended position
413              jx10000: start at position 10000
414
415       jy     Suppress queries assuming Yes
416              a - skip append query
417              c - skip create directory query
418              d - skip delete files query
419              k - skip disk space available query
420              n - skip new filename prompt
421              o - skip overwrite file query
422              r - erase all type-ahead before query
423              s - skip scanned enough text query
424              v - skip proceed to next volume query
425              y - accept single character Y/N/A/Q
426              jycny: skip create, new name queries in single character
427                      input mode
428
429       jz     Supply file for file comment
430              jzfile.cmt: use file.cmt for comments
431              jz/dev/null: use to strip file comments
432
433       2a     Serialize names on extraction
434
435       2b     [UNIX] restrict to Block devices
436              2b or 2b.: current device only
437              2b-/usr: all except where /usr is located
438
439       2c     [OS/2, NT] handle Crit. EAs only
440
441       2d     arj/DOS compatibility mode
442              2d1: (OBSOLETE) comment compatibility
443
444       2e     [OS/2, NT] filter Extended attrs
445              2e.*: pack/unpack system EAs only
446              2e.ICON?: pack/unpack icons only
447              2e: disable EAs handling
448
449       2f     Disable comment serialization across multiple volumes
450
451       2h     [UNIX] Disable hardlink handling
452              2h1: Extract hardlinks as symlinks
453
454       2k     Skip century display in dates
455              2k1: use a non-ambiguous date display format
456
457       2l     [OS/2, NT] treat .LONGNAME EAs as filenames when possible
458
459       2o     [UNIX] store/restore file ownership
460              2o1: Store numeric UID/GID values 2o2: Same  as  -2o  but  saves
461              group as well
462
463       2p     Specify process Priority class
464              OS/2, NT: 2p1...2p4
465              Linux, FreeBSD: 2p1...2p41
466
467       2r     Revert directory Recursion order
468
469       2s     [UNIX] preserve Symlink properties
470
471       2x     [OS/2, NT]: eXclude extended attrs
472              2x.ICON?: ignore icons
473

DEFAULTS

475       Save path information in archive
476       Save long filenames
477       Save/restore extended attributes
478       Save/restore file date-time created and accessed in Win95 and OS/2
479       Save timestamps in the UNIX format under UNIX-like operating systems
480       Don't save drive and root in path information
481       Display comment ANSI sequences with built-in display handler
482       Prompt before overwriting output files
483       Use method 1 compression
484       Use binary mode
485       Use ! as list file symbol
486       The "ac" command is an abbreviation for "u -u2 -jb"
487       The "cc" command is an abbreviation for "y -jb"
488       The "dc" command is an abbreviation for "d -jb"
489
490       Under  Win32,  arj uses OEM codepage by default.  The "-hy" option sets
491       arj to use the ANSI codepage which is the Windows graphical environment
492       default.   arj/Win32 self-extracting archives should be built using the
493       "-hy" option.
494
495       To ensure compatibility with previous versions of arj, the "-2d" param‐
496       eter has to be specified when archiving under UNIX.
497

USER PROMPT RESPONSES

499       Yes    yes
500
501       No     no
502
503       Quit   abort out of arj
504
505       Always always assume yes for current type of query
506
507       Skip   always assume no for current type of query
508
509       Global always assume yes for all queries except diskette volume prompts
510
511       Command
512              prompt for and execute one system command
513

ENVIRONMENT

515       ARJ_SW = -jyry -jv -i1
516       ARJ_SW = /etc/arj.cfg
517

EXIT STATUS

519       0      Success
520
521       1      Warning  (specified  file to add to archive not found, specified
522              file to list, extract, etc., not found, or answering  negatively
523              to "OK to proceed to next volume..." prompt)
524
525       2      Fatal error
526
527       3      CRC error (header or file CRC error or bad password)
528
529       4      ARJ-SECURITY error or attempt to update an ARJ-SECURED archive
530
531       5      Disk full or write error
532
533       6      Cannot open archive or file
534
535       7      Simple user error (bad parameters)
536
537       8      Not enough memory
538
539       9      Not an arj archive
540
541       10     [DOS] XMS memory error (read or write)
542
543       11     User control break
544
545       12     Too many chapters (over 250)
546

EXAMPLES

548       Add files minus directory structure:
549              arj a -e archive *
550
551       Add two files to archive:
552              arj a archive name1 name2
553
554       Add files to archive with verification:
555              arj a -jt archive *
556
557       Add files with maximum compression:
558              arj a -jm archive *
559
560       Add several directories of files:
561              arj a archive ... dir1 dir2 dir3
562
563       Add thousands of files to an archive:
564              arj a -hm1 -r archive *
565
566       Add a chapter to an archive:
567              arj ac archive /foo/dir/* -r
568
569       Comment archive header only:
570              arj c archive -zcmt.fil
571
572       Convert standard archive to chapter:
573              arj cc archive
574
575       Convert chapter archive to standard:
576              arj y archive -jb0
577
578       Delete the last chapter from an archive:
579              arj dc archive *
580
581       Strip archive comment only:
582              arj c archive -z/dev/null
583
584       Extract files from archive:
585              arj e archive
586
587       Extract maintaining directory structure:
588              arj x archive
589
590       Extract new and newer files without query:
591              arj e archive -u -y
592
593       Extract subdirectory from archive:
594              arj e archive subdir/* -p1
595
596       Extract files to directory:
597              arj x archive destdir/ *
598
599       Extract files to directory:
600              arj x archive * -htdestdir
601
602       Extract files to directory with space:
603              arj x archive "Some Dir/ "
604
605       Extract files to directory with space:
606              arj x archive "-htSome Dir"
607
608       Extract a Win95 archive to plain DOS:
609              arj x archive -hf2
610
611       List files in archive:
612              arj l archive
613
614       Move files to archive:
615              arj m archive *.tex
616
617       Move files from archive:
618              arj e -d archive *.tex
619
620       Recover files from a damaged archive:
621              arj x archive -jr
622
623       Test integrity of files in archive:
624              arj t archive
625
626       Test multiple arj archives:
627              arj t *.arj -hr
628
629       Add files to a multiple volume archive:
630              arj a -va /floppy/archive *
631
632       Create up to 999 archive volumes:
633              arj a -va /floppy/archive.001
634
635       Extract from a multiple volume archive:
636              arj x -v /floppy/archive
637
638       Create a multiple volume self-extractor:
639              arj a -va -je /floppy/archive *
640
641       Convert archive to self-extractor:
642              arj y -je1 archive
643
644       Backup dir /foo to dir /floppy:
645              arj a /floppy/backup /foo -a1 -b2 -r -vvas -w/foo -js -jt -hk
646
647       Restore backup on dir /floppy to dir /foo:
648              arj x /floppy/backup /foo -vv -y
649

SELF-EXTRACTOR ARCHIVES

651       If  the  first  two  characters  of  an arj comment are "))" in a self-
652       extractor, then the self-extractor will accept the appended line as its
653       command line.
654
655       ")) -o" will force the self-extractor to overwrite existing files.
656

SEE ALSO

658       rearj(1), unarj(1), arj-register(1).
659

AUTHOR

661       This  manual page was written by Ola Lundqvist <opal@debian.org> in pod
662       format, then converted by Guillem Jover <guillem@debian.org>  to  nroff
663       format.
664
665
666
6673.10                              2004-10-18                            ARJ(1)
Impressum