Skip to main content
Colordiff has been added, so no need to repeat
Source Link
kenorb
  • 25.8k
  • 27
  • 134
  • 204

diff + xxd

Try diff in the following combination of zsh/bash process substitution and colordiff in CLI:

diff -y <(xxd foo1.bin) <(xxd foo2.bin) | colordiff

Where:

  • -y shows you differences side-by-side (optional).
  • xxd is CLI tool to create a hexdump output of the binary file.
  • addAdd -W200 to diff for wider output (of 200 characters per line).
  • For colors, use colordiff as shown below.

colordiff + xxd

If you've colordiff, it can colorize diff output, e.g.:

colordiff -y <(xxd foo1.bin) <(xxd foo2.bin)

Otherwise install via: sudo apt-get install colordiff.

Sample output:

binary file output in terminal - diff -y <(xxd foo1.bin) <(xxd foo2.bin) | colordiff

vimdiff + xxd

You can also use vimdiff, e.g.

vimdiff <(xxd foo1.bin) <(xxd foo2.bin)

Hints:

  • if files are too big, add limit (e.g. -l1000) for each xxd

diff + xxd

Try diff in the following combination of zsh/bash process substitution and colordiff in CLI:

diff -y <(xxd foo1.bin) <(xxd foo2.bin) | colordiff

Where:

  • -y shows you differences side-by-side (optional)
  • xxd is CLI tool to create a hexdump output of the binary file
  • add -W200 to diff for wider output (of 200 characters per line)

colordiff + xxd

If you've colordiff, it can colorize diff output, e.g.:

colordiff -y <(xxd foo1.bin) <(xxd foo2.bin)

Otherwise install via: sudo apt-get install colordiff.

Sample output:

binary file output in terminal - diff -y <(xxd foo1.bin) <(xxd foo2.bin) | colordiff

vimdiff + xxd

You can also use vimdiff, e.g.

vimdiff <(xxd foo1.bin) <(xxd foo2.bin)

Hints:

  • if files are too big, add limit (e.g. -l1000) for each xxd

diff + xxd

Try diff in the following combination of zsh/bash process substitution:

diff -y <(xxd foo1.bin) <(xxd foo2.bin)

Where:

  • -y shows you differences side-by-side (optional).
  • xxd is CLI tool to create a hexdump output of the binary file.
  • Add -W200 to diff for wider output (of 200 characters per line).
  • For colors, use colordiff as shown below.

colordiff + xxd

If you've colordiff, it can colorize diff output, e.g.:

colordiff -y <(xxd foo1.bin) <(xxd foo2.bin)

Otherwise install via: sudo apt-get install colordiff.

Sample output:

binary file output in terminal - diff -y <(xxd foo1.bin) <(xxd foo2.bin) | colordiff

vimdiff + xxd

You can also use vimdiff, e.g.

vimdiff <(xxd foo1.bin) <(xxd foo2.bin)

Hints:

  • if files are too big, add limit (e.g. -l1000) for each xxd
Improves answer.
Source Link
kenorb
  • 25.8k
  • 27
  • 134
  • 204

diff + xxd

Try diff in the following combination of zsh/bash process substitution and colordiff in CLI:

diff -y <(xxd foo1.bin) <(xxd foo2.bin) | colordiff

Where:

  • -y shows you differences side-by-side (optional)
  • xxd is CLI tool to create a hexdump output of the binary file
  • colordiff will colorize diff output (install via: sudo apt-get install colordiff)
  • add -W200 to diff for wider output (of 200 characters per line)

colordiff + xxd

If you've colordiff, it can colorize diff output, e.g.:

colordiff -y <(xxd foo1.bin) <(xxd foo2.bin)

Otherwise install via: sudo apt-get install colordiff.

Sample output:

binary file output in terminal - diff -y <(xxd foo1.bin) <(xxd foo2.bin) | colordiff

vimdiff + xxd

You can also use vimdiff, e.g.

vimdiff <(xxd foo1.bin) <(xxd foo2.bin)

Hints:

  • if files are too big, add limit (e.g. -l1000) for each xxd

Sample output:

binary file output in terminal - diff -y <(xxd foo1.bin) <(xxd foo2.bin) | colordiff

Try diff in the following combination of zsh/bash process substitution and colordiff in CLI:

diff -y <(xxd foo1.bin) <(xxd foo2.bin) | colordiff

Where:

  • -y shows you differences side-by-side (optional)
  • xxd is CLI tool to create a hexdump output of the binary file
  • colordiff will colorize diff output (install via: sudo apt-get install colordiff)
  • add -W200 to diff for wider output (of 200 characters per line)

Hints:

  • if files are too big, add limit (e.g. -l1000) for each xxd

Sample output:

binary file output in terminal - diff -y <(xxd foo1.bin) <(xxd foo2.bin) | colordiff

diff + xxd

Try diff in the following combination of zsh/bash process substitution and colordiff in CLI:

diff -y <(xxd foo1.bin) <(xxd foo2.bin) | colordiff

Where:

  • -y shows you differences side-by-side (optional)
  • xxd is CLI tool to create a hexdump output of the binary file
  • add -W200 to diff for wider output (of 200 characters per line)

colordiff + xxd

If you've colordiff, it can colorize diff output, e.g.:

colordiff -y <(xxd foo1.bin) <(xxd foo2.bin)

Otherwise install via: sudo apt-get install colordiff.

Sample output:

binary file output in terminal - diff -y <(xxd foo1.bin) <(xxd foo2.bin) | colordiff

vimdiff + xxd

You can also use vimdiff, e.g.

vimdiff <(xxd foo1.bin) <(xxd foo2.bin)

Hints:

  • if files are too big, add limit (e.g. -l1000) for each xxd
Made minor grammar fix (to -> too). Also added explanation for -W200
Source Link

Try diff in the following combination of zsh/bash process substitution and colordiff in CLI:

diff -y <(xxd foo1.bin) <(xxd foo2.bin) | colordiff

Where:

  • -y shows you differences side-by-side (optional)
  • xxd is CLI tool to create a hexdump output of the binary file
  • colordiff will colorize diff output (install via: sudo apt-get install colordiff)
  • add -W200 to diff for wider output (of 200 characters per line)

Hints:

  • if files are totoo big, add limit (e.g. -l1000) for each xxd

Sample output:

binary file output in terminal - diff -y <(xxd foo1.bin) <(xxd foo2.bin) | colordiff

Try diff in the following combination of zsh/bash process substitution and colordiff in CLI:

diff -y <(xxd foo1.bin) <(xxd foo2.bin) | colordiff

Where:

  • -y shows you differences side-by-side (optional)
  • xxd is CLI tool to create a hexdump output of the binary file
  • colordiff will colorize diff output (install via: sudo apt-get install colordiff)
  • add -W200 to diff for wider output

Hints:

  • if files are to big, add limit (e.g. -l1000) for each xxd

Sample output:

binary file output in terminal - diff -y <(xxd foo1.bin) <(xxd foo2.bin) | colordiff

Try diff in the following combination of zsh/bash process substitution and colordiff in CLI:

diff -y <(xxd foo1.bin) <(xxd foo2.bin) | colordiff

Where:

  • -y shows you differences side-by-side (optional)
  • xxd is CLI tool to create a hexdump output of the binary file
  • colordiff will colorize diff output (install via: sudo apt-get install colordiff)
  • add -W200 to diff for wider output (of 200 characters per line)

Hints:

  • if files are too big, add limit (e.g. -l1000) for each xxd

Sample output:

binary file output in terminal - diff -y <(xxd foo1.bin) <(xxd foo2.bin) | colordiff

Better file names.
Source Link
kenorb
  • 25.8k
  • 27
  • 134
  • 204
Loading
Corrected width.
Source Link
kenorb
  • 25.8k
  • 27
  • 134
  • 204
Loading
Source Link
kenorb
  • 25.8k
  • 27
  • 134
  • 204
Loading