Linux command to display the contents of a given file byte by byte with the character and its numerical representation displayed for each byte
The key is
the character and its numerical representation
so -c
only gives you half of that. One solution is
od -c -b file
but of course there are lots of different number representations to choose from.
How about hexdump
or hd
? Try
hexdump -C [file]