Saturday, November 8, 2014

View binary file as hex in linux terminal - xxd

Straight from the man page:

 xxd  creates a hex dump of a given file or standard input.  It can also convert a hex dump back to its original binary form.

So a simple xdd file will output something like this:

Add -b flag for getting binary output instead of hex, -i flag to output as C include file style.

No comments:

Post a Comment