Purpose:Create bzip2 (*.bz2) compressed archives

 

Format:BZIP2 [/= /A:[[-][+]rhsdaecjot] /A /M /Q /V] bzip2archive [@file] file

 

bzip2archiveThe .bz2 file to work with
fileThe file to compress

 

/A:... (attribute switch)M(ove)
/A(dd)/Q(uiet)
/C(ontents)/V(iew)

 

See also: UNBZIP2.

 

Usage:

 

BZIP2 is normally used for compressing a single file; if you need to compress multiple files you should use the ZIP (or TAR) command.

 

You can specify a pathname for bzip2archive. If you don't provide an extension, and the filename as entered doesn't exist, BZIP2 adds ".bz2". If you don't specify an operation, BZIP2 will default to Add.

 

Options:

 

/=Display the BZIP2 command dialog to help you set the command line options. The /= option can be anywhere on the line; additional options will set the appropriate fields in the command dialog.

 

/A:...Select only those files that have the specified attribute(s) set. See Attribute Switches for information on the attributes which can follow /A:. Do not use /A: with @file lists. See @file lists for details.

 

You can specify /A:= to display a dialog to help you set individual attributes.

 

/AAdd the specified file to the archive. (This is the default.)

 

/CDisplay (on standard output) the contents of a file in the zip archive.

 

/MDelete the file from the disk after adding them to the bzip2 file.

 

/QDon't display the file being compressed.

 

/VView the contents of the .bz2 file (date, time, and filename).