Questions tagged [binary]
47 questions
76
votes
5 answers
How do I grep through binary files that look like text?
I have binary files that should be text (they're exported logs), but I can't open it with less (it looks ugly - it looks like a binary file). I found that I could open it with vi and I can cat it (you'll see the actual logs), but what I'd really…
Robyn Smith
- 861
- 1
- 7
- 5
50
votes
5 answers
Linux Command to find Strings in Binary or non ascii file
Is there any linux command to extracts all the ascii strings from an executable or other binary file? I suppose I could do it with a grep, but I remember hearing somewhere that such a command existed?
Ethan Heilman
- 711
- 2
- 8
- 10
16
votes
5 answers
Error importing large MySQL dump file which includes binary BLOBs in Windows
I'm trying to import a MySQL dump file, which I got from my hosting company, into my Windows dev machine, and i'm running into problems.
I'm importing this from the command line, and i'm getting a very weird error:
ERROR 2005 (HY000) at line 3118:…
Daniel Magliola
- 1,402
- 9
- 20
- 33
16
votes
4 answers
ASCII vs Binary vs Auto?
I'm transferring files between servers and just started noticing that some of them are getting modified to be one long continuous line as opposed to having the returns and line-breaks they originally had. I'm assuming this has something to do with…
Sampson
- 520
- 2
- 6
- 18
12
votes
2 answers
what is the point of stripping a binary/elf program?
I'm just wondering if stripping a program file has more benefits than just saving disk space.
user57077
11
votes
1 answer
How to send 0x80 byte to a tcp port using netcat or similar tool?
I'm trying to make a Memcached server respond as if I were using a binary protocol. If possible just command line answers pls, no code snippet in any programming language.
user120858
10
votes
1 answer
How can I get information about a binary file that won't execute?
When I run one of my user's applications named "myfile".
$ ./myfile
I receive the following output
bash: ./myfile: cannot execute binary file
My user expects the binary file to run. I assume this is a compilation error but am unable to confirm…
Eric
- 544
- 1
- 5
- 15
6
votes
1 answer
Command to refresh binary paths in CentOS?
This is probably really easy and I just can't seem to find it.
I'm moving binaries around between /usr/bin and /usr/sbin, and even though both folders are in my $PATH, moving one binary to the other causes the system to continuously look for it in…
Locane
- 409
- 1
- 7
- 20
5
votes
2 answers
Multi-Architectures and Their Binaries
Why is there a /usr/lib and a /usr/lib32 directory but only a /usr/bin and no /usr/bin32 directory on a AMD64 64-bit-install of Ubuntu? If or when Debian/Ubuntu start supporting multi-target-architecture binaries in their ELF's will this directory…
Nordlöw
- 165
- 5
5
votes
3 answers
Set binary registry setting through GPO
I've got a REG_BINARY registry key that I'd like to set via GPO. However, the GPO interface to add registry settings simply has a 'Value Data' text field.
I can set the type to REG_BINARY, but what format is the text field expecting the data in so…
growse
- 7,830
- 11
- 72
- 114
5
votes
4 answers
Strange stuff in apache log
I'm building some kind of webapp, and currently the whole thing runs on my machine. I was combing down my logs, and found several "strange" log entries that made me a bit paranoid. Here goes:
***.***.***.** - - [19/Dec/2010:19:47:47 +0100]…
aL3xa
- 153
- 5
4
votes
2 answers
Why do I sometimes get numbers back from the FileSystemRights access field when checking the ACL Access?
Sometimes I'll run a command like this, and I'll get back some easy to read, easy to interpret text:
PS D:\test> (get-acl test.txt).Access | Select FileSystemRights
FileSystemRights
----------------
Modify, Synchronize
...and other…
leeand00
- 4,807
- 13
- 64
- 106
4
votes
1 answer
call binary from docker container inside another docker container?
What would be the way to load a certain binary from a certain container in docker from inside another container?
container 1: web
container 2: ffmpeg
I would want to call ffmpeg binary living in container 2 from the container 1.
Confused on how to…
Rubytastic
- 223
- 1
- 2
- 14
4
votes
2 answers
Is there a diff/merge utility to compare binary files and synchronize data bit-by-bit in either direction based on differences in binary data?
I have a tricky dilemma. I've got some files on two different destination drives, copied from the same source drive. The source drive had been failing, so I used dd to copy over the data to one destination (with options conv=noerror,sync which fills…
purefusion
- 245
- 1
- 3
- 9
3
votes
1 answer
Postgres Restore Not Restoring Binary Data
This is a very urgent situation.
We have a postgres 9.4 database installed on a CentOs machine.
We are trying to take a backup from a Heroku Postgres database and restore it to the database on CentOs machine.
The commands we are using:
pg_dump -Fc…
septerr
- 141
- 4