In Unix/Ksh, when I try to look inside a file it says that the file may be a binary file and if I want to see it anyway. When i say 'yes', it shows me the content filled with unreadable symbols (looks like binary). Is there a command that I can run from the Unix prompt to convert/translate that binary file (data) into a readable format?
Thanks much.
You can use a hex dump utility for this task. Two standard Unix shell commands are hexdump and od.
Examples:
hexdump -C <filename>
od -tcx1 <filename>
My Mac OSX machine has hexdump (and not od), BTW.
If you are looking for readable content then often strings can be useful too.
Thanks Neo,
od -tcx1 <filename> worked for me.
Much appreciate it.