2022 Developer Survey is open! Take survey.

Questions tagged [binary]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
21 views

Is the source code for coreutils stored on my linux machine (as opposed to binaries)? Where? [duplicate]

Wanted to take a look at xargs source code and couldn't find it on my machine. Only binaries come up with which and whereis. Google a little bit and came across this great who's who list of unix ...
user avatar
  • 103
0 votes
1 answer
111 views

Command curl not found, even though it is installed

First I've installed curl: company@rb-VirtualBox:~$ apt install curl E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied) E: Unable to acquire the dpkg frontend lock (...
user avatar
  • 1,708
1 vote
0 answers
25 views

Get Linux Executable Signing Certificate Information

I wanted to know if there was a way (some sort of library that I'm unaware of) that gets the signing certificate details of an executable. I know it's possible to sign a binary using openssl but how ...
user avatar
0 votes
1 answer
33 views

Uniqueness of binaries across same distro

Should the common binaries on different but identical linux systems (lets say same Debian version, fully patched), have the exact same binaries across systems (matching hashes)? Is there any known ...
user avatar
1 vote
1 answer
27 views

How can I display an image coming as a binary stream?

I would like to display an image that I am receiving from a curl command. For example, I would like to display it using Eye of Gnome. How can I do that? Something like: curl https://example.com/image....
user avatar
0 votes
0 answers
357 views

Convert binary file to text file

I'm struggling with a srt subtitles, which are a binary file for some reason: file -i file.srt file.srt: application/octet-stream; charset=binary When opening them in kate (KDE text editor) they look ...
user avatar
0 votes
1 answer
169 views

How can I modify the strings of a binary file?

When I use strings filename, it lists all strings in a binary file. And now, I want to modify the strings that listed. But, how?
user avatar
  • 29
0 votes
1 answer
81 views

"EOF in backquote substitution" when trying to run a binary file

I get the following error when trying to run a binary file with the command: tmp/123.bin tmp/123.bin: 1: tmp/123.bin: Syntax error: EOF in backquote substitution I have no idea what could be causing ...
user avatar
  • 101
0 votes
1 answer
156 views

What is HIT Archive Data?

When I run file image.bin the output I get is: image.bin: HIT archive data I'm not sure exactly what this file/archive type is and Google isn't giving me a solid answer
user avatar
8 votes
2 answers
1k views

How to print zeros and ones of a file

Long story short: how to print in a terminal the binary digits constituting a file e.g. a library .so or a simple text .txt file PC hardware works with electrical signal (basically it's an ON/OFF ...
user avatar
  • 2,488
0 votes
1 answer
181 views

null characters at the beginning of an ASCII log file

We have an java application that log4j2 to generate log file and have script to stop the process before restart it with another script. There is 5 minutes pause between stop and restart at the ...
user avatar
1 vote
0 answers
20 views

Size of ELF function including called functions

Is there a program which is able to determine the size (in bytes) of some function in an ELF binary recursively including every function called from within that function?
user avatar
  • 186
0 votes
1 answer
47 views

Merging inputs on my command

I have a numeric table for each letters in enlglish. Evey letter has random number. And my command converts theese random numbers to binary codes. But it can convert just 1 letter at the same time. I ...
user avatar
0 votes
1 answer
154 views

What introduce package/binary incompatibility?

Following up on Is Ubuntu LTS binary compatible with Debian? I know Ubuntu and Debian binary packages are incompatible more often than not. I know mixing packages from different sources is generally a ...
user avatar
  • 495
3 votes
1 answer
142 views

Bad byte count while using hexdump

I am trying to display a binary file with records consisting of: 8 bytes unsigned int 4 bytes unsigned int 4 bytes unsigned int 4 bytes unsigned int 4 bytes unsigned int I try to display it using ...
user avatar
  • 569
0 votes
1 answer
525 views

How to execute a go binary file with crontab?

I have created a binary file from a Go script, and now I need to run it with crontab. The binary file runs without issues executing it manually from the command line. I am using Ubuntu from WSL. ...
user avatar
  • 1
0 votes
1 answer
38 views

How can I make a specific piece of code portable for running on different systems through a pipe?

Quite often, when I search a solution to a problem, I end up finding lines of code like the following: curl -s https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py | python - ...
user avatar
  • 319
3 votes
1 answer
706 views

Why can't I use the strings command on the strings binary?

I cannot run the strings command on the strings binary (which is for me located at /usr/bin/strings: $ strings $(which strings) strings I also can't copy it and try it on the copy of it: $ cp -L $(...
user avatar
0 votes
2 answers
511 views

Is the strings command equivalent to cat on non-binary file?

This is potentially a stupid question, or simply the answer might not be helpful—but I am curious. It looks like the strings command and the cat command are equivalent on non-binary files. Is this ...
user avatar
9 votes
3 answers
3k views

How do I create binary file with certain value?

I need to create a binary file that is filled only with 11111111. I only know how to create zero-filled binary with dd if=/dev/zero bs=18520 count=1 Could you please say to me what a command in ...
user avatar
10 votes
4 answers
24k views

Why do i get binary output using curl

Not sure if it is ok to share the website I tried to get its source, but I think it is necessary for a better explanation. And I apologize if it's not in advance The command: curl -k -L -s https://www....
user avatar
  • 147
2 votes
1 answer
334 views

Does busybox have a tool for dumping 4 byte words as hex on a little endian machine?

I am trying to use busybox to dump files in /sys and /proc. I happen to have an embedded device with busybox 1.31. I noticed that xxd does not have the -e option for little endian. I can't figure out ...
user avatar
  • 153
3 votes
1 answer
463 views

ELF Magic meaning of "7f" magic number?

I am studying ELF binary anatomy / structure and there are lots and lots of resources out there that describes what the ELF magic is. I understand the 45 4c 46 = ELF signature thing but what no source ...
user avatar
  • 151
0 votes
1 answer
140 views

Existing .ko file update to work with newer kernel?

I have a binary .ko driver file that I don't have source for. Can I somehow use that .ko file with a newer kernel version? For example, recompile to add kernel header to it?
user avatar
3 votes
1 answer
64 views

Checksum of binary changes after rsync-ing to remote machine [closed]

I'm attempting to copy a binary to a remote machine using rsync, however it appears to corrupt in some way, with both file and md5sum noting the files difference, rsync on the other hand does not ...
user avatar
  • 61
0 votes
4 answers
263 views

Grep for only binary (0,1) numbers in a file with base 10 numbers

So let's say i have a file with both binary numbers (0,1) and some other numbers in base 10 (0-9): 010... 10567 011... 23678 ... etc. the above example isn't actually their exact representation but ...
user avatar
0 votes
1 answer
48 views

the value of system calls are 0 in symbol table

i use the following command to see the symbol table of my binary: readelf -s mybinary you can see part of the output below: as you can see the value of all system calls such as printf and exit are ...
user avatar
  • 1
2 votes
1 answer
2k views

Run a binary file via systemctl

I have a file named MFBot_Konsole_x86_64 that I downloaded from a website, to run it I just type ./MFBot_Konsole_x86_64. The file location is: /home/rafael/botShakes/ The file is a binary file, for ...
user avatar
0 votes
1 answer
225 views

Convert Binary Data Stored as ASCII to Binary

I've got a load of binary data stored as ASCII text in a file like this: 0b 0000 0001 0b 0000 0000 0b 1111 0001 etc How would I convert this to a raw binary bitstream, and save it to disk? Can this ...
user avatar
1 vote
1 answer
212 views

How to check if a large binary file contains the contents of another one?

I have a large binary file e.g. a WAV file which I suspect might contain the whole sequence of bytes of a smaller WAV file. How do I check if it does? If it does, how do I find the starting position? ...
user avatar
0 votes
0 answers
29 views

yarn -v , nodejs -v and other command don't output nothing : 0 line

I have a dedicates serveur with ubuntu 14 and plesk on it (not my choice). I could launch without problem from my admin user: cmeneux@sd-111960:~$ yarn -v 1.22.5 cmeneux@sd-111960:~$ npm -v 6.14.8 ...
user avatar
  • 1
0 votes
1 answer
81 views

No binary after python3-pygments

I need pygmentize for my Latex document. Since minted seems to work only with the python3 version, I want to install python3-pygments. (I'm using Ubuntu 16.04.7 LTS) Now that seems to work at first, ...
user avatar
  • 151
0 votes
1 answer
168 views

stdout equivalent in pure binary?

Heyo all! I know this sounds like a super ambiguous question, but I think it's relevant. First, let me define some terms. Binary In this question, meaning the literal 1s and 0s that the computer ...
user avatar
  • 367
0 votes
1 answer
43 views

compile linux into a binary to run a VM

I know there is a project that allows one to compile linux kernel into a (linux executable) binary that can be run from the linux host to create a guest VM.... I always forget the name of the project. ...
user avatar
  • 505
0 votes
1 answer
550 views

convert encoding of id3 tags of mp3 file

My mp3 file has id3 tags which can be displayed in a terminal on my debian buster linux for example by using the program id3tool or id3. If my shell (xfce4-terminal) has a set default character ...
user avatar
  • 145
0 votes
1 answer
699 views

Executable binaries labelled as shared library files

After compiling software from source code, I can usually launch the compiled binary by double-clicking on it. Recently however, most of my compiled binaries are not responding to double-click, even if ...
user avatar
  • 155
0 votes
2 answers
298 views

Why does dos2unix abort converting files with special characters by default?

The man page for dos2unix states: Binary files are automatically skipped, unless conversion is forced. ... -f, --force Force conversion of binary files. If you run dos2unix without the -f flag ...
user avatar
1 vote
2 answers
388 views

Convert a textual representation of a float to actual numeral using command line

I have a double printed as text. Is there a way to pass that source text number to some utility in order to get the actual numeral i.e. the nearest actual representable double value? Either in decimal/...
user avatar
  • 1,195
1 vote
0 answers
862 views

Search and 'in-place' replace strings in binary file

I want search and 'in-place' replace strings in binary file (case-sensitive, colon-separated strings). What method would be more clean, sed or bbe? sed -i.bak 's/F:O:0/B:A:R/g' file.bin bbe -e 's/F:O:...
user avatar
  • 437
3 votes
1 answer
718 views

How to disassembly multiple functions using Linux utility objdump?

After a program is compiled and the binary file is generated, we can use objdump to disassemble the binary file and extract the assembly code and a lot of information. However, using -j .text with ...
user avatar
1 vote
1 answer
756 views

How can we perform an arithmetic operation on a register using GDB? [closed]

I want to inject a bit-flip fault into a running program. For this purpose, I'm using gdb to insert a breakpoint into the target program and then flipping a single bit in a random-selected register. ...
user avatar
1 vote
1 answer
55 views

Which binary would be run when we have multiple installations?

I wanted to set gsettings as /usr/bin/gsettings so I created an alias. But I am not sure if that works: $ type gsettings gsettings is aliased to `/usr/bin/gsettings' gsettings is /home/linuxbrew/....
user avatar
  • 1,362
0 votes
1 answer
2k views

What is the encoding format of a binary file(OBJ file,a.out,ELF etc..) [closed]

When I open a binary file in vim, I see the mnemonics instead of the 0s and 1s. I believe this is due to the fact that vim by default opens the file in ASCII mode. Is my understanding right? What is ...
user avatar
  • 113
-1 votes
1 answer
158 views

How to determine the number of records in a binary file given the delimiter

I want to determine the number of records in a given binary file. The delimiter of the file is taken as input from the user.the total How may I proceed ?
user avatar
-1 votes
2 answers
822 views

How to determine the Number of records in a binary file that has fixed size records [closed]

I am trying to determine the number of records in a binary file. The size of the binary file is determined by wc -c. The delimiter is unknown .the size of records is fixed. The exact size of each ...
user avatar
6 votes
1 answer
2k views

How to fix onedrive corrupt zips with a bash script

Currently onedrive generates zip files that are broken to most software. https://www.bitsgalore.org/2020/03/11/does-microsoft-onedrive-export-large-ZIP-files-that-are-corrupt As we can see here, the ...
user avatar
  • 1,035
0 votes
1 answer
65 views

How do linux distros like Debian, Red Hat make many binary packages from one source package? [closed]

I wonder how linux distros like Debian, Red Hat, Gentoo, Ubuntu make many binary packages from one package? When I compile package, they just become install all in one. So my questions are: How do ...
user avatar
0 votes
1 answer
1k views

zip/compress a .bin file

I have a .bin file size of 8MB; is it possible to compress it or zip it? Tried with 7z but 8MB -> 7.90 MB so any relevant changes. Is there any other tools? Or simply is it not possible?
user avatar
  • 5
0 votes
3 answers
160 views

BASH binary to Hex to match PHP bin2hex function?

In bash I can call PHP and run the following: testKey='8798(*&98}9%"^8&]8_98{9798**76876' testHex=$(php -r "echo bin2hex('$testKey');") echo $testHex And that will result in ...
user avatar
1 vote
4 answers
669 views

How to count the number of bytes in a very large file, grouping the same bytes? [duplicate]

I am searching for a way to get a statistics on a very large (multiple times larger than the available RAM) the outputs what byte values in the files are present and how often: A0 01 00 FF 77 01 77 ...
user avatar
  • 163

1
2 3 4 5 6