LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How do I execute a .bin file? (https://www.linuxquestions.org/questions/linux-newbie-8/how-do-i-execute-a-bin-file-383568/)

andi_kan 11-16-2005 12:12 AM

How do I execute a .bin file?
 
Okay, this is a fairly simple question but one which I am stumped at. Just as DOS/Windows recognises .exe files as executables, how do I run .bin files under my Linux (Mandrake 10.1)?

chrism01 11-16-2005 12:45 AM

If it's truly an executable eg try
file <yourfile.bin>
then
chmod u+x <yourfile.bin>
./<yourfile.bin>

perfect_circle 11-16-2005 01:35 AM

or
Code:

sh <filename>
without changing the file permissions

imitheos 11-16-2005 08:15 AM

Quote:

Originally posted by perfect_circle
or
Code:

sh <filename>
without changing the file permissions

this will work if it is a shell script (or other script that bash will understand)
if it is binary then it will not work.
It will say "cannot execute binary file"


All times are GMT -5. The time now is 10:37 PM.