Home » Computers » Software » How to execute a .bin file in Ubuntu

How to execute a .bin file in Ubuntu



Now that you have installed Ubuntu, you may like to install some of your preferred programs. Unlike in Windows, you don’t get executable files in Ubuntu. There are different types of executable files in Ubuntu, and one of the most common file extensions is .bin file.

If you download a .bin file and try to straight away execute it, in Ubuntu you won’t be able to do so. You’ll need to tell Ubuntu that this file must be “executed”, and not opened in another program, as in, like .odf files are opened by OpenOffice.

So how do you execute a .bin file in Ubuntu? Save the file somewhere on your Ubuntu desktop. Then right-click the file and click Properties. This brings up this window:

execute-bin-file

Click the Permissions tab and check the “Allow executing file as program” checkbox.

execute-bin-file-1

Press Close and you are ready to execute a .bin file under Ubuntu.

In case it doesn’t work you will have to resort to executing some commands inside the terminal window. Open your Terminal window (Applications > Accessories > Terminal window). In case you have saved the bin files, let’s say executethis.bin file on your Desktop, execute this command first of all:

sudo chmod +x executethis.bin

It will ask for your password. Enter it and hit Enter. Please remember that being Linux, Ubuntu is case sensitive. Now, simply execute the file by executing:

./executethis.bin

It may again ask for the password, but this way, now you can execute your bin file.

6 thoughts on “How to execute a .bin file in Ubuntu

  1. lucky verma

    it doesnt work for ,i have tried so many times but everytime i got the same messege.
    koko@ubuntu:~$ sudo chmod +x rp11.bin
    chmod: cannot access `rp11.bin’: No such file or directory

    what can i do,
    howe do i install these bin files

  2. admin Post author

    Hello Lucky.

    May be you’re not in that directory? The file actually has to be there. Suppose rp11.bin is in the Downloads folder, first you’ll have to do

    sudo cd Downloads

    You’ll first have to go to that particular folder. HTH

  3. woazala

    It didnt worked for me. When choosing the install directory I've got this error
    Cannot write to directory “/opt”.

    It worked fine when I run

    $sudo ./executethis.bin

  4. Levi

    Don’t need to do sudo cd Downloads, just cd Downloads. cd stands for current directory. Make sure your file is in fact in the Downloads folder and make sure that the “D” is capital.

Leave a Reply

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

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>