There's a nice CLI binutils
utility for interpreting binary files, and outputting legible strings, in a cat
-like fashion. It's called strings
.
If you try to cat
a binary file, you'll see a bunch of garbled text and alien symbols. And probably have to reset
your shell. Which is sometimes not even possible
Just like cat
, basic usage is simply:
strings ./example.bin
Personally, for quick perusal, I like to:
strings -aws ' ' ./example.bin | fold -sw $COLUMNS ; echo
If you want to test it on a real file, you can try something in the /bin
directory, like:
strings -aws ' ' /bin/true | fold -sw $COLUMNS ; echo
My question: Is there a similar, quick & easy method for editing these strings?