LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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, 08: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, 08:55 PM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728
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, 05:56 AM   #3
salasi
Senior Member
 
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 3,916

Rep: Reputation: 777Reputation: 777Reputation: 777Reputation: 777Reputation: 777Reputation: 777Reputation: 777
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, 02: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, 05:31 PM   #5
Gary Baker
Member
 
Registered: Mar 2007
Posts: 49

Rep: Reputation: 3
Android app

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


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


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

Main Menu
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