adam_0 adam_0 - 2 years ago 112
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 Source
hexdump -C yourfile.bin

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

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download