LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   General (https://www.linuxquestions.org/questions/general-10/)
-   -   Dumping a file. (https://www.linuxquestions.org/questions/general-10/dumping-a-file-4175501610/)

stf92 04-14-2014 12:19 AM

Dumping a file.
 
Hi: Is there a command to dump a file onto the screen, so I can see its contents byte by byte? Thanks.

AnanthaP 04-14-2014 02:49 AM

od -c | less

evo2 04-14-2014 02:51 AM

Hi,

what about hexdump with the -b or -c options?

Evo2.

sundialsvcs 04-14-2014 09:27 AM

I often find it useful to use an editing tool –*such as UltraEdit in the Windows environment (others ...?) to allow me to scroll through an arbitrarily-large file in various display modes. Even command-line tools such as less often have useful abilities to do this.

You need more than just the ability to "dump" it. You need to be able to browse it and search it. Even if it's gigabytes-large, and without trying to suck those gigabytes "into memory" first. You need a tool that understands both Unicode and other possible multi-byte character representations. There are plenty of them out there.

stf92 04-14-2014 11:33 AM

Thank you very much, guys. In fact, I only needed to check a WAVE file, and "hexdump -C <file name>" makes a good work of it.

metaschima 04-14-2014 11:39 AM

most, od, hexdump, hexedit all work. With hexedit you can actually edit the file if you need to. 'most' may show garbled output sometimes, so it's not quite as reliable as the others.

rob.rice 04-21-2014 02:20 PM

midnight commander has a hex viewer built in
high light the file hit f3 then f4
the CLI command to start midnight commander is "mc"


All times are GMT -5. The time now is 05:30 PM.