The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
CLI Magic: Viewing system information iBot UNIX and Linux RSS News 0 01-08-2008 01:30 AM
Viewing user accound information zp523444 Linux 1 01-28-2006 02:23 AM
Viewing files dsimpg1 UNIX for Dummies Questions & Answers 2 07-07-2005 09:21 AM
Viewing Tar files mapping UNIX for Dummies Questions & Answers 1 11-12-2002 06:51 PM
viewing binary files in ASCII manjunath UNIX for Advanced & Expert Users 2 04-02-2002 05:32 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-03-2006
Registered User
 

Join Date: Sep 2006
Posts: 25
Stumble this Post!
viewing/information of binary files

Hi all,

Is there a way of viewing a binary file through a UNIX session? Or perhaps viewing information of a binary file through a session?

thanks
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 10-03-2006
...@...
 

Join Date: Feb 2004
Location: NM
Posts: 3,844
Stumble this Post!
The file command line utility tells you what flavor of binary file you have.
In general, you have to know the file layout, and read it with code (usually stuff you write in C or perl) that is set for that format - in order to get information like numeric binary data into human readable form.

example:
Code:
/home/jmcnama> file RegBill01.ps
RegBill01.ps:   postscript file
There are other utilities like strings and what -- they will also render some data into a human readable format.

Otherwise you have to find/write something to read a binary file
Reply With Quote
  #3 (permalink)  
Old 10-03-2006
Registered User
 

Join Date: Sep 2006
Posts: 25
Stumble this Post!
thanks strings worked a treat!

ocelot
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 09:11 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0