Try ./filename.sh If that doesn't work, post the code error so I can more clearly see what the problem is. Hope this helps!

Answer from Bf109guy on askubuntu.com
🌐
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 6): [code ]./path/to/file/file_name.extension[/code] For the various other possible cases, you’ve provided too little information, which hopefully teaches you to provide context, logs and/or examples.
🌐
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
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.
Discussions

command line - Why do we use "./" (dot slash) to execute a file in Linux/UNIX? - Unix & Linux Stack Exchange

🌐 unix.stackexchange.com
November 30, 2010
It largely is, but it definitely ... on multi-user systems. In fact, here is an example from this site where an administrator switched to a users' home directory and found ps to be masked by an executable of that name. ... Just have absolute paths in the PATH environment variable. ... In Linux, UNIX and related operating systems, . denotes the current directory. Since you want to run a file in your current ... More on unix.stackexchange.com

How can i run a downloaded file?

🌐 r/linux4noobs
21
March 9, 2023
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

How to use .run file?

🌐 forum.manjaro.org
August 7, 2022
So Im trying to install private internet access and they support Arch Linux but when I downloaded from them I got a .run file. My question is how do I use it cause when I click on it i get a message about how its UTF-8 encodings are not valid or something More on forum.manjaro.org

How do I run an executable from the terminal on Linux Manjaro?

🌐 r/linux4noobs
10
June 2, 2021
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
Videos
February 26, 2019
5.98K
February 16, 2016
🌐
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!
🌐
Ask Ubuntu
askubuntu.com › questions › 286263 › how-to-execute-a-file-as-program
64 bit - How to execute a file as program? - Ask Ubuntu

Try ./filename.sh If that doesn't work, post the code error so I can more clearly see what the problem is. Hope this helps!

Answer from Bf109guy on askubuntu.com
🌐
Stack Exchange
unix.stackexchange.com › questions › 4430 › why-do-we-use-dot-slash-to-execute-a-file-in-linux-unix
command line - Why do we use "./" (dot slash) to execute a file in Linux/UNIX? - Unix & Linux Stack Exchange

The literal answer is as others have given: because the current directory isn't in your $PATH.

But why? In short, it's for security. If you're looking in someone else's home directory (or /tmp), and type just gcc or ls, you want to know you're running the real one, not a malicious version your prankster friend has written which erases all your files. Another example would be test or [, which might override those commands in shell scripts, if your shell doesn't have those as built-ins.

Having . as the last entry in your path is a bit safer, but there are other attacks which make use of that. An easy one is to exploit common typos, like sl or ls-l. Or, find a common command that happens to be not installed on this system — vim, for example, since sysadmins are of above-average likelyhood to type that.

Does this sound too theoretical? It largely is, but it definitely can happen in reality, especially on multi-user systems. In fact, here is an example from this site where an administrator switched to a users' home directory and found ps to be masked by an executable of that name.

Answer from mattdm on unix.stackexchange.com
🌐
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 - This wikiHow teaches you how to run files in Linux. You can run most files using a file manager program. Most Linux distributions have a default File Manager that comes pre-installed. You can also use the Terminal to run a file in Linux....
🌐
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 - Some executable files will run if you click on them in the GUI. Simply open your file manager and double click on the file. If you can’t find the executable file that you’re looking for, it may be hidden, or in a hidden folder. Your file manager probably has a menu item or shortcut to show ...
Find elsewhere
🌐
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
In the world of Linux, mastering the terminal is a rite of passage for every user. One of the fundamental skills you’ll need is the ability to make a file executable. Whether it’s a custom script or a program you’re testing, knowing how to give it the right permissions is essential.
🌐
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
July 9, 2025 - You can usually find a version of the same application in your package manager (e.g., Ubuntu Software or Apt) or the SNAP store. ... Type chmod +x <filename> and press ↵ Enter. For example, if the file is called installer.run, you'd type chmod +x installer.run.
🌐
Linux Mint Forums
forums.linuxmint.com › board index › interests › programming & development
running executables in terminal - Linux Mint Forums
April 21, 2022 - Welcome to the Linux Mint forums! ... Forum rules Topics in this forum are automatically closed 6 months after creation. ... Hello, I was wondering if there was a way to run an executable from my file manager(Nemo) in the terminal. Meaning, 1. I open the file manager and navigate to the file in question 2. I double-click on ...
🌐
Super User
superuser.com › questions › 807143 › how-to-execute-a-pl-file-in-linux
fedora - How to execute a PL file in Linux? - Super User

Run this instead:

./vmware-install.pl 

The ./ refers to the current directory.

If you run it without ./, Linux will look for a program called vmware-install.pl in your executable path, but the current directory is never in the path by default (for security reasons).

Answer from slhck on superuser.com
🌐
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.
🌐
Reddit
reddit.com › r/linux4noobs › how can i run a downloaded file?
r/linux4noobs on Reddit: 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.

🌐
Manjaro Linux
forum.manjaro.org › support › third-party software
How to use .run file? - Third-Party Software - Manjaro Linux Forum
August 7, 2022 - So Im trying to install private internet access and they support Arch Linux but when I downloaded from them I got a .run file. My question is how do I use it cause when I click on it i get a message about how its UTF-8 encodings are not valid or something
🌐
Ask Ubuntu
askubuntu.com › questions › 334637 › run-executable-file-on-terminal
command line - Run executable file on terminal - Ask Ubuntu

Your script should look like:

#!/bin/bash

passwd

Save it in a file, let say password.sh or simple password, then make it executable using next commands in terminal:

cd /path/to/password.sh  #or cd /path/to/password
chmod +x password.sh     #or chmod +x password

To run it from terminal, just use the following command:

./password.sh            #or ./password

or

/path/to/password.sh     #or /path/to/password

To run it only using:

password.sh              #or password

you must to add the path of the script to the PATH. See How to add a directory to the PATH? in this sense.

Answer from Radu Rădeanu on askubuntu.com
🌐
GeeksforGeeks
geeksforgeeks.org › linux-unix › how-to-run-file-in-linux
How to Run a File in Linux - GeeksforGeeks
July 23, 2025 - In this article, you'll learn how to run different types of files from the Linux command line. In Linux, you can run files using two methods. The first is through the file manager, where you can double-click on executable files to run them. The second is by using the terminal command line, ...
🌐
LinuxQuestions.org
linuxquestions.org › questions › linux-newbie-8 › how-to-run-executable-files-139554
How to run executable files?
January 28, 2004 - Can anyone teach this newbie how to open an executable file under Linux?? thanks!
🌐
Super User
superuser.com › questions › 566198 › linux-command-find-files-and-run-command-on-them
Linux command: find files and run command on them - Super User

You can use the -exec flag to execute a command on each matching file:

$ find ./ -type f -name "*.txt" -exec gedit "{}" \;

Syntax

The syntax is a bit strange (see -exec command ; in the manpages for more):

The string `{}' is replaced by the current file name being processed

You may also want to consider -execdir, which will do the same, but executes the command from the subdirectory containing the matched file (this is generally preferable).

Answer from David Cain on superuser.com
🌐
Reddit
reddit.com › r/linux4noobs › how do i run an executable from the terminal on linux manjaro?
r/linux4noobs on Reddit: 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

🌐
Ask Ubuntu
askubuntu.com › questions › 18747 › how-do-i-install-run-files
software installation - How do I install .run files? - Ask Ubuntu

Occasionally, some applications and games (eg. some from the Humble Indie Bundle) have .run installers. Before installing using these, check to see if:

  1. it is available from the Software Centre
  2. it is available as a .deb file, which will open in the Software Center

You can install .run files from the graphical interface, but using a terminal is more likely to give you useful feedback. To install a .run file you need to:

  1. make it executable.
  2. execute it

This is because .run files are just executable programs that do some unknown magic to install the program. This is similar to what .exe installers do on Windows and is different to the normal methods (at best, using the Software Centre, at worst using .deb files) in which applications are installed in a standard way and can be easily removed.

Graphical Method

  1. Right click on the file in the file manager and click 'Properties'. Click the 'Permissions' tab and tick the box that says 'Allow executing file as program'.
  2. Double click the file to execute it.

If this method doesn't work, try using the terminal method.

Terminal Method

Assume the file is called some-app.run and is in the folder /home/user/Downloads. You will need to modify these instructions to fit your situation.

  1. Open a terminal (Applications->Accessories->Terminal).

  2. enter cd /home/user/Downloads

  3. enter chmod +x some-app.run

  4. enter ./some-app.run

  5. if step 4 fails with a message including 'permission denied', try entering sudo ./some-app.run (you will need to enter your password for this).

Notes

  • Sometimes you will come across .bin files. These are similar to .run files from the user's point of view.
  • The method to install .run files can be used to execute any file (as long as it has some sort of executable code in it.
  • Be careful using sudo and only use it when absolutely required. Translated into English, it means 'Run this command but allow it to do anything it wants to my computer'. This is why you are prompted for your password.
Answer from dv3500ea on askubuntu.com