| 1 | .TH @TRANSFORMED_PACKAGE_NAME@ 1 "@MAN_DATE@" "version v@VERSION@" |
| 2 | . |
| 3 | .SH NAME |
| 4 | @TRANSFORMED_PACKAGE_NAME@ \- an efficient statistical file compressor and spiritual successor |
| 5 | to bzip2 |
| 6 | |
| 7 | .SH SYNOPSIS |
| 8 | .B @TRANSFORMED_PACKAGE_NAME@ |
| 9 | .RB [ " \-BbcdehftV " ] |
| 10 | [ |
| 11 | .I "filenames \&..." |
| 12 | ] |
| 13 | . |
| 14 | .P |
| 15 | .B bz3cat |
| 16 | is equivalent to |
| 17 | .B @TRANSFORMED_PACKAGE_NAME@ \-dc |
| 18 | .P |
| 19 | .B bunzip3 |
| 20 | is equivalent to |
| 21 | .B @TRANSFORMED_PACKAGE_NAME@ \-d |
| 22 | .SH DESCRIPTION |
| 23 | Compress or decompress a file using run length encoding and Lempel Ziv |
| 24 | prediction, followed by the Burrows-Wheeler transform and arithmetic |
| 25 | coding. |
| 26 | .B @TRANSFORMED_PACKAGE_NAME@, |
| 27 | like its ancestor |
| 28 | .B bzip2, |
| 29 | excels at compressing text or source code. |
| 30 | |
| 31 | The command-line options are deliberately very similar to |
| 32 | those of |
| 33 | .B bzip2, |
| 34 | but they are not identical. |
| 35 | .PP |
| 36 | .B @TRANSFORMED_PACKAGE_NAME@ |
| 37 | expects at most two filenames intertwined with flags. |
| 38 | .B @TRANSFORMED_PACKAGE_NAME@ |
| 39 | will by default not overwrite existing files. |
| 40 | If this behaviour is intended, use the \-f flag. |
| 41 | |
| 42 | If no file names are specified, |
| 43 | .B @TRANSFORMED_PACKAGE_NAME@ |
| 44 | will compress from standard input to standard output, refusing |
| 45 | to output binary data to a terminal. The \-e flag (encode) is implied. |
| 46 | |
| 47 | .B bunzip3 |
| 48 | (or, |
| 49 | .B @TRANSFORMED_PACKAGE_NAME@ \-d |
| 50 | equivalently) decompresses data from standard input to the standard |
| 51 | output, refusing to read from a terminal. |
| 52 | |
| 53 | If two files are specified, the first one is used in place of |
| 54 | standard input, and the second one is used in place of standard |
| 55 | output. |
| 56 | |
| 57 | If the \-c flag is present, @TRANSFORMED_PACKAGE_NAME@ will read from the specified |
| 58 | file and output data to standard output instead. Otherwise, if decoding, |
| 59 | .B @TRANSFORMED_PACKAGE_NAME@ |
| 60 | will try to guess the decompressed filename by removing the |
| 61 | .I .bz3 |
| 62 | extension. If not present, an error will be reported. If encoding, |
| 63 | the output filename will be generated by appending the |
| 64 | .I .bz3 |
| 65 | extension to the input filename. |
| 66 | |
| 67 | .SH OPTIONS |
| 68 | .TP |
| 69 | .B \-B --batch |
| 70 | Enable batch mode. By default, |
| 71 | .B @TRANSFORMED_PACKAGE_NAME@ |
| 72 | will error if more than two files are passed, and the two files specified |
| 73 | are always treated as input and output. The batch mode makes |
| 74 | .B @TRANSFORMED_PACKAGE_NAME@ |
| 75 | treat every file as input, so for example |
| 76 | .I @TRANSFORMED_PACKAGE_NAME@ -Bd *.bz3 |
| 77 | will decompress all |
| 78 | .I .bz3 |
| 79 | files in the current directory. |
| 80 | .TP |
| 81 | .B \-b --block N |
| 82 | Set the block size to N mebibytes. The minimum is 1MiB, the maximum is |
| 83 | 511MiB. The default is 16MiB. |
| 84 | .TP |
| 85 | .B \-c --stdout |
| 86 | Force writing output data to the standard output if one file is |
| 87 | specified. |
| 88 | .TP |
| 89 | .B \-d --decode |
| 90 | Force decompression. |
| 91 | .TP |
| 92 | .B \-e/-z --encode |
| 93 | Force compression (default behaviour). |
| 94 | .TP |
| 95 | .B \-f --force |
| 96 | Overwrite existing files. |
| 97 | .TP |
| 98 | .B \-h --help |
| 99 | Display a help message and exit. |
| 100 | .TP |
| 101 | .B \-j --jobs N |
| 102 | Set the amount of parallel worker threads that process one block each. Default |
| 103 | is to use 1 worker thread. |
| 104 | .TP |
| 105 | .B \--rm |
| 106 | Remove the input files after successful compression or decompression. This is |
| 107 | silently ignored if output is stdout. |
| 108 | .TP |
| 109 | .B \-k --keep |
| 110 | Keep (don't delete) the input files. Set by default, provided only |
| 111 | for compatibility with other compressors. |
| 112 | .TP |
| 113 | .B \-v --verbose |
| 114 | Set verbose output mode to see compression statistics. |
| 115 | .TP |
| 116 | .B \-V --version |
| 117 | Display version information and exit. |
| 118 | .TP |
| 119 | .B \-t --test |
| 120 | Verify the validity of compressed blocks. |
| 121 | .TP |
| 122 | .B \-- |
| 123 | Treat all subsequent arguments as file names, even if they start with |
| 124 | a dash. This is so you can handle files with names beginning with a dash. |
| 125 | .SH FILE FORMAT |
| 126 | |
| 127 | Compression is performed as long as the input block is longer |
| 128 | than 64 bytes. Otherwise, it's coded as a literal block. In all |
| 129 | other cases, the compressed data is written to the file. The |
| 130 | file format has constant overhead of 9 bytes per file and from |
| 131 | 9 to 17 bytes per block. Random data is coded so that expansion |
| 132 | is generally under 0.8%. |
| 133 | |
| 134 | .B @TRANSFORMED_PACKAGE_NAME@ |
| 135 | uses 32-bit CRC to ensure that the decompressed version of a file is |
| 136 | identical to the original. This guards against corruption of the |
| 137 | compressed data. |
| 138 | |
| 139 | .SH MEMORY MANAGEMENT |
| 140 | |
| 141 | The \-b flag sets the block size in mebibytes (MiB). The default is 16 |
| 142 | MiB. Compression and decompression memory usage can be estimated as: |
| 143 | |
| 144 | 6 x block size |
| 145 | |
| 146 | Larger block sizes usually give rapidly diminishing returns. |
| 147 | It is also important to appreciate that the decompression memory |
| 148 | requirement is set at compression time by the choice of block size. |
| 149 | In general, try and use the largest block size memory constraints allow, |
| 150 | since that maximises the compression achieved. Compression and |
| 151 | decompression speed are virtually unaffected by block size. |
| 152 | |
| 153 | .SH AUTHOR |
| 154 | Kamila Szewczyk, k@iczelia.net. |
| 155 | |
| 156 | https://github.com/iczelia/bzip3 |
| 157 | |
| 158 | Thanks to: Ilya Grebnov, Benjamin Strachan, Caleb Maclennan, Ilya Muravyov, |
| 159 | package maintainers - Leah Neukirchen, Grigory Kirillov, Maciej Barc, |
| 160 | Robert Schutz, Petr Pisar, Przemyslaw Skibinski, Shun Sakai and others. |
| 161 | Also everyone who sent patches, helped with portability problems, encouraged |
| 162 | me to work on bzip3 and lent me machines for performance tests. |
| 163 | |
| 164 | .SH "SEE ALSO" |
| 165 | \fBbzip2(1)\fR, \fBbz3less(1)\fR, \fBbz3more(1)\fR, \fBbz3grep(1)\fR, \fBbunzip3(1)\fR |