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

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

.run file on Linux

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

Run with

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.

Set exec permissions

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

# ./

Start file

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


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.

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

Karim Buzdar

About the Author: Karim Buzdar holds a degree in telecommunication engineering and holds several sysadmin certifications. As an IT engineer and technical author, he writes for various web sites. You can reach Karim on LinkedIn