ARJ(1)
๐ arj(1) โ Arj Software ๐
okay bestie, this is the manual page for arj(1) from Arj Software, and it is lowkey giving archive royalty. ๐ No cap, we're gonna get through every single flag together. fr fr. ๐ซถ
โจ NAME โจ
arj โ Archiver for .arj files ๐
๐ฆ SYNOPSIS ๐ฆ
arj command [-switch[-|+|option]] archive[.arj] [base directory] [!list name|path name|wildcard name]
๐ DESCRIPTION ๐
arj is a compression and file archiving utility. It was invented by Robert K. Jung. And yes, ARJ stands for Archived by Robert Jung. Iconic naming behavior, honestly. ๐
๐ COMMANDS ๐
okay so the first thing you pass is a command, and each one is a different flavor of archive magic. Here's the whole menu, no skips:
acโ Add Chapter to chapter archive.ccโ Convert archive to Chapter archive.dcโ Delete last Chapter from archive.aโ Add files to archive.bโ execute Batch or dos command.cโ Comment archive files.dโ Delete files from archive.eโ Extract files from archive.fโ Freshen files in archive.gโ Garble files in archive.iโ check Integrity of the arj program.jโ Join archives to archivekโ remove obsolete bacKup files.lโ List contents of archive.mโ Move files to archive.nโ reName files in archive.oโ Order files in archive.pโ Print files to standard output.qโ recover damaged arj file.rโ Remove paths from filenames.sโ Sample files to screen with pause.tโ Test integrity of archive.uโ Update files to archive.vโ Verbosely list contents of archive.wโ Where are text strings in archive.xโ eXtract files with full pathname.yโ copY archive with new options.
๐ธ SWITCHES ๐ธ
These are the short global vibes you can sprinkle on. No cap, they change how arj behaves:
cโ skip time-stamp Checkeโ Exclude paths from namesfโ Freshen existing filesgโ Garble with passwordiโ with no progress Indicatormโ with Method 0, 1, 2, 3, 4nโ only New files (not exist)rโ Recurse subdirectoriesuโ Update files (new and newer)vโ enable multiple Volumeswโ assign Work directoryxโ eXclude selected filesyโ assume Yes on all querieshkโ enable ARJ-PROTECT damage protection
๐ DETAILED SWITCHES ๐
Okay bestie, this is the part where the manual goes full main character. Every single detailed switch, sub-switch, and tiny option is right here. Do not skip. ๐
-โ Disables switch char+โ Inhibits ARJ_SW usage+varโ set environment variable
@โ Set 1 token per response file line!โ Set list char (!)&โ Set batch critical error handler#โ Select files by number$โ Add/extract volume label$Aโ add/extract label to drive A
aโ Allow any file Attributea1โ any files, directories and UNIX special files
bโ Backup changed filesb1โ Backup changed, reset archive bitsb2โ only reset archive bitsb3โ reset archive bit during restoreb4โ do not restore bits, reset arcb5โ do not restore any file attributes
cโ Skip time-stamp Checkdโ Delete added files asks permission before deletingd1โ Delete without permission (same as arj m)d2โ Truncate instead of deleting
eโ Exclude paths from namese1โ Exclude base dir from names
fโ Freshen existing filesf1โ Freshen with OLDER filesf2โ Freshen with DIFFERENT filesf3โ Freshen with CRC mismatched files
gโ Garble with passwordgstewโ garble with password stewg?โ prompt for password
iโ Show no progress Indicatori1โ show bar graph Indicatori2โ show percentage and bar graphi3โ total progress percentagei4โ total progress bar graphi5โ total percentage and bar graphi6โ total percentage and file graph
kโ Keep a .bak of arj archivelโ Create List_name filelnames.listโ create names.list
mโ With Method 0, 1, 2, 3, 4m0โ store (no compression)m1โ good compression (default)m2โ less memory and compressionm3โ FAST! less compressionm4โ FASTEST! least compression
nโ Only New files (not exist)oโ On or after YYYYMMDDHHMMSSo:โ on todayo19901225โ on/after 12/25/1990ob:โ Before YYYYMMDDHHMMSSob:โ before todayob19901225โ before 12/25/1990od:โ no older than N Daysod5โ five or less days oldoa:โ After YYYYMMDDHHMMSS (last access)oa:โ on todayoa19901225โ after 12/25/1990oab:โ Before YYYYMMDDHHMMSS (last access)oab:โ before todayoab19901225โ before 12/25/1990oc:โ After YYYYMMDDHHMMSS (created)oc:โ on todayoc19901225โ after 12/25/1990ocb:โ Before YYYYMMDDHHMMSSocb:โ before todayocb19901225โ before 12/25/1990
pโ Match using full Pathnamesp1โ match Pathname with subdirs
qโ Query on each filerโ Recurse subdirectoriessโ Set archive time-Stamp to newests1โ save original time-Stamps2โ set archive time-Stamps3โ save both original time-Stamps
tโ Set file Type (default 0)t0โ set binary file typet1โ set C text file typet1fโ force C text file typet1gโ set C text with graphics
uโ Update files (new + newer)u1โ Update files (new + OLDER)u2โ Update files (new + different)u3โ Update files (new + CRC mismatch)
vโ Enable multiple Volumesv360โ build 362000 byte volumesv50Kโ build 50000 byte volumesvaโ auto-detect space availablevd/tmp/*โ delete /tmp/*veโ use alternate volume namingviโ inhibit diskette change testvr50Kโ reserve 50000 bytes of space on first volumevsโ provide command promptvscmdโ execute cmd before each volvvโ beep between volumesvwโ keep Whole files in volumesvzโ provide command with no echov360,v720,v1200,v1440โ abbrevs Volume options may be in any order except s and z which must be last
wโ Assign Work directoryw/tmpโ use /tmp as work directory
xโ eXclude selected filesx*.shโ exclude *.sh filesx!namesโ exclude files in names multiple exclusions are allowed
yโ Assume Yes on all queries except diskette volume prompts- Use this switch for batch mode
zโ Supply archive comment file _ Convert filenames to lower casezarc.cmtโ use arc.cmt for commentsz/dev/nullโ use to strip comments
๐ SHIFTED SWITCHES ๐
okay so these are the shifted switches โ the ones that start with a letter instead of a dash. no cap, they're giving secret-menu energy, and every single one is here. let's go ๐ซถ
h#โ Append date string to nameh#1โ append time string to nameh#2โ appendDHHMMSSto name (custom:h#{Y,M,D,N,h,m,s})h#YYYY-MMDDโ appendYYYY-MMDD
h$โ Try to use longnames (Win2000)h2โ Obsolete synonym for-2group of optionshaโ Ignore readonly Attributehbโ Select by file attribute/typeaโ archive bit setbโ archive bit clearrโ readonlysโ systemhโ hiddendโ directorynโ normal file, not d,h,r,s,c,lcโ chapter labellโ volume labelfโ abbrev for n,d,r,s,huโ UNIX special fileswโ win95 long filenameshb:โ select all typeshbshโ select hidden, system onlyhbdโ select dirs only
hcโ Execute Command at arj starthcclearโ executeclear
heโ Skip test of security Envelopehe1โ set error on security Envelope
hfโ Set short filenames onlyhf1โ set longnames in file comment or extract withw95lname.nnnhf2โ use long filenames in DOShf3โ set longnames in file comment using shortname wildcardshf4โ set all files archived in Windows as Windows long filenames
hgโ Specify garble module filenamehgarjcrypt.soโ setarjcrypt.soas name of garble modulehg!โ specify use of 40 bit encryption
hiโ Detailed display in Index fileshkโ Build data protection recordhkโ Default amount of recovery datahk1โ more recovery datahk9โ maximum amount of recovery data. Disable ARJ-PROTECT when used with theycommand
hlโ Return error for Listfile errorhmโ Increase file list capacityhm!โ redirect-hmtemp filehm!โ move temp file to XMS memhm!/tmpโ move temp file to/tmp
hnโ Specify non-existent filespechn####โ set####as filespec
hoโ Only extract files with matchesho1โ Only extract files without matches
hqโ Ignore open access error on addshq1โ ignore open not found error on addshq2โ ignore access and not found on adds
hrโ Try to ignore archive errorshsโ Disable file Sharinghtโ Set Target directoryht/destdirโ set target directory to/destdir
huโ Allow Update of volume archiveshvโ Check for arj versionhwโ Scroll save search filename displayhw1โ display only filenames with matches
hxโ Set default archive extensionshx.arj.sdnโ set default archive extensions
hyโ set arj32 to use ANSI codepage set arj to extract ANSI codepage archivehy1โ force arj32 to use OEM codepagehy2โ force arj32 to use ANSI codepage
hzโ Create an ARJ-SECURITY envelopej#โ Store only CRC and not the filej#1โ store only date, size, attributesj#2โ restore file attributesj#3โ restore file datesj#4โ restore file attributes and dates
j$โ Do not process file DTA and DTCjaโ Set P command to display ANSIja1โ inhibit the display of comments
jbโ Set chapter backup processingjb0โ clear chapter archive statusjb*โ select all chapter backup files
jcโ Exit after Count of filesjc5โ exit after 5 filesjc nam1 nam2โ exit after 2 files
jdโ Ensure free Disk spacee -jd50Kโ skip file if <50000 freel -jd1000โ set error if <1000 free
jeโ Create self-extracting archiveje1โ create SFXJR archive
jfโ Store/use Full specified pathjf1โ store/use path minus drive
jgโ [OBSOLETE]jg1โ [OBSOLETE]
jhโ Set Huffman buffer sizejh65535โ set to 65535 bytes (max)jh2048โ set to 2048 bytes (min)
jiโ Create Index filejiindex.fileโ createindex.file
jkโ Keep temp archive on errorjlโ Display only filespecsjmโ Set Maximum compression modejm1โ set faster Maximum compression
jnโ Restart volumes at fileNamejn/bin/testโ restart at/bin/testjnโ get restart information from previously written index file
joโ Query when updating archive filejo:โ extract to unique Output namesjo1โ extract to unique Output names keeping file extension
jpโ Pause after each screenfuljp50โ pause, set page size to 50
jqโ Set string parameterjqstringโ set parameter tostring
jrโ Recover broken archive filesjr1โ Recover badly broken archive files
jsโ Store archives by suffix (default isarj,arc,lzh,pak,rar,zip,zoo,j, anduc2).js.zooโ store only.zoofiles
jtโ Test temporary archive by CRCjt1โ Test CRC and file contentsjt2โ Test only added file contentsjt3โ Test only file date-time and size
juโ Translate UNIX style pathsjvโ Set Verbose displayjv1โ set special verbose list mode
jwโ Set extract output filenamejwnew.fileโ output tonew.file
jxโ Start at eXtended positionjx10000โ start at position 10000
jyโ Suppress queries assuming Yesaโ skip append querycโ skip create directory querydโ skip delete files querykโ skip disk space available querynโ skip new filename promptoโ skip overwrite file queryrโ erase all type-ahead before querysโ skip scanned enough text queryvโ skip proceed to next volume queryyโ accept single character Y/N/A/Qjycnyโ skip create, new name queries in single character input mode
jzโ Supply file for file commentjzfile.cmtโ usefile.cmtfor commentsjz/dev/nullโ use to strip file comments
2aโ Serialize names on extraction2bโ [UNIX] restrict to Block devices2bor2b.โ current device only2b-/usrโ all except where/usris located
2cโ [OS/2, NT] handle Crit. EAs only2dโ arj/DOS compatibility mode2d1โ (OBSOLETE) comment compatibility
2eโ [OS/2, NT] filter Extended attrs2e.*โ pack/unpack system EAs only2e.ICON?โ pack/unpack icons only2eโ disable EAs handling
2fโ Disable comment serialization across multiple volumes2hโ [UNIX] Disable hardlink handling2h1โ Extract hardlinks as symlinks
2kโ Skip century display in dates2k1โ use a non-ambiguous date display format
2lโ [OS/2, NT] treat.LONGNAMEEAs as filenames when possible2oโ [UNIX] store/restore file ownership2o1โ Store numeric UID/GID values2o2โ Same as-2obut saves group as well
2pโ Specify process Priority class- OS/2, NT:
2p1...2p4 - Linux, FreeBSD:
2p1...2p41
- OS/2, NT:
2rโ Revert directory Recursion order2sโ [UNIX] preserve Symlink properties2xโ [OS/2, NT]: eXclude extended attrs2x.ICON?โ ignore icons
โจ DEFAULTS โจ
okay so these are the defaults, bestie โ the factory settings, the starter pack, the no-extra-flags vibe. ๐
- Save path information in archive
- Save long filenames
- Save/restore extended attributes
- Save/restore file date-time created and accessed in Win95 and OS/2
- Save timestamps in the UNIX format under UNIX-like operating systems
- Don't save drive and root in path information
- Display comment ANSI sequences with built-in display handler
- Prompt before overwriting output files
- Use method 1 compression
- Use binary mode
- Use
!as list file symbol - The
accommand is an abbreviation foru -u2 -jb - The
cccommand is an abbreviation fory -jb - The
dccommand is an abbreviation ford -jb
Under Win32, arj uses OEM codepage by default. The -hy option sets arj to use the ANSI codepage which is the Windows graphical environment default. arj/Win32 self-extracting archives should be built using the -hy option.
To ensure compatibility with previous versions of arj, the -2d parameter has to be specified when archiving under UNIX.
๐ธ USER PROMPT RESPONSES ๐ธ
when arj asks you stuff, here's what you can say back. bestie, these are the vibes:
- Yes โ yes
- No โ no
- Quit โ abort out of arj
- Always โ always assume yes for current type of query
- Skip โ always assume no for current type of query
- Global โ always assume yes for all queries except diskette volume prompts
- Command โ prompt for and execute one system command
๐ฆ ENVIRONMENT ๐ฆ
ARJ_SW=-jyry -jv -i1ARJ_SW=/etc/arj.cfg
๐ EXIT STATUS ๐
these are the numbers arj throws at you when it's done. each one is a whole mood, so read them carefully:
0โ Success1โ Warning (specified file to add to archive not found, specified file to list, extract, etc., not found, or answering negatively to"OK to proceed to next volume..."prompt)2โ Fatal error3โ CRC error (header or file CRC error or bad password)4โ ARJ-SECURITY error or attempt to update an ARJ-SECURED archive5โ Disk full or write error6โ Cannot open archive or file7โ Simple user error (bad parameters)8โ Not enough memory9โ Not an arj archive10โ [DOS] XMS memory error (read or write)11โ User control break12โ Too many chapters (over 250)
๐ EXAMPLES ๐
ok bestie this is the part you're actually here for, the copy-paste buffet ๐ every single one of these is verbatim, no cap, don't let anyone tell you I changed a character.
- Add files minus directory structure:
arj a -e archive *
- Add two files to archive:
arj a archive name1 name2
- Add files to archive with verification:
arj a -jt archive *
- Add files with maximum compression:
arj a -jm archive *
- Add several directories of files:
arj a archive ... dir1 dir2 dir3
- Add thousands of files to an archive:
arj a -hm1 -r archive *
- Add a chapter to an archive:
arj ac archive /foo/dir/* -r
- Comment archive header only:
arj c archive -zcmt.fil
- Convert standard archive to chapter:
arj cc archive
- Convert chapter archive to standard:
arj y archive -jb0
- Delete the last chapter from an archive:
arj dc archive *
- Strip archive comment only:
arj c archive -z/dev/null
- Extract files from archive:
arj e archive
- Extract maintaining directory structure:
arj x archive
- Extract new and newer files without query:
arj e archive -u -y
- Extract subdirectory from archive:
arj e archive subdir/* -p1
- Extract files to directory:
arj x archive destdir/ *
- Extract files to directory:
arj x archive * -htdestdir
- Extract files to directory with space:
arj x archive "Some Dir/ "
- Extract files to directory with space:
arj x archive "-htSome Dir"
- Extract a Win95 archive to plain DOS:
arj x archive -hf2
- List files in archive:
arj l archive
- Move files to archive:
arj m archive *.tex
- Move files from archive:
arj e -d archive *.tex
- Recover files from a damaged archive:
arj x archive -jr
- Test integrity of files in archive:
arj t archive
- Test multiple arj archives:
arj t *.arj -hr
- Add files to a multiple volume archive:
arj a -va /floppy/archive *
- Create up to 999 archive volumes:
arj a -va /floppy/archive.001
- Extract from a multiple volume archive:
arj x -v /floppy/archive
- Create a multiple volume self-extractor:
arj a -va -je /floppy/archive *
- Convert archive to self-extractor:
arj y -je1 archive
- Backup dir /foo to dir /floppy:
arj a /floppy/backup /foo -a1 -b2 -r -vvas -w/foo -js -jt -hk
- Restore backup on dir /floppy to dir /foo:
arj x /floppy/backup /foo -vv -y
๐ฆ SELF-EXTRACTOR ARCHIVES ๐ฆ
ok so here's the little secret handshake ๐ if the first two characters of an arj comment are "))" in a self-extractor, then the self-extractor will accept the appended line as its command line. like it reads your mind. iconic behaviour honestly.
and then the queen of them all:
")) -o" will force the self-extractor to overwrite existing files. that's it, that's the whole trick ๐
๐ SEE ALSO ๐
go read those too, bestie, they're the extended universe ๐ซถ
๐ธ AUTHOR ๐ธ
This manual page was written by Ola Lundqvist <opal@debian.org> in pod format, then converted by Guillem Jover <guillem@debian.org> to nroff format. shoutout to them, fr fr, they carried this whole thing on their backs ๐
and that's a wrap on the whole page, bestie!! ๐ you just read the manual for ARJ version 3.10, dated 2004-10-18 โ vintage but still absolutely slaying, no notes, periodt ๐
โจ go forth and archive responsibly ๐๐ฆ
๐ฆ where this page comes from
- debian bookworm: arj 3.10.22-26 ยท GPL-2.0-or-later
- debian trixie: arj 3.10.22-28 ยท GPL-2.0-or-later
- epel 10: arj 3.10.22-42.el10_0 ยท GPL-2.0-or-later
- epel 9: arj 3.10.22-35.el9 ยท GPL+
- fedora 43: arj 3.10.22-44.fc43 ยท GPL-2.0-or-later
- fedora 44: arj 3.10.22-46.fc44 ยท GPL-2.0-or-later
- nixos 26.05: arj 3.10.22
- nixpkgs unstable: arj 3.10.22
- ubuntu jammy: arj 3.10.22-25 ยท GPL-2.0-or-later
- ubuntu noble: arj 3.10.22-27 ยท GPL-2.0-or-later
- ubuntu questing: arj 3.10.22-28
- ubuntu resolute: arj 3.10.22-29 ยท GPL-2.0-or-later
- ubuntu stonking: arj 3.10.22-29 ยท GPL-2.0-or-later
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms