Questions tagged [binary-files]

153 questions
443
votes
27 answers

How to check if a binary is 32 or 64 bit on Windows?

Is there an easy way to check if a binary is 32 or 64 bit on Windows? I need to check before I move the program to a 32bit machine and experience a spectacular failure.
Septagram
  • 4,888
  • 6
  • 19
  • 21
397
votes
16 answers

How do I compare binary files in Linux?

I need to compare two binary files and get the output in the form: for every different byte. So if file1.bin is 00 90 00 11 in binary form and file2.bin is 00 91 00 10 I want to get something…
frustratedCmpNoLongerUser
84
votes
12 answers

Why are hex editors called binary editors?

Hex and binary are two different bases. Hex, in my understanding, is simply an easier to use and more convenient version of binary. However, I often hear that hex editors are binary editors. If you search for "binary editor" on Google, you get…
Joseph
  • 2,118
  • 2
  • 12
  • 24
58
votes
4 answers

What is the "blob:http://" prefix and where can I learn more about this?

I'm using safari, and unsure if this works in other browsers, but when I signed up for a storm path account, I see the following URL blob:https://api.stormpath.com/1be95204-93d6-4GUID HERE The blob: prefix is new to me and I want to know if it…
22
votes
2 answers

How to solve: -bash: : cannot execute binary file

I have a file named b1 that contains assembly language. I am trying to execute the file on OSX using $ ./b1 I get the following error: -bash: ./b1: cannot execute binary file I've looked at other similar questions, but to no avail. I'm…
user304868
  • 323
  • 1
  • 2
  • 6
18
votes
6 answers

How to compare mp3, flac audio data in a file, ignoring header data (ID3 tag) etc.?

I've backed up some audio files up in 2 places and added ID3 tags into one backup but not the other, since time has passed my own memory has faded on whether the backups are actually the same, but now one has ID3 data and the other doesn't, basic…
therobyouknow
  • 3,894
  • 16
  • 55
  • 88
16
votes
2 answers

How do I get rid of the Skype lady?

For what feels like a year, Skype has had a picture of this lady in the middle of the interface. No offense to the lady, but seeing her face in the middle of my contacts is distracting. When I look at Skype I want to see my contacts, not an…
zx81
  • 448
  • 2
  • 13
13
votes
5 answers

convert text file of bits to binary file

I have a file instructions.txt with the…
dopamane
  • 233
  • 2
  • 7
13
votes
2 answers

Write n bytes from a file into another in Bash

Hello how can I write n bytes from one file into a new file starting from the k position using Bash? For example if n=60, k=1 and file size=100 then: the 2nd file would consist of from the 1st byte up to the 60th byte and would be 60 bytes in…
PiNewbie
  • 131
  • 1
  • 1
  • 3
12
votes
4 answers

Executable files in Mac OS X vs Windows

I have seen that every executable file in Windows has an extension of .exe. But Mac OS X doesn't have the same. Windows executes .exe files. Then what kind of files does Mac OS X execute? What is the difference between both operating system's…
Sagar Kothari
  • 4,697
  • 24
  • 69
  • 92
11
votes
3 answers

Why can't we understand the content of a binary file after compiled?

As far I know, every program consists of a pack of processor instructions with some specific data variables(float, int, char...) to work on the processor registers. So, the first thing that I thought about it(a long time ago) is that if you know…
Diogo
  • 29,494
  • 64
  • 146
  • 220
10
votes
1 answer

Delete /usr/bin/emacs - Operation not permitted

I was about to reinstall Emacs from railwaycat/emacsmacport when I stumbled upon /usr/bin/emacs, /usr/bin/emacsclient and /usr/bin/emacs-undumped. angrybacon@sandman ~/ $ ll /usr/bin/emacs* -r-xr-xr-x 1 root wheel 26929904 Dec 3 07:35…
6
votes
2 answers

is it possible to reverse xxd to get original file from binary file

i have been using xxd to create a hexa representation of a file(any file like .jpg, .docx, .zip etc), like this,.. $ xxd -p original_file.zip > hexa_format.txt and to reverse $ xxd -r -p hexa_format.txt > original_file.zip if anybody feels…
arvindh
  • 163
  • 1
  • 1
  • 3
6
votes
1 answer

What is a 8086 relocatable?

I'm running some Fortran software (LBLRTM) and a shell-script that prepares input generates a number of files with names TAPE3, TAPE4, etc. For debugging purposes, I used file to identify the file type. file tells me: TAPE3: 8086 relocatable…
gerrit
  • 1,547
  • 5
  • 18
  • 38
5
votes
4 answers

Why does zipping a zipped file not reduce its size?

Based on the idea that a zipped file is a new binary file, why can't I reduce a Zip's size by zipping it again and again – up to a very small resulting file?
Diogo
  • 29,494
  • 64
  • 146
  • 220
1
2 3
10 11