Tags: , , , ,

Categories: FreeBSD


2 Responses to “How can I get a binary dump of a file on darwin freeBSD?”

  1. morgan says:

    I don’t have access to a “darwin freeBSD” system, but
    I presume it has the standard UNIX utilities available.
    If so, you should be able to dump out a file using “od”.

    There are options for dumping in various bases (octal,
    hex, decimal) and the “-c” option also prints out
    characters when the byte is within the printable
    character range.

    For example, using “/bin/ls” as my example “data” file:
    od -x /bin/ls | head -5 <- Dumps bytes in hexadecimal
    od -x -c /bin/ls | head -5 <- Dump characters too

  2. juliekiev says:

    There are also lots of binary-to-ascii converters
    on the net. Search for the string “binasc” in
    your search engine.

Leave a Reply