Questions tagged [binary-files]
160 questions
519
votes
32 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 32-bit machine and experience a spectacular failure.
Septagram
- 5,678
492
votes
18 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
85
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,178
74
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…
makerofthings7
- 2,385
24
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
- 343
24
votes
3 answers
On which systems should I prefer “musl” or “gnu” binaries?
Several rust utilities include binaries for linux with musl and gnu suffixes, leaving me to wonder which one should I use, and why?
Examples:
https://github.com/chmln/sd/releases provides musl and gnu for…
balupton
- 585
20
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…
sagarkothari
- 5,085
19
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
- 4,258
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
- 458
15
votes
1 answer
Why does my "grep" stop filtering a non-ASCII file it thinks is "binary"?
I'm working with a Windows-10 computer, using a WSL.
I'm investigating a logfile, produced by NLog in a C# application. I'm expecting log entries to appear everywhere throughout the file, but I see the following:
Linux prompt> grep "geen…
Dominique
- 2,373
15
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
- 151
13
votes
5 answers
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
- 30,792
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…
Mathieu Marques
- 203
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