This guide will teach you how to run a file in Linux, including files with the .RUN extension, which often contain program data and installation instructions for Linux software. You can achieve this using either the command line (terminal) or a graphical file manager.

Before you start: Ensure you have access to a Linux environment and the file you wish to execute.

How to execute .run files in Linux

Follow these steps to successfully run a .RUN file or any other executable file in Linux.

Method 1: Using terminal commands

  • PressCtrl+Alt+T to open a Terminal window.
  • Navigate to the directory containing the file using the cd command. For example, typecd Downloads and pressEnter.
  • Check the file’s permissions by typingls -l and pressingEnter.
    • Alternatively, typels -l <filename.run> to view permissions for a specific file.
    • The first column indicates permissions (r for read, w for write, x for execute). If ‘x’ is missing, the file is not executable.
  • Typechmod +x <filename> and pressEnter to make the file executable for all users.
    • If you only want to make the file executable for yourself, usechmod u+x <filename.run> instead.
  • Type./<filename> and pressEnter to execute the file.

Method 2: Using a file manager

  • Open your file manager (e.g., Files, File Manager).
  • Locate the file you want to run.
  • Right-click (or control-click) the file and selectProperties.
  • Click the Permissions tab.
  • Check the box next to Executable or Is executable and save the changes.
  • Double-click the file in your file manager to execute it.
Pro tip: While .RUN files are common for Linux software, always check if the application is available in your distribution’s package manager (like Ubuntu Software Center or SNAP store) for easier and more secure installation.

What to do next?

After successfully executing your file, you might want to verify its functionality or dive deeper into Linux file management. For software installations, confirm that the program launched correctly and is accessible from your applications menu.

Consider exploring other command-line tools for managing files and permissions, which can provide more granular control over your system. Understanding file permissions is a fundamental skill that enhances your ability to manage your Linux environment effectively and securely.