How to visualize this binary file better?

I look at the source code of file and see

enter image description here

I run file script and see

 ELF 64-bit LSB executable, AMD x86-64, version 1 (SYSV), 
 for GNU/Linux 2.6.9, dynamically linked (uses shared libs), not stripped

I recall that I have been able to read this binary as plain text sometimes and saw that it is filesystem dependent script. However, I forgot how I did it. The script is just splitting a file and just interested in what is the split pattern what it is using. However, with those ^@ signs it is difficult to make sense of it. However, there are rather much text which you can read.

How can you visualize such a binary file better?

Upvotes: 2

Views: 989

Answers (1)

jlliagre
jlliagre

Reputation: 30803

I would suggest to use the strings command:

strings script | less

Note that despite its name, script is not a script but a binary executable, as file shows.

Upvotes: 5

Related Questions