Command To Run (execute) Bin Files In Linux

See all UNIX related articles/faq
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
Difficulty level Easy
Root privileges No
Requirements None
Est. reading time 1 minutes
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.
Advertisement

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:
./file.bin

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

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

🥺 Was this helpful? Please add a comment to show your appreciation or feedback.

nixCrat Tux Pixel Penguin
Hi! 🤠
I'm Vivek Gite, and I write about Linux, macOS, Unix, IT, programming, infosec, and open source. Subscribe to my RSS feed or email newsletter for updates.

80 comments… add one
  • ronak Jul 12, 2012 @ 6:10

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

  • Saqib Mustafa Abbasi Aug 18, 2012 @ 13:51

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

  • Dhipal Oct 10, 2012 @ 5:29

    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..

    • james Mar 9, 2016 @ 14:16

      Nah fam. work it out for yourself

  • awais Oct 17, 2012 @ 14:37

    good work

  • Iam SASANK Jan 25, 2013 @ 8:28

    It WORKS.. THNK Q :D :D :D

  • Rich Apr 14, 2013 @ 21:14

    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??

  • venkat Nov 24, 2013 @ 14:36

    [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

    • RH User Jan 15, 2014 @ 21:13

      You need to compile addition.c:

      make addition
      ./addition

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

      gcc -o addition  addition.c
      ./addition 
  • Reo Jul 8, 2015 @ 22:08

    Pls help
    [root@aoe /]# sh ./lnx_deploy_install.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…

    ./lnx_deploy_install.bin: line 2506: /tmp/install.dir.1510/Linux/resource/jre/bin/java: cannot execute binary file
    ./lnx_deploy_install.bin: line 2506: /tmp/install.dir.1510/Linux/resource/jre/bin/java: Success

Leave a Reply

Your email address will not be published. Required fields are marked *

Use HTML <pre>...</pre> for code samples. Your comment will appear only after approval by the site admin.