bzdiff command in Linux is similar to bzcmp command, and is used to compare the bzip2 compressed files. Both the commands are used to invoke cmp or the diff program on bzip2 compressed files. All options are required to be passed directly to diff. Similar to bzcmp, if a single file is specified, then the file 1 and the uncompressed file1.bz2 are compared. While in case of two files are specified, then they are uncompressed if required and fed to diff, also the exit status from diff is preserved.
Syntax to use bzdiff command in Linux
bzdiff [ diff_options ] file1 [ file2 ]
Bugs in bzdiff command
Messages shown from the diff program indicates to temporary file names instead of those specified.
Examples of bzdiff command
1: Comparison of two files
bzdiff file_name1.bz2 file_name2.bz2
2: Using bzdiff with single parameter
bzdiff file_name1.bz2

Nishant Verma is a senior web developer who love to share his knowledge about Linux, SysAdmin, and more other web handlers. Currently, he loves to write as content contributor for ServoNode.