Operating systems, development tools, and professional services
for connected embedded systems
for connected embedded systems
![]() |
![]() |
![]() |
![]() |
bzip2
Compress and decompress files
Syntax:
Compress and decompress files:
bzip2 [options] [files...]
Decompress files:
bunzip2 [options] [files...]
Decompress files to standard output:
bz2cat [options] [files...]
Options:
- -1 ... -9
- Set the blocksize to 100k ... 900k.
- -c
- Send output to standard output.
- -d
- Force decompression.
- -f
- Force the utility to overwrite existing output files.
- -h
- Display a help message.
- -k
- Keep (i.e. don't delete) input files.
- --repetitive-best
- Compress repetitive blocks better.
- --repetitive-fast
- Compress repetitive blocks faster.
- -s
- (Small) use less memory (at most 2500K).
- -t
- Test the integrity of the compressed file.
- -v
- Verbose output; a second v makes the utility more verbose.
- -z
- Force compression.
Description:
This utility compresses and decompresses files:
- If invoked as bzip2, the default action is to compress.
- As bunzip2, the default action is to decompress.
- As bz2cat, the default action is to decompress to stdout.
If no file names are given, bzip2 compresses or decompresses from standard input to standard output.
See also:
Backing Up and Recovering Data in the Neutrino User's Guide
![]() |
![]() |
![]() |
![]() |

![[Previous]](../prev.gif)
![[Contents]](../contents.gif)
![[Index]](../keyword_index.gif)
![[Next]](../next.gif)