rearj(1)

rearj1

Converts other archive formats to .arj files

Usage

rearj {[options] <!listfile(s) | filespec(s) | wildname(s)>}

Overview

The rearj command can repackage other archive formats to arj.

Options

-+

Ignore REARJ_SW variable.

-a[suffix]

Convert archives within archives ("*" for all formats).

-bcommand

Execute command before extracting files.

-ccommand

Execute command on extracted files before counting them.

-d

Delete original archives.

-e

No error switch.

-f

Convert diskette archives.

-g

Skip creation of output archive.

-i[name]

Check integrity of rearj program.

-j

Skip if output archive size is larger than the original.

-k

Skip archive timestamping.

-l[name]

Write append log file (default name is rearj.log).

-m[date]

Select archives before date in YYMMDDHHMMSS format.

-n[date]

Select archives on or after date in YYMMDDHHMMSS format.

-o

Allow overwrite of existing target archive.

-p

Ignore long filenames under Windows 95.

-q

Query for each archive to convert.

-r

Recurse through subdirectories.

-s

Skip verify of file count and total size.

-tsuffix

Create suffix type archives.

-u[bak]

Allow update of archive with backup (default is BAK).

-v

Execute configured command on extracted files.

-wdir

Assign work directory.

-x[!]file

Exclude by filename, wildname, or listfile.

-y[text]

Delete output archive and write text to log (testing mode).

-z

Simulate operation.

Environment

REARJ_SW If set, its value will be used as command line options.

Exit status

0

Success.

1

File not found.

2

File is not a configured archive type.

3

Target archive already exists.

4

Not enough disk space.

5

User skipped or user did not select update option.

6

UNPACK command error.

7

PACK command error.

8

Target cannot support directories.

9

Wrong file count.

10

Wrong total size.

11

Internal archive REARJ error.

12

Rename archive error.

13

Invoked -v command error (found a virus?).

14

Output archive is larger.

Examples

rearj * -r -d

Convert all archives to ARJ format, searching all subdirectories, deleting original archives.

Releases

Unchanged in 12 releases since Debian 3.1 (Sarge).

  1. 3.1–Arch

Author

This manual page was written by Ola Lundqvist <[email protected]> in pod format, then converted by Guillem Jover <[email protected]> to nroff format.

From arj 3.10.22-14 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.