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.
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, type
cd Downloadsand pressEnter. - Check the file’s permissions by typing
ls -land pressingEnter.- Alternatively, type
ls -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.
- Alternatively, type
- Type
chmod +x <filename>and pressEnter to make the file executable for all users.- If you only want to make the file executable for yourself, use
chmod u+x <filename.run>instead.
- If you only want to make the file executable for yourself, use
- 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.
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.








