Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
do you mean open with an editor? if so, you wouldnt want to do that. .bin files are usually used to run. try something like ./nameOfFile.bin to run it.
you'd open it the same way you open any other file. are you planning on editing the file? if so, id recommend not to as youll most likely ruin the file. binary files are not meant to be edited in plain text.
why do you want to edit the file? do you mind telling what file it is? do you know if the file was created with an application and is serializable, or if its an installation file?
if you want to see what it looks like go ahead and open it. for the simplest way run the command 'cat nameOfFile.bin'. note that (if it actually IS a binary file) the characters in the file will appear to be random and wont make sense. its 'binary' data. it may be a program, such as a c++ program or java (not quite) program, which was compiled and the .bin file is the compiled code that the computer understands.
reading the binary data wont be of any use, i think.
Vi (or one of its descendants) will open in hexmode when it's a file with binary content. Alternatively hexdump will dump the content of any file in hex.
Do not use cat, it might ruin your terminal setup.
If your not a programmer, the contents of binary executables will not make much sense. You might consider to find a disassembler (don't know of any for Linux). This will convert the file to assembly code (which is a bit more human readible).
And editing binary executables can be usefull (if you know what you're doing). I've done it for simple things where hardcoded values needed to be changed and there was no access to source code.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.