LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-26-2009, 07:00 PM   #1
leftty
Member
 
Registered: Aug 2008
Location: austin, tx
Distribution: Slackware64
Posts: 35

Rep: Reputation: 15
Display binary (not hex or od, actual ones and zeros)


There's no functional purpose for this, but I would very much like to display binary files as they truly are - just ones and zeros. Does anyone know of a command line program which accomplishes this task?
 
Old 01-26-2009, 07:55 PM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Well, the way the files "truly are" is one of two forms: stored charge (RAM), or magnetic fields (disk drive). So, you are going to need something like a sensitive voltmeter or magnetometer.........

Since demand is not high, I don't think any of the standard utilities have a binary option---thus you may need to write your own. Start with something like OD, and then set up a "case" construct to print out the binary code based on the octal output.
 
Old 01-27-2009, 04:56 AM   #3
salasi
Senior Member
 
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 4,070

Rep: Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897
Well, if you were prepared to settle for the data and a GUI program to do it, you would have lots of alternatives.
 
Old 05-11-2011, 01:15 AM   #4
magichabits
LQ Newbie
 
Registered: May 2011
Posts: 1

Rep: Reputation: 1
xxd -b to display ones and zeroes

xxd -b does this.

$ cat test.txt
Test.
$ xxd -b test.txt
0000000: 01010100 01100101 01110011 01110100 00101110 00001010 Test..
 
1 members found this post helpful.
Old 05-12-2011, 04:31 PM   #5
Gary Baker
Member
 
Registered: Mar 2007
Location: Whitsett,NC
Distribution: Slackware 14.1 and MINT 17.1
Posts: 105

Rep: Reputation: 3
Android app

Try Hex2bin android app if you want it for your phone.
 
  


Reply



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
How Can I convert Hex to Binary in a perl script telecom_is_me Programming 18 10-11-2010 04:34 PM
Searching software to compare binary files in hex 51dunk Linux - Software 6 01-20-2009 07:07 AM
converting a hex file to binary linx win Programming 3 07-20-2006 03:04 AM
How to convert a float to its binary or hex representation in Python? zero79 Linux - Software 1 08-29-2005 09:30 PM
Binary to Hex Ascii converter carboncopy Slackware 1 05-28-2004 09:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:46 PM.

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
Open Source Consulting | Domain Registration