Questions tagged [executable]

An executable is a program contained in one file. This file is often referred to as an executable because of the Windows extension for executables(.EXE).

457 questions
465
votes
5 answers

How to make a file (e.g. a .sh script) executable, so it can be run from a terminal

I have a script.sh file and type of this file is shellscript file. I want to make this file as application/x-executable file. How can I make it?
Ziyaddin Sadygly
  • 7,579
  • 6
  • 28
  • 34
279
votes
9 answers

No such file or directory? But the file exists!

I've downloaded a game (Shank) but the bin file doesn't run. The error that is shown when I try to launch the executable is: bash: ./shank-linux-120720110-1-bin: No such file or directory
Francesco
  • 3,021
160
votes
14 answers

How to execute a script just by double clicking like .EXE files in Windows?

How can I make a bash script executable by double clicking just like .exe files in Windows? I tried creating a launcher and assigning the script to it, but there are two consequences: the terminal twinkles, disappears, and nothing is done. you must…
user61928
154
votes
9 answers

bash: ./program: cannot execute binary file: Exec format error

I'm trying to run a program, but it gives an error: bash: ./program: cannot execute binary file: Exec format error The result of file program was: program: ELF-32-bit LSB executable, ARM, EABI4 version 1 (SYSV), dynamically linked (uses share…
149
votes
3 answers

How do I create a script file for terminal commands?

In Windows I can write a file containing commands for cmd (usually .cmd or .bat files). When I click on those files it will open cmd.exe and run them commands the file contains. How would I do this in Ubuntu? I'm sure this is a duplicate,…
Seth
  • 59,332
102
votes
4 answers

How to run .sh file

Possible Duplicate: How do I run .sh files in Terminal? I want to download JDownloader from the internet for Linux. But the file is .sh and when I tell ubuntu to open the file it uses some text editor. I searched Ubuntu Software Store and there…
Atladica
  • 1,377
101
votes
3 answers

What does "chmod +x " do and how do I use it?

I want to write the Ubuntu analogue of a "batch file" (a shell script). But I don't know how to use chmod +x filename command to make it so that the script can be run. Nor do I know where to use it.
93
votes
4 answers

How to install JetBrains ToolBox in Ubuntu 22.04 LTS?

I downloaded the zipped folder for the ToolBox app from JetBrains' official site. After extracting the folder, I clicked multiple times on the ToolBox executable app, but nothing happened on the screen. On searching a bit more deeply, I found that…
89
votes
11 answers

What is the equivalent of an "exe file"?

I don't know what the exact executable file extension is. Is it .deb or .tar.gz?
user54905
  • 903
81
votes
6 answers

What is the difference between ./ and sh to run a script?

I have written a simple script. When I runsh , i got the correct output, but when I run ./, I got an error. What is difference between when I do sh and ./?
48
votes
7 answers

Bash: ./filename : Cannot execute binary file

I couldn't execute a fortran compiled code in ubuntu 11.10 32 bit. Error message is bash: ./filename : Cannot execute binary file. I've installed the gcc and gfortran libraries too. Could anyone help? $ file um um: ELF 64-bit LSB executable,…
user87654
  • 481
  • 1
  • 4
  • 3
47
votes
3 answers

Is there a command for running a script according to its shebang line?

If I want to execute a bash script which doesn't have its execution permission set, I can do: bash script.sh What should I use instead of bash if the script isn't executable and I don't know the correct interpreter? Is there a command that looks up…
Aivar
  • 635
43
votes
2 answers

Command to perform a recursive chmod to make all .sh files within a directory executable?

Trying to perform a recursive chmod on all the .sh files in a directory to make them executable
Arunava
  • 573
  • 1
  • 4
  • 10
43
votes
3 answers

No such file or directory for existing executable

I just upgrade to Ubuntu 11.10 x64 from Ubuntu 11.04 32bit. But I find a really annoying problem. When I drag executable from file explorer to shell, the shell says bash: /home/fenfei/app/android-sdk-linux/platform-tools/adb: No such file or…
Fenfei
  • 541
42
votes
1 answer

How to make a file executable?

How can I make my file so that I can double click on it, and it runs. It is a .sh script, but I also have files that say: executable (application/x-executable) in the description of what they are. I can't run any of these from terminal, or by double…
Tim
  • 33,500
1
2 3
30 31