Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Non-*NIX Forums > General
User Name
General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!


  Search this Thread
Old 04-14-2014, 01:19 AM   #1
Senior Member
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 3,624

Rep: Reputation: 51
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.

Last edited by stf92; 04-14-2014 at 03:17 AM.
Old 04-14-2014, 03:49 AM   #2
Registered: Jul 2004
Location: Chennai, India
Distribution: UBUNTU 5.10 since Jul-18,2006 on Intel 820 DC
Posts: 849

Rep: Reputation: 201Reputation: 201Reputation: 201
od -c | less
Old 04-14-2014, 03:51 AM   #3
LQ Guru
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,753

Rep: Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288

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

Old 04-14-2014, 10:27 AM   #4
LQ Guru
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 8,622
Blog Entries: 4

Rep: Reputation: 2998Reputation: 2998Reputation: 2998Reputation: 2998Reputation: 2998Reputation: 2998Reputation: 2998Reputation: 2998Reputation: 2998Reputation: 2998Reputation: 2998
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.

Last edited by sundialsvcs; 04-14-2014 at 10:29 AM.
Old 04-14-2014, 12:33 PM   #5
Senior Member
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 3,624

Original Poster
Rep: Reputation: 51
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.
Old 04-14-2014, 12:39 PM   #6
Senior Member
Registered: Dec 2013
Distribution: Slackware
Posts: 1,982

Rep: Reputation: 491Reputation: 491Reputation: 491Reputation: 491Reputation: 491
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.
Old 04-21-2014, 03:20 PM   #7
Senior Member
Registered: Apr 2004
Distribution: slack what ever
Posts: 1,007

Rep: Reputation: 168Reputation: 168
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"


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
alsa-utils: tool to put metadata into a file generated by arecord? stf92 Linux - General 7 11-09-2010 07:36 AM
alsa-utils compilation shariefbe Linux - Newbie 1 12-28-2009 06:16 AM
broke gentoo after installing alsa-driver & alsa-utils snakeo2 Linux - Newbie 1 01-26-2006 09:05 AM
[ALSA 1.0.9b-4] No more sound, no more alsa-utils package Creak Debian 5 08-18-2005 05:22 PM
alsa-utils conflicts with alsa-lib sloik2000 Linux - Software 0 07-09-2005 09:50 AM > Forums > Non-*NIX Forums > General

All times are GMT -5. The time now is 12:47 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration