Execute .bin and .run file Ubuntu Linux


In order to execute .run and .bin file in Ubuntu, they need to be marked as an executable type.

This can be achieved in two ways, through Terminal or using GUI ( Graphical User Interface)

Using GUI

  1. Move .run/.bin files to your Home Dir.
  2. Select the file + Right Click -> Properties.
  3. Go to Permissions tab.
  4. Tick the Allow executing file as program radio box (next to Execute).
  5. Now, Click, Apply Permissions to Enclosed Files.
  6. Close the Property Window.

Executing .Run/.Bin Files

  1. Double-Click the .run/.bin file.
  2. If noting happens, right click on the file and select Run in Terminal.

Using Terminal

  1. Open Terminal
  2. We need to change the file type (cmod) as executable

chmod +x YourfileName.bin

Now execute the file

./YourfileName.bin

Note: If you get an error message like Permission Denied. Switch to the root user using sudo and run the file,

sudo ./YourfileName.bin

Note : .bin and .run files are though easy to install but not so easy to remove, it depends on the developer who made it, so please do check the uninstallation procedure before installing such files.

It is always advisable to download such files from a trusted source.

Some of such .bin or .run files may require root permissions to get them installed, as root access gives full access permissions to the file to your Operating system, which may lead to security issues.

Advertisements
Try Out Code2care Dev Tools:

Advertisements



Android Java Linux Microsoft Google Python macOS Notepad++ Microsoft Teams CSS PHP SharePoint Html Linux C Programs Bootstrap jQuery Sublime Android Studio Facebook Eclipse WhatsApp News MySQL Json HowTos JavaScript FTP S3


Advertisements


Code2care is an initiative to publish and share varied knowledge in programming and technical areas gathered during day-to-day learnings and development activities.

Students and Software Developers can leverage this portal to find solutions to their various queries without re-inventing the wheel by referring to our easy to understand posts. Technical posts might include Learnings, Tutorials, Trouble-Shooting steps, Video Tutorials, Code Snippets, How Tos, Blogs, Articles, etc.
🎉 We are celebrating the 10th years of Code2care! Thank you for all your support! We hope we made a difference.
We strong support Gender Equality & Diversity.

We stand in solidarity with Ukraine - Make a donation to UNHCR - https://donate.unhcr.org/in/en-in/ukraine-emergency