bzdiff
Quick Reference
Command Name:
bzdiff
Category:
file comparison
Platform:
linux
Basic Usage:
Common Use Cases
- 1
Compressed file differences
Show differences between bzip2 compressed files
- 2
Data analysis
Analyze changes in compressed data
- 3
Version comparison
Compare different versions of compressed files
- 4
Content verification
Verify content differences in compressed files
Syntax
bzdiff [OPTIONS] FILE1 [FILE2] bzmore [OPTIONS] FILE1 [FILE2]
Options
Option | Description |
---|---|
-a, --text | Treat all files as text |
-b, --ignore-space-change | Ignore changes in the amount of whitespace |
-B, --ignore-blank-lines | Ignore changes where lines are all blank |
-c, --context[=NUM] | Output NUM lines of copied context (default 3) |
-d, --minimal | Try to find a smaller set of changes |
-e, --ed | Output an ed script |
-i, --ignore-case | Ignore case differences in file contents |
-n, --rcs | Output RCS format diffs |
-q, --brief | Report only when files differ |
-s, --report-identical-files | Report when two files are the same |
-u, --unified[=NUM] | Output NUM lines of unified context (default 3) |
-w, --ignore-all-space | Ignore all whitespace |
-y, --side-by-side | Output in two columns |
-W, --width=NUM | Output at most NUM (default 130) print columns |
Examples
How to Use These Examples
The examples below show common ways to use the bzdiff
command. Try them in your terminal to see the results. You can copy any example by clicking on the code block.
Basic Examples:
bzdiff file.txt.bz2
bzdiff file1.bz2 file2.bz2
bzdiff file1.bz2 file2.txt
bzdiff -u file1.bz2 file2.bz2