The tag has no usage guidance.

learn more… | top users | synonyms

161
votes
11answers
236k views

How do I compare binary files in Linux?

I need to compare two binary files and get the output in the form <fileoffset-hex> <file1-byte-hex> <file2-byte-hex> for every different byte. So if file1.bin is 00 90 00 11 in binary ...
65
votes
12answers
11k views

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 ...
10
votes
3answers
3k views

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 ...
9
votes
4answers
5k views

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 ...
8
votes
2answers
34k views

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 ...
4
votes
3answers
1k views

Viewing binary files in terminal mangles display - any option other than closing window?

I don't always accidentally more a binary file, but when I do, I manage to output weird characters that (apparently) change the character set used by the terminal and make it difficult to read or ...
4
votes
1answer
3k views

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 ...
4
votes
1answer
2k views

permission for the `www-data` user to execute a binary file

How can I give permission for the www-data user of Ubuntu machine to execute a command installed in /usr/local/bin ?
3
votes
4answers
816 views

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?
3
votes
2answers
2k views

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:...
3
votes
3answers
330 views

Binary file search on Windows 8?

I'm in a weird situation. I need to find a file based on its contents, not the name because the name is not unique... For example, I have a file named "cat.jpg". It is a picture of a cat. I happen to ...
3
votes
1answer
2k views

How to do binary searches on Windows?

I want to search for a binary file and all I know it contains a certain sequence of bytes. What tool can help me to find it?
3
votes
2answers
63 views

make file size at least 1MB

I'm trying to learn about operating systems by making one myself and testing it in virtual-box, but VBoxManage convertfromraw doesn't allow my source file to be very tiny (512B). Are there any bash ...
3
votes
1answer
501 views

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-...
2
votes
2answers
376 views

Encode binary file as text on Windows 2000+ using built-in tools

I have remote desktop access via Citrix to a remote server running Windows 2000. The server does not have any kind of internet access. The only way of getting data across is copying text through the ...
2
votes
1answer
457 views

Can you write binary opcodes directly in a text file, and then will they be directly fetched by CPU like that?

I can not fivd any sources explaining how tp write direct opcodes for ISA to work on CPU. Not Assembly, opcodes directly or "machine code".
2
votes
1answer
412 views

Getting position of track and sector in 'dd'-created floppy image

I got some floppy images (original DOS 6.22 und FreeDOS 1.44 MB boot disks) created using the *nix ddcommand that work fine when used in a virtual environment. Now I want to understand the structure ...
2
votes
1answer
625 views

Is it possible to decode 'octet stream' .bin file?

Tidal.com streams flac files, but it does not provide with file download, which is what I want. As you would expect from a big company such as Tidal, upon my inquiry, its support service in an utmost ...
2
votes
0answers
103 views

How can I prepend a byte to the beginning of a binary file in windows? [closed]

I have a binary file and I want to add a specific byte to the beginning of this file. How can I do it?
2
votes
1answer
138 views

making a runnable file from a binary file

I have downloaded some programs from PortableLinuxApps.com such as Xnoise, and Chromium, and have them saved on a USB with the intention of their being part of a Swiss-Army-USB holiday gift for my ...
1
vote
2answers
2k views

How to efficiently update a copy of a large binary file

I have a large file (~20 GB, VirtualBox VM of Windows XP) that I would like to clone to a second computer and then keep synchronized, 1-way, from the primary computer. Is there a generic way of ...
1
vote
1answer
3k views

Merge 3 ISO file segments into 1 complete ISO file

I need to merge 3 ISO files from Dell website and they state the following: Download all ISO file segments into an empty subdirectory on your local hard drive. After you have downloaded all ...
1
vote
1answer
3k views

Concatenate binary files in windows (Without command line)

I'm trying to prepare a process for copying the video files off of a recorded DVD (we made the recording, and it's not encrypted). The method of copying the VTS_*.VOB file works when the recording is ...
1
vote
1answer
6k views

Extract the contents of ELF and write to binary file

I have been trying to extract the contents of a firmware and putting it to a binary file, but with no success. I see the right hex contents, but am not sure how to laid them in bits into a file. ...
1
vote
1answer
131 views

Prompting for sudo password in a setuid root binary

I have a setuid root binary, with_sudo.bin, with the following source code: /* with_sudo.c */ #include <stdio.h> #include <sys/types.h> #include <unistd.h> #include <stdlib.h> ...
1
vote
3answers
214 views

Untar after uploading to linux from windows

I have created tar.gz from my linux server, and I downloaded the same to my linux system and I successfully doen untar with tar -xvf package.tar.gz. And now my issue I downloaded same package.tar....
1
vote
1answer
98 views

how to get from a .exe (executable file) the version, author, publisher etc and other meta data without running the .exe

How do I find out details of a .exe file - e.g. Software Author, Vendor, Date, Version etc? When I right click on the file and select properties, I don't get this information. However, if I upload ...
1
vote
2answers
24 views

How to figure out which (potentially uninstalled) port provides a command in FreeBSD?

make search name=X and make search key=Y don't seem to find command names reliably, especially not if they aren't mentioned in the port's description. In Debian-based systems there's apt-file which ...
1
vote
1answer
383 views

Linux setcap and changes made to the executable

A program that I am developing uses raw sockets. For security reasons to run a program that uses raw sockets, the program has to be run under a user with effective ID 0 (root?) or have the capability: ...
1
vote
1answer
79 views

./install_bam.sh and i get an error stating "cannot execute binary file

I am trying to install a software through PuTTY. When I try to execute the chmod +x ./install_bam.sh command to obtain the permission to run the ./install_bam.sh and I get an error stating cannot ...
1
vote
2answers
786 views

How do binary files run on different machines? [closed]

I always wondered about how executable binary files actually work. Compilation is always stated as taking the source code and translating it to machine language But what does that really mean? ...
1
vote
2answers
225 views

How can I replace icons of an application's executable?

I have an application whose executable contains some default icon. Now, I know I can use a shortcut with whatever icon I want, but what I'm looking to do is change the icon without the executable ...
1
vote
1answer
2k views

Saving a binary file with HyperTerminal

I have an embedded platform that is connected to my Windows PC via the serial connection. The embedded application sends 532 bytes through the connection. Using HyperTerminal, I am able to see the ...
1
vote
1answer
88 views

How to send a delta (differential part) of a large binary file over the Internet?

I have sent a large (>1GB) binary file to a friend over a slow metered data plan and now I need to send the second version of the same file only slightly changed. I want to send only the delta/diff-ed ...
1
vote
2answers
738 views

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 ...
0
votes
4answers
7k views

How do you obtain 'raw binary dump' of a file?

I came through it in a question - What in the world is a .el8 file?. I am curious how @slhck determined that the file in question was pointing to the software - eLecta
0
votes
4answers
369 views

Why would a compiled and linked high-level language execute slower than Assembly/machine code? [closed]

Say I compile and link C in to a flat binary or some executable output format to run on a bare machine. If I optimized and fed the direct binary to the CPU upon boot up, why would the resulted format ...
0
votes
1answer
932 views

How to version large binary files?

I run Windows XP inside a virtual machine for some tasks. I attempted to use git to version the image for virtual box; however, it is about 6GB after all the service packs. I only have 6GB of ram ...
0
votes
1answer
18 views

Version control for audio files

What is a good approach for version control of audio files? I have a 20GB library of audio lectures to tune up and bring in to a state ready for releasing and sharing. It's important to keep the ...
0
votes
1answer
1k views

Is there any ways to extend the search (find-in-files) capability of WinRAR?

WinRAR is good at searching for a string in text files(java, xml, txt etc.) within an archive and it supports multiple archive formats. (rar, 7zip, winzip etc) Is there some way to extend this ...
0
votes
2answers
494 views

Why does Mercurial think my source files are binary?

I've been working on a programming project in Notepad, so far. Today, I opened my source files in an IDE to debug one thing, and the IDE converted saved my files as binary (or so Mercurial reports, ...
0
votes
1answer
57 views

Changing text in binary files

While looking inside a binary file in a text editor, I came across some readable text. I have executed the binary before, and know that the readable text is echoed on screen. Is it possible to remove ...
0
votes
1answer
71 views

Concatenate four binary files using alternating pattern in Linux

I need to concatenate four binary, meaning non-text files. Lets say I have four files: file1: AAAA file2: BBBB file3: CCCC file4: DDDD Now I want my resulting file to look like: ABCDABCDABCDABCD. ...
0
votes
1answer
189 views

Software for tagging arbitrary files [closed]

I'd like a program that allows me to tag and organize arbitrary binary files, without having to modify them or move them around. Also, the files could be stored on a local HDD or on a DVD or any other ...
0
votes
2answers
123 views

Building distributable binaries in Unix

My intention is to generate distributable binaries - I am doing a ./configure - make - make install in my build machine, and I archived the content of the install directory (the one I gave a prefix to ...
0
votes
2answers
518 views

Program to compare binary files

I'm looking for a freeware program that compares two binary files with each other, and can do the following things: Give a percentage of similarity Hash the files (give a few basic, as well as fuzzy ...
0
votes
0answers
16 views

Split binary data file by AOB

I have a file with the following magic AoB that acts a separator: 00 07 77 77 77 77 77 77 77 77 77 77 77 77 77 77 00 07 77 77 77 77 77 77 77 77 77 77 77 77 77 77 Is there any utility or quick way ...
0
votes
2answers
32 views

Can PDF Annotations Be Exported and Then Imported Back?

I have a few hundred pages of highly annotated PDF file, which is mostly text, in the form of underlines, highlights, and (more) text annotations. After two years, a updated version of that document ...
0
votes
0answers
23 views

How to extract Shift-JIS strings from binary in Windows 8?

How can I extract Shift-JIS strings from a binary file in Windows 8? I'm looking for actual words in a binary file. So not just meaningless combinations of characters. Other Japanese character ...
0
votes
1answer
74 views

Where can I find an RRD file specification?

I'm trying to write a Python program to directly pull information from RRD performance files stored on our servers at work, but the files aren't stored in plaintext format, and I cant find any ...