adam_0 adam_0 - 6 months ago 9
Linux Question

Viewing File in Binary in Terminal

First things first, I'm on a Mac ssh'ing into a Linux machine via Terminal.

I would like to view the contents of a file in the current directory, but in binary. Is there a binary mode for any text editors like VI or Nano or the like?

Answer
hexdump -C yourfile.bin

unless you want to edit it of course. Most linux distros have hexdump by default (but obviously not all).