LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > General
User Name
Password
General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!

Notices



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

Rep: Reputation: 50
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
AnanthaP
Member
 
Registered: Jul 2004
Location: Chennai, India
Distribution: UBUNTU 5.10 since Jul-18,2006 on Intel 820 DC
Posts: 659

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

Rep: Reputation: 1244Reputation: 1244Reputation: 1244Reputation: 1244Reputation: 1244Reputation: 1244Reputation: 1244Reputation: 1244Reputation: 1244
Hi,

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

Evo2.
 
Old 04-14-2014, 10:27 AM   #4
sundialsvcs
Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 5,467

Rep: Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175
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
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 3,290

Original Poster
Rep: Reputation: 50
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
metaschima
Senior Member
 
Registered: Dec 2013
Distribution: Slackware
Posts: 1,544

Rep: Reputation: Disabled
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
rob.rice
Member
 
Registered: Apr 2004
Distribution: slack what ever
Posts: 797

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


Reply


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


All times are GMT -5. The time now is 11:53 AM.

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