bzcmp
Quick Reference
Command Name:
bzcmp
Category:
file compression
Platform:
Linux
Basic Usage:
Common Use Cases
- 1
Compressed file comparison
Compare bzip2 compressed files
- 2
Data verification
Verify integrity of compressed files
- 3
File analysis
Analyze differences between compressed files
- 4
Quality assurance
Ensure compressed files are identical
Syntax
bzcmp [cmp_options] FILE1 [FILE2]
Options
Option | Description |
---|---|
-b, --print-bytes |
Print differing bytes as octal values |
-i, --ignore-initial=SKIP |
Skip the first SKIP bytes of both inputs |
-i, --ignore-initial=SKIP1:SKIP2 |
Skip the first SKIP1 bytes of FILE1 and SKIP2 bytes of FILE2 |
-l, --verbose |
Output byte numbers and values of all differing bytes |
-n, --bytes=LIMIT |
Compare at most LIMIT bytes |
-s, --quiet, --silent |
Output nothing; yield exit status only |
-v, --verbose |
Output verbose information |
--help |
Display help information |
--version |
Output version information |
Examples
How to Use These Examples
The examples below show common ways to use the bzcmp
command. Try them in your terminal to see the results. You can copy any example by clicking on the code block.
Basic Examples:
bzcmp file1.bz2 file2.bz2
bzcmp file1.bz2 uncompressed_file
bzcmp -s file1.bz2 file2.bz2
Advanced Examples:
bzcmp -l file1.bz2 file2.bz2