Things are not "executable" that are written by the user by default, you have to make it executable... chmod +x /path-to/filename.ext then you can execute it with the absolute or relevant path name ./filename.ext ~/Folder/filename.ext /path/to/Folder/filename.ext Answer from acejavelin69 on reddit.com
🌐
GeeksforGeeks
geeksforgeeks.org › linux-unix › how-to-run-file-in-linux
How to Run a File in Linux - GeeksforGeeks
July 23, 2025 - Right-click on the file, choose "Open With", and select the appropriate application to open it. Here is how you can do it - ... You may see your file running now. To run a file in Linux using the terminal, follow these steps: 1. Navigate to the ...
Discussions

How can i run a downloaded file?
you should give more details. you extract the files from the archive, then what to do next totally depends on the files that were in the archive. so extract the files, and give more details. More on reddit.com
🌐 r/linux4noobs
21
1
March 9, 2023
how to run a .bat file on linux?
You don't... "bat" files are Windows, or more accurately DOS, "batch" files and not for Linux. This just isn't how it works... Might be better to tell us what you are trying to accomplish in the long run and maybe we can direct you on a different, more usable path. More on reddit.com
🌐 r/linux4noobs
33
10
November 24, 2023
How do I run an executable from the terminal on Linux Manjaro?
Things are not "executable" that are written by the user by default, you have to make it executable... chmod +x /path-to/filename.ext then you can execute it with the absolute or relevant path name ./filename.ext ~/Folder/filename.ext /path/to/Folder/filename.ext More on reddit.com
🌐 r/linux4noobs
11
8
June 2, 2021
.run files
Does the file have executable permissions? (chmod u+x , without the "u" if needed for root user as well) More on reddit.com
🌐 r/linuxquestions
7
3
November 28, 2021
🌐
Stack Overflow
stackoverflow.com › questions › 35259825 › linux-how-to-run-execute-a-file-in-the-command-line-without-the
linux - how to run/execute a file in the command line without the ./ - Stack Overflow
the idea is to do this way in any directory, not only one in specific! 2016-02-07T22:40:41.723Z+00:00 ... Edit your "$PATH" variable to include the directory in which this file is located. For example, this is a part of my "$PATH": /usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/rany/bin ... After putting an executable script in one of these directories you'll be able to execute it by simply typing its name at the command line.
🌐
Parklanejewelry
www2.parklanejewelry.com › home › 5+ compelling ways to execute a file in linux
5+ Compelling Ways To Execute A File In Linux
March 23, 2025 - There are two main ways to execute a file in Linux: using the command line or using a graphical file manager. To execute a file using the command line, open a terminal window and navigate to the directory where the file is located.
🌐
Wikihow
wikihow.com › computers and electronics › operating systems › linux › how to run files in linux: 9 steps (with pictures) - wikihow
How to Run Files in Linux: 9 Steps (with Pictures) - wikiHow
June 18, 2025 - If asked to do so, enter the password you use to log into your Linux computer and press Enter. ... Type the command to run the file. The command you use to open the file is going to be a different depending on the file type. Enter one of the following commands and press Enter to run the file.
🌐
Living the Linux Lifestyle
livingthelinuxlifestyle.wordpress.com › 2020 › 02 › 09 › how-to-execute-files-in-linux
How to Execute Files in Linux – Living the Linux Lifestyle
February 9, 2020 - You can mark some files as executable within the GUI. Start your favorite file manager, then navigate to the desired program. Right-click the program, then select the “Permissions” tab. Under Execute, change the permissions to the desired value, such as Only Owner, Only Owner and Group, or Anyone.
🌐
Gcore
gcore.com › home › developers › how to make a file executable in linux
How to Make a File Executable in Linux | Step-by-step Guide
April 8, 2025 - Running an Executable. Once a file is executable, you can run it from the terminal. If the file is in your current directory, you’d typically prefix it with ./, as in ./my_script.sh. Let’s walk through the steps to make a file executable in Linux.
Find elsewhere
🌐
Parklanejewelry
www2.parklanejewelry.com › home › 5+ ways to execute a file in linux (with clear examples)
5+ Ways to Execute a File in Linux (with Clear Examples)
March 22, 2025 - To do this, use the following command: ... Once a file is made executable, you can run it by typing its name in the terminal. For example: ... The terminal is pivotal in the process of running files in Linux because it provides a direct interface to the operating system.
🌐
Wikihow
wikihow.com › computers and electronics › operating systems › linux › how to execute .run files (& more) in linux: 2 easy ways
How to Execute .RUN Files (& More) in Linux: 2 Easy Ways
May 1, 2026 - In the default file manager in Ubuntu and many other versions of Linux, you can do this by right-clicking (or control-clicking) the file you want to run and selecting Properties. It should be similar in other file managers.
🌐
Parklanejewelry
www2.parklanejewelry.com › home › 5+ ways to execute a file in linux: a comprehensive guide
5+ Ways to Execute a File in Linux: A Comprehensive Guide
April 2, 2025 - Once the correct permissions are set, the user can execute the file using the ‘./’ prefix, followed by the filename. For example, to run the ‘script.sh’ file, use the following command: ... Understanding file permissions is crucial for running files in Linux effectively.
🌐
Quora
quora.com › How-do-I-run-a-file-in-terminal-using-Linux
How to run a file in terminal using Linux - Quora
Answer (1 of 5): You can only run executable files. You can confer executable properties to any file using the chmod command. You need to do this if the file is a script that you wrote. If the file was created by a compiler & linker, it almost certainly has executable permissions. If you don't kn...
🌐
Medium
medium.com › @peey › how-to-make-a-file-executable-in-linux-99f2070306b5
How to make a file executable in linux? | by Peeyush Kushwaha | Medium
August 30, 2016 - To execute a file all we need to do is enter the path of the file on the command prompt. We’ll also need execute permissions on the file, like to read a file we’d need read permissions.
🌐
MakeUseOf
makeuseof.com › home › linux › how to read and execute from a file with the linux source command
How to Read and Execute From a File With the Linux source Command
September 23, 2022 - To test it out, write the commands in the code box above in a new file and use the source command instead of making it executable. # Create a new file and edit it vi test file . test_file echo $TEST # This will return "bed" As you can see, using the source command, you were able to update the environment variables of the parent process. This is the primary use case of the source command, i.e., to modify the parent environment. ... That's all the steps you need to update the Bash shell environment with the source command. The difference between Linux bash and source commands is that when you execute a script with the bash command, it tells the Linux kernel to create a new Bash process to read and execute the script, copy the output to the original shell process, and display it.
🌐
Reddit
reddit.com › r/linux4noobs › how can i run a downloaded file?
How can i run a downloaded file? : r/linux4noobs
March 9, 2023 - Windows executables do not run natively on Linux so you will have to run it trough wine. You might need to get additional DLLs, like dotnet45, with winetricks (not shipped with wine, you have to manually install it) if the program throws you an error. Once you have everything set up and extracted the zip contents to a local folder, go to that folder > right click > open terminal and run wine ./emulator.exe or whatever the file might be called.
🌐
MangoHost
mangohost.net › mangohost blog › how to make a file executable in linux
How to Make a File Executable in Linux
February 11, 2024 - Use the following command to make the file executable: ... Replace filename with the name of your file. Here are some similar commands that you might find useful: ... Create a script to automate repetitive tasks. Build a custom application using a programming language. Run a server or service on your Linux ...
🌐
LinuxWays
linuxways.net › ubuntu › how-do-i-run-a-file-in-a-terminal-using-linux-ubuntu
How do I run a file in a terminal using Linux/Ubuntu? – LinuxWays
To run a text file in Ubuntu, use the “nano” command along with the file name. In the following example, we are executing the nano command to run the “abc.txt” file: ... We can use the terminal to run ODT Files as well. To run the ODT File in Linux, use the “lowriter” command:
Top answer
1 of 5
636

You can mark the file as executable:

chmod +x filename.sh

You can then execute it like this:

./filename.sh

If you want to use a different command to start it, you can add an alias:

gedit ~/.bashrc

Add this at the end of the file:

alias <new name>='/home/<full path to script>/filename.sh'

Open a new terminal session or type source ~/.bashrc in your terminal to apply. Then simply use the new name to start the script.

2 of 5
66

There are two ways of making a file executable:

GUI Method:

Right-click the file and select Properties. Go to the permissions tab, then tick the box Execute: [ ] Allow executing file as program or in Nautilus Program: [ ] Allow this file to run as a program in Thunar.

Terminal / Command method:

You can either use:

cd /to/my/required/directory

Then run

chmod +x filename.extension

Or just run:

chmod +x /path/to/your/filename.extension

chmod does also have some more advanced options:

The spaces are to show that it is split up: - rwx --- ---

The first set of --- is User. The second is Group and the last is Other (anyone else)

r stands for Read, w for Write and x for eXecute.

So to allow everyone to read it, but only Group to execute and User to read and write it (but for some reason not execute) would be:

-rw- rx- r-- But this would be added to the command as:

chmod +rw-rx-r-- /path/to/file.extension

chmod also can do this in numbers. It is based on binary (I think, as it is 1,2 and 4)

So there are these numbers:

Execute by user is 100. Execute by group is 010. Execute by other is 001.

Write by user is 200. Write by group is 020. Write by other is 002.

Read by user is 400. Read by group is 040. Read by other is 004.

Then you add these together to get the desired combination.

So to allow everyone to read it, but only Group to execute and User to write it (but for some reason not execute) would be:

400 + 040 + 004 and 010 and 200

That adds up to 600 + 050 + 004 = 654.

You could then run the command.

chmod +654 /path/to/file.extension to set it.

And to set all permissions you can type:

chmod +rwxrwxrwx /path/to/file.extension

Or (this is a bit easier to write, but harder to remember each one):

chmod +777 /path/to/file.extension

Finally, you can do:

chmod -777 /path/to/file.extension

To take all permissions away from everyone.

And:

chmod +300 /path/to/file.extension

To add read and write for user, without affecting any other permissions (e.g. Execute permissions).

This website has a very useful little grid checkbox thing, whereby you can tick the options you want and it gives you the command:

However, not all the possible combinations are sensible to use; the main ones that are used are the following:

755 - Owner has all, and Group and Other can read and execute

700 - Owner has all

644 - Owner can read and write, and Group and Other can read

600 - Owner can read and write

And, if you're using non-trivial user groups:

775 - Owner can read and write, and Group and Other can read

770 - Owner and Group have all, and Other can read and execute

750 - Owner has all, and Group can read and execute

664 - Owner and Group can read and write, and Other can just read

660 - Owner and Group can read and write

640 - Owner can read and write, and Group can read

777 and 666 are rarely used, except in /tmp.

Thanks Ilmari Karonen for pointing out the ones in common usage!

🌐
Arch Linux Forums
bbs.archlinux.org › viewtopic.php
how do you execute a file from terminal? / Newbie Corner / Arch Linux Forums
July 17, 2009 - Not being able to run executable files in the same directory as you are in is a security measure. You can always do ./$executable as said before, or, if it's a script, call the interpreter to execute it: ... Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 ...