Saturday, September 9, 2017

How to view files in binary in the terminal?

xxd does both binary and hexadecimal
bin:
xxd -b file
hex:
xxd file 
 
hexdump -C yourfile.bin
unless you want to edit it of course. Most linux distros have hexdump by default (but obviously not all).