Monday, September 14, 2020

How do a Hex view of a file

In Mac, the utility is "xxd filename | less"

This shows the data pretty good. something like below 

00000000: 7b0a 2020 226e 616d 6522 3a20 2272 722d  {.  "name": "rr-

00000010: 7265 6163 742d 626f 696c 6572 706c 6174  react-boilerplat

00000020: 6522 2c0a 2020 2276 6572 7369 6f6e 223a  e",.  "version":


If we see that the contents are paired as 4 chars, but each of the 

char is taking two bytes. Just to note.  


References:

https://stackoverflow.com/questions/827326/whats-a-good-hex-editor-viewer-for-the-mac

No comments:

Post a Comment