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 (file.run), to execute that file. Firstly, we need to set the permission to execute, as shown in the figure.
You can also set the executable permission, by navigating to the properties of that file, as shown in the figures:
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.
To run/execute this file open up the terminal and type the following command:
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.