There are some files that we are downloaded from the internet that have extensions of .bin or .run. To run such files, we have to set the permission to execute those files. A .bin or .run file is a self-extracting binary file in Linux and Unix Operating systems. For example, Java and Flash are two examples of such files. In this tutorial, we will learn how to run .bin and .run extension files. So let’s get started.

Execute .bin/.run file in CentOS 8

Firstly, set the permission of the file which you have downloaded. For this open up the terminal and type the following command:

# chmod  x 

I have downloaded a file from the internet (file.run), to execute that file. Firstly, we need to set the permission to execute, as shown in the figure.

How to execute a .run or .bin file in CentOS 8 centos linux shell

You can also set the executable permission, by navigating to the properties of that file, as shown in the figures:

How to execute a .run or .bin file in CentOS 8 centos linux shell

In the properties, click on the permissions tab appear at the top and click on the checkbox (Allow executing file as program) as shown below.

How to execute a .run or .bin file in CentOS 8 centos linux shell

To run/execute this file open up the terminal and type the following command:

# ./file.run

How to execute a .run or .bin file in CentOS 8 centos linux shell

The same method described above is used to execute the .bin file.

Conclusion

In this tutorial, we learned how to set the permissions of .bin and .run files and how to execute these files in CentOS 8. I hope this tutorial will help you to set the permission of such executable files and how to execute them.