Linux

How to view files in binary in the terminal?

bin:

xxd -b <file>

hex:

xxd <file>

Source: http://stackoverflow.com/questions/1765311/how-to-view-files-in-binary-in-the-terminal