Command To Run (execute) Bin Files In Linux

by on August 29, 2006 · 70 comments· LAST UPDATED January 15, 2014

in , ,

I have downloaded a file from internet that ends with .bin extension. The documentation (INSTALL.TXT) file says just run bin file. What command I need to type in order to run bin files in Linux or Unix-like operating systems?

Tutorial details
DifficultyEasy (rss)
Root privilegesNo
Estimated completion time1m
A .bin file is a self extracting binary file for Linux and Unix-like operating systems. For example Java or Flash are two examples of these types of file. Just type following two commands to run .bin files. In this example, I am going to run a binary file called file.bin.

Run .bin file in Linux / UNIX

Change the permission of the file you downloaded to be executable. Type the following command:
$ chmod +x file.bin

Start the installation process or run .bin file. Type the following command:

For example if .bin file name is application.bin. Type the following commands:
$ chmod +x application.bin
$ ./application.bin

Another example for Java Linux self extracting binary file:
$ chmod +x jre-1_5_0-linux-i586.bin
$ ./jre-1_5_0-linux-i586.bin

$ sh jre-1_5_0-linux-i586.bin

TwitterFacebookGoogle+PDF versionFound an error/typo on this page? Help us!

{ 70 comments… read them below or add one }

1 darthpooky July 7, 2008 at 10:50 pm

if that doesn’t work try sudo ./file.bin on debian
or su ./file.bin on other distros


2 Jarrett July 27, 2011 at 5:26 am

“chmod: cannot access `jre-6u26-linux-x64.bin’: No such file or directory”
What do I do, I am freaking out over it (Because ADHD) I tried it so many times it still won’t work, I’m also trying to play minecraft on Ubuntu


3 saraswathi July 13, 2008 at 3:30 am

resubmitting to be notified of a reply by email.

Hello ,
I was trying to extract from the java bin file. I could change the mode, but when I say ./filename.bin ( according to your last example), it says file not found although I am just cutting and pasting the file name and it is in the same directory.

[saras@node032 ~]$ chmod +x ./java_ee_sdk-5_05-linux.bin
[saras@node032 ~]$ ./java_ee_sdk-5_05-linux.bin
./java_ee_sdk-5_05-linux.bin: error while loading shared libraries: cannot open shared object file: No such file or directory
[saras@node032 ~]$
can you help please ? thanks



4 nixCraft July 13, 2008 at 8:47 am

yu need to install libstdc++ package to solve this problem. Use yum under centos/fedora/redhat or apt-get under debian/ubuntu Linux.


5 saraswathi July 13, 2008 at 7:01 pm

Thanks Vivek.
I managed to unzip it. I have a unrelated question on running java on a cluster. Where can I ask the question. I was not sure if I should ask about it here.



6 nixCraft July 13, 2008 at 9:13 pm

Try out forum


7 vishal August 19, 2008 at 4:35 am

while executing a bin file i am getting the message : End-of-central-directory signature not found.

pls help


8 pratik November 21, 2008 at 3:53 pm

i get the following erroe while running the ./Googleearthlinux.bin command that is the fllowing
Verifying archive integrity…Error in MD5 checksums: 97ca3ea1d8c49adb873a8a13114463b4 is different from 33fdc468b730cef74ac8f5cc4dc83259

what to do now?


9 nixCraft November 21, 2008 at 4:03 pm


Your file is corrupted. Delete current file and download fresh file again.


10 Andrej December 15, 2008 at 4:36 pm

I have a Synology 207+ at home running on Linux and the ARM architecture.
Now I want to install JRE so I can make Jetty run in order to be able to use Java servlets and jsp files in my webpage.
Now when trying to install j2re-1_4_2_19-linux-i586.bin I get an error:
380: /usr/bin/sum: Permission Denied
expr: syntax error
expr: syntax error
./install.sfx.15986: ./install.sfx.15986: 1: Syntax error: “(” unexpected

What does this mean? I’m not sure if I downloaded the proper JRE. Does someone know how to fix this? thanks


11 fatimah December 24, 2008 at 6:44 am

I have to run a UNIX shell script . What command I need to type in order to run UNIX shell files in Linux?


12 Arun May 22, 2011 at 9:08 pm

To run the UNIX shell script,type
Before running the above command,check the file permission because the file should have execute permission


13 Pate January 4, 2009 at 10:16 pm

When I normally klik the .bin file it opens with kate (text editor). I have tried to run the command, but it only opens mozilla and types it in the url section. What is wrong? I have installed libstdc++6


14 Rick Flores February 21, 2009 at 12:04 am

Hey guys,
I was trying to install SiteMinder Policy Server on CentOS 5.2. I already chmod+x’d it. As I executed the .bin file I received this error. I have googled it and this error is not mentioned in the install manual. I would appreciate some advise.

Rick Flores

[root@localhost SiteMinder Policy Server]# ./ca-ps-12.0-sp1-linux.bin
Preparing to install…
Extracting the JRE from the installer archive…
Unpacking the JRE…
Extracting the installation resources from the installer archive…
Configuring the installer for this system’s environment…

Launching installer…

‘SWING’ UI not supported by VM. Reverting to AWT.
Invocation of this Java Application has caused an InvocationTargetException. This application will now exit. (LAX)

Stack Trace:
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(
at java.awt.Window.init(
at java.awt.Window.(
at java.awt.Frame.(
at java.awt.Frame.(
at com.zerog.ia.installer.LifeCycleManager.g(DashoA8113)
at com.zerog.ia.installer.LifeCycleManager.h(DashoA8113)
at com.zerog.ia.installer.LifeCycleManager.a(DashoA8113)
at com.zerog.ia.installer.Main.main(DashoA8113)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
at java.lang.reflect.Method.invoke(
at com.zerog.lax.LAX.launch(DashoA8113)
at com.zerog.lax.LAX.main(DashoA8113)
This Application has Unexpectedly Quit: Invocation of this Java Application has caused an InvocationTargetException. This application will now exit. (LAX)


15 Srinivasa kp May 15, 2009 at 11:38 am

Sometimes you need to change the file name and then install.



16 Ziga June 2, 2009 at 7:19 pm

I am new to linux.My situation:
ziga@ziga-laptop:~$ chomd +x./math.bin
ziga@ziga-laptop:~$ /home/ziga/math/…/emlin701/math.bin
bash: /home/ziga/math/…/emlin701/math.bin: cannot execute binary file
What can i do? Is there an option to transform an .bin into an .iso file?
Thanks for your help.


17 Tesu July 10, 2009 at 7:32 am

Easier way… Just right click, goto permissions tab, and mark as executable. Then open the terminal and drag & drop the .bin or w/e file into it, and press enter.


18 Kyon August 21, 2009 at 6:33 pm

Thanks Tesu, heck of a lot easier


19 Andres Baldrich August 27, 2009 at 1:01 am

Im trying to install java 6.15 so I gave it 100% read write permission to everyone, and it still wont work. when I put $> jre-6u15-linux-i586-rpm.bin it says there is an error, order not found


20 Maux September 12, 2009 at 5:50 pm

For ubuntu you can just draw the file into terminal so it has the file location and type command run


21 Gannon October 14, 2009 at 12:51 pm

Having trouble with trying to set up Java Runtime Environment, in the terminal it says..

./jre-6u16-linux-i586.bin: 336: cannot create install.sfx.3679: Permission denied
/usr/bin/sum: install.sfx.3679: No such file or directory
[: 363: -ne: unexpected operator
[: 363: -ne: unexpected operator
chmod: cannot access ‘install.sfx.3679′: No such file or directory
./jre-6u16-linux-i586.bin: 366: ./install.sfx.3679: not found
Failed to extract files.

Any idea on how to fix this??


22 nixCraft October 14, 2009 at 1:27 pm

Make sure downloaded file is not corrupted and you must install it as the root user.


23 Kunal October 18, 2009 at 4:35 pm

I am trying to install jdk-6u13-linux-i586.bin in fedora 11.
and i am getting this error.
i have performed the steps as mentioned in answer.
please help me..

please enter “yes” or “no”.
Do you agree to the above license terms? [yes or no]
./jdk-6u13-linux-i586.bin: ./install.sfx.2551: /lib/ bad ELF interpreter: No such file or directory
Failed to extract the files. Please refer to the Troubleshooting section of
the Installation Instructions on the download page for more information.



24 Rene November 2, 2009 at 4:07 am

Hi Kunal, did you succeed to install JDK? I have the same problem.


25 rizal November 21, 2009 at 1:09 am

Thanks, now adobe reader is running on my machine.


26 don January 30, 2010 at 3:26 am

Thank You
easy to follow instructions. I have been left confused with other explanations


27 Carol February 17, 2010 at 8:02 pm

On fedora12

Error loading the runtime (/tmp/air.ZxdZsy/build/opt/Adobe AIR/Versions/1.0/ cannot enable executable stack as shared object requires: Permission denied)


28 balcka March 17, 2010 at 11:00 am

HELP……I am begging if someone could tell me how to execute a file, it has been doing my head in for the last 3days and i have tried everything. So please, please, please lert me know A.S.A.P tanks one love


29 Ted April 1, 2010 at 11:51 am

I am trying to install jre on a HP thin client with about 256 Free space on the built in flash memory but when I run the comman ./jre blah blah blah and accept the agreement
i get the following output

Failed to extract the file. Please refer to the Troubleshooting section of the installation instructions on the download page for more information.

please help someone – I am trying to use a thin client to connect the a server via a web browser – wanting the run the business database from the browser – but on Windows, when you connect for the first time – you have to install Jinitiator but I dont know how to achieve this in linux so I was trying this – anyone knwo what I need to do


30 Ted April 1, 2010 at 11:53 am

forgot to add a line to the error above

after the Extracting…..
it says
./jre *********.bin; line 366 ./install.sfx.22300; cannot execute binary file


31 bender June 17, 2010 at 3:28 pm

apt-get install ia32-libs


32 Elf September 13, 2010 at 11:55 am

Thanks a lot! I have search for 2 hours to the solution, and here it is!


33 bender June 17, 2010 at 3:28 pm

if you got this error on an ubuntu 64bit system, try to install the ia32 libs

./jre *********.bin; line 366 ./install.sfx.22300; cannot execute binary file

sudo apt-get install ia32-libs


34 Mark April 5, 2012 at 5:26 pm

Thanks, exactly what was needed to get the legacy Adobe Air up and running on Mint 10 (64 bit)


35 Luntu July 8, 2010 at 9:22 am

Hi, Thanks it works for me.
R. Luntu


36 Jack September 8, 2010 at 1:41 am

Thanks all, lots of good advice on linux binaries for the novices out here.


37 ginger September 12, 2010 at 10:53 am

hey while installin java for a cloud cluster d agreement thing came up but its not exitin back to the terminal.. how do i get back to d terminal do tat it installs java??


38 Tro October 6, 2010 at 12:18 am

Hi everyone,
Does speicial installation required on RedHat5 (i686) for installing JDK? I downloaded the java twice and i am still having this issue. Can someone please advice me if it me trying to install the wrong 64bit java version or the installation document is different?

chmod +x jdk-6u20-linux-x64.bin
…….Do you agree to the above license terms? [yes or no]
./jdk-6u20-linux-x64.bin: line 477: ./install.sfx.3205: cannot execute binary file
Failed to extract the files. Please refer to the Troubleshooting section of
the Installation Instructions on the download page for more information.



39 Norbertos December 5, 2010 at 2:52 pm

Very useful instructions …


40 Hareen December 18, 2010 at 7:44 am

hi all…
im tryng to run jdk-6u23-linux-i586.bin in my ubuntu 8.10…. bt unable to..

hareen@hareen-laptop:~$ sudo apt-get install ‘/home/hareen/Documents/jdk-6u23-linux-i586.bin’
Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Couldn’t find package

this is the error im getting…..
please help…..
Thnx in advance!!! :)


41 sahil February 28, 2011 at 5:39 am

i am new to shell, i want to acceess a web page on linux server from a remote machine .
can any one guide me what to do or which forum to follow….
plz….. its urgent


42 Rathish March 6, 2011 at 7:28 pm


I have a list of commands to be executed in UNIX on dialy basis….

Is there anyway that i could save those commands in a document and execute those commands by using .sh….or anything else command?

I tried using .sh but it executes only the first line, what i need to do to make it run all the commands…?



43 Arun May 22, 2011 at 9:12 pm

You can use the “Cron” or “at” command to execute the jobs on a daily basis


44 soundarapandian April 20, 2011 at 4:51 am

Thanks very useful


45 mohamed May 10, 2011 at 8:55 am

how i can install exe modem file to linux suses please answer me cuz i need it


46 Banter November 12, 2011 at 4:15 pm

Wine is the only windows emulator that I know of that would work. Have you checked your /etc/pppd and /etc/ppp.conf files to see if there isn’t already a driver for your modem? If it’s a Ethernet NIC (network interface card) and not a “modem”, then it will probably work straight out of the box.


47 mohamed May 10, 2011 at 8:56 am

i want to install modem zain connect it’s setup.exe to linux how i can do that please tell me


48 Arun May 22, 2011 at 9:16 pm

Hi ,
I bit confused with LVM and RAID.Can someone explain me with a realtime example


49 Todd May 24, 2011 at 10:53 pm

Thank you. Very helpful!


50 chestin June 8, 2011 at 5:41 am

thank u for the simple yet very helpful comment.


51 John July 14, 2011 at 8:18 pm

Thanks very much, it was a 64Bit sudo apt-get install ia32-libs did the job


52 Harry August 24, 2011 at 6:38 am

What about is there any file’s name can be used to save a file to execute in terminal without command it from terminal? What i mean is i want it to be operated when i click on the file’s icon, it will directly run its function in terminal of linux fedora. (e.g. file.txt or or file.trx) but to run it in terminal is “file.?” ?

Thanks in advance.


53 searchit November 2, 2011 at 5:28 am

I m installing java on AIX machine It shows error on

./install.sfx.409050 : 0403-006 execute permission denied .


54 nixCraft November 2, 2011 at 12:19 pm

You need to set execute permission using the chmod +x command:

chmod +x


55 searchit November 3, 2011 at 10:42 am

thanks Vivek, But I alredy gave the permission to that file


56 Arslan November 2, 2011 at 12:39 pm

Dear All. M having the following error while executing the commend

root@root:# ll | grep i86bi_linux-adventerprisek9-ms
-rwxrwxrwx 1 nayatel nayatel 93580556 2011-11-02 16:29 i86bi_linux-adventerprisek9-ms*
root@root:# ./i86bi_linux-adventerprisek9-ms
bash: ./i86bi_linux-adventerprisek9-ms: No such file or directory

Kindly suggest any solution


57 Banter November 12, 2011 at 4:09 pm

Looks like it’s been made executable (* at end) and you are the owner, the file has an inode and at least one file linked to it…. I take it that ll is an alias for ls -l or something akin to that, so unless it searches across multiple directories, and you aren’t in the correct directory to run the script (of course the file has to be in the PWD for it to run) then more than likely the file is corrupted and you have to download it again.


58 Huiou November 8, 2011 at 1:46 am

i success to run it.


59 Simon November 21, 2011 at 1:39 am

On Ubuntu/Kubuntu variants…
$ ./AdobeAIRInstaller.bin
bash: ./AdobeAIRInstaller.bin: No such file or directory

Fixed by running:
$ sudo apt-get install ia32-libs
$ ./AdobeAIRInstaller.bin

Thank you all above who suggested this!


60 Monir December 27, 2011 at 6:21 pm

I am using CentOs 6 and this “compat-libstdc++-33″ package along with its dependencies are responsible to run ./filename.bin file. After installing the above package, I have successfully executed .bin file in CentOs 6.

Simply run “yum install compat-libstdc++-33″ to install this package.


61 vmedaq February 1, 2012 at 1:37 pm

I wanted to make a .bin file which will copy all the files with name having “am” in common… usually in the terminal we use “cp *am* “… I wrote the same command inside the .bin file, a shown below… but it acts like “echo”… please help.

file name “copier.bin”
cp *am* /home/vmefiles/
then I did “chmod +x copier.bin
and finally “./copier.bin” but the out put is just:
“cp *am* /home/vmefiles/”

please help…


62 Erik May 23, 2012 at 7:32 am

Thanks, that helped!


63 ronak July 12, 2012 at 6:10 am

In linux run level 6,
how is created 1 to 6


64 Saqib Mustafa Abbasi August 18, 2012 at 1:51 pm

Very simple, to the point and helpful thanks mate :)


65 Dhipal October 10, 2012 at 5:29 am

hello friend i am dhiru .. i want to down load unix program running environment from where i can download it .. plz tell me soon as possible..


66 awais October 17, 2012 at 2:37 pm

good work


67 Iam SASANK January 25, 2013 at 8:28 am



68 Rich April 14, 2013 at 9:14 pm

WHAT the fuk is with this linux file running bullshyt? You have to learn how to extract files in a dos/like system individually? I mean Microsoft sux cuz of the viruses but this is almost as annoying! The system itself is like a self-virus! WHY CANT YOU PUSH “DOWNLOAD” AND HAVE THE DAMN THING JUST RUN THE DAMN PROGRAM??


69 venkat November 24, 2013 at 2:36 pm

[root@siva workspace]# ./addition.c
bash: ./addition.c: Permission denied

When I tried to excute the file by using above command I am getting error like permission denied can anyone please help me regarding this problem


70 RH User January 15, 2014 at 9:13 pm

You need to compile addition.c:

make addition

If that failed, run the following to compile c program:

gcc -o addition  addition.c


Leave a Comment

Tagged as: , , , , , ,

Previous Faq:

Next Faq: