Xxd Command Not Found Best

If you cannot install xxd for some reason (e.g., lack of permissions), most Linux systems have hexdump or od pre-installed: hexdump -C filename To see octal/hex: od -t x1 filename

diff <(xxd file1.bin) <(xxd file2.bin)