bash: xxd: command not found or
xxd -i image.png > image_data.c Now image_data.c contains unsigned char image_png[] with the data. diff <(xxd file1.bin) <(xxd file2.bin) Alternatives to xxd If you cannot install xxd for some reason, consider these alternatives: xxd command not found
xxd binary > binary.hex # Edit binary.hex with a text editor xxd -r binary.hex binary Generate a C array from any binary: bash: xxd: command not found or xxd -i image