The permission bit in a file mode that allows a file to be run as a program. Also, questions related the format of program files, and to locating and executing program files.

learn more… | top users | synonyms

0
votes
0answers
11 views

How can I ship an executable file?

I have a project that is hosted on github. On my local machine I have created an executable file that installs the program. However, once uploaded to github and cloned somewhere else the user must ...
3
votes
5answers
352 views

How to recursively remove execute permissions from files without touching folders?

I made a backup to an NTFS drive, and well, this backup really proved necessary. However, the NTFS drive messed up permissions. I'd like to restore them to normal w/o manually fixing each and every ...
4
votes
1answer
61 views

How can I recover from a `chmod -x chmod`? [duplicate]

Assuming that you can't reach the internet nor reboot the machine, how can I recover from chmod -x chmod ?
0
votes
1answer
38 views

How to locate exactly that executable, which will be run if it's name entered in command line? [duplicate]

Is it possible to locate exactly that executable myname which will be run if passed to command line > myname locate command didn't work as expected, since it returns numerous results. Result ...
0
votes
2answers
48 views

*nix executable compatibility

I looked at this scheme and now i want to know, can one executable be runned in a two systems, which have the same ancestor? (and so probably the same kernel?) For example, according to the scheme: ...
44
votes
8answers
4k views

Why does Bash's source not need the execution bit?

with Bash's source it is possible to execute a script without execution bit set. This is documented and expected behavoir, but isn't this against the use of an execution bit? I know, that source ...
32
votes
2answers
1k views

Difference between “command not found” and “no such file or directory”?

For example: $ node -bash: /usr/local/bin/node: No such file or directory $ foo -bash: foo: command not found What's the difference? In both cases, node and foo are invalid commands, but it seems ...
3
votes
1answer
39 views

How to receive input from 2 files on an executable

Basically, I want to receive input from 2 different files whem I'm calling an executable on terminal Like: ./a.out < file1.pgm file2.pgm I want to read both the files input on my code, one ...
2
votes
2answers
71 views

Is there a way to route all commands through a shell script instead of running directly?

Sorry about the title, I can't explain it very well without an example. I want to be able to have everything being executed, rather than running the program, runs a shell script with the executable as ...
1
vote
1answer
58 views

Combining Bash Script and Script Resources into One Executable

When trying to execute a bash script, it is often execute inside some directory, and requires access to local resources. I was wondering if there was a way to combine both the bash script and the ...
4
votes
1answer
137 views

Why can't I execute Android x86 executables on Linux

I am trying to port Android apps to Linux (don't laugh :) and I have come across a problem. When trying to execute an Android executable (app_process) after adding the executable permission with ./...
2
votes
4answers
598 views

Execute binary code

I have a binary code and I want to run it. 01001000 01100101 01101100 01101100 01101111 00100000 01010111 01101111 01110010 01101100 01100100 How can I create a file "application/x-executable" and ...
1
vote
1answer
49 views

Rc.local not running commands properly

I am running arch Linux and have used this rc-local service: [Unit] Description=/etc/rc.local compatibility [Service] Type=oneshot ExecStart=/etc/rc.local RemainAfterExit=yes [Install] WantedBy=...
71
votes
1answer
7k views

Why does the following script delete itself?

If you create an executable file with the following contents, and run it, it will delete itself. How does this work? #!/bin/rm
1
vote
2answers
42 views

How to know the path of a running executable?

I am working on a Linux server, and I running different jobs on different node. However, when compiling my program, I didn't set their specific name, so they are all a.out Now I found one of the ...
0
votes
0answers
19 views

autocomplete in noexec mounted drive

I noticed that bash won't let me tab-complete executable files in a noexec file system. I'm assuming that in order for it to actually auto-complete, the file has to be within the PATH and at least ...
0
votes
0answers
60 views

Unable to run executable on secondary machine

My primary computer can run a program (hc12-coff-gcc) located in the usr/local/bin directory. My secondary computer cannot run the same program. the usr/local/bin directory is in the PATH for both ...
0
votes
1answer
41 views

executable files to normal files via terminal CentOS7

Today I copied some files from the shared folder (Host is a Win7) to my VM ( Guest is a CentOS7). I did this with root permissions. Then I copied th files to my apache location /var/www/html/test I ...
3
votes
1answer
140 views

How can I extract Signatures data from a Windows `exe` file under Linux using cli

If you go to the VirusTotal link , there is a tab called file info(I think; mine is dutch). You'll see a header called "Authenticode signature block and FileVersionInfo properties" I want to ...
4
votes
0answers
101 views

Why doesn't `strip` remove section headers from ELF executables?

A minimal ELF executable only requires the ELF header and at least one program header in order to be functional. However, when I run strip on a short executable, it decides not to throw out the ...
6
votes
1answer
572 views

Check last time .sh file used

When you run ./myscript.sh is that considered as "access" time? I need to know the last time a script was run, but I'm not sure if this counts as mtime, ctime or atime (differences described here).
9
votes
4answers
679 views

How to install executables

I sometimes run into software that is not offered in .deb or .rpm but only as an executable. For example Visual Studio Code, WebStorm or Kerbal Space Programm. For this question, I will take Visual ...
0
votes
0answers
16 views

Bash fails to run executable with No such file or directory [duplicate]

I have an executable copied to an Ubuntu 14.04 AWS instance, and I: chmod +x MyExe.bin ./MyExe.bin And I get: -bash: ./MyExe.bin: No such file or directory This is strange because: The file is ...
1
vote
1answer
91 views

Linux: How to mount a drive from command line

I normally mount my drives just by opening it from filesystem. It automatically mount when I open/click on a drive. But I wanted to mount a drive from command line. I did ran this command sudo mount -...
1
vote
2answers
484 views

Which of /usr/bin/perl or /usr/local/bin/perl should be used?

If I have both /usr/bin/perl and /usr/local/bin/perl available on a system, which one should I use?
3
votes
1answer
164 views

Can not run executable files from a mounted drive

I have downloaded eclipse and rubymine and previously placed in home folder. Then I used to open both programs by double clicking on eclipse.sh and rubymine.sh. Now I moved these two folders in a ...
0
votes
2answers
45 views

Executable file isn't “really there” after rsync [duplicate]

I am issuing the following rsync command (obfuscating the exact path & host), which should copy two binaries: rsync -e "ssh -p 443" -a --info=progress2 -z user@remote:/srv/cgi-bin/ . user@remotes'...
0
votes
1answer
99 views

File does exist but won't execute [duplicate]

I have a file that does exist but won't execute. It says : "No such file or directory". This file is created by a script while creating a "custom toolchain" to compile native libraries for Android ...
126
votes
1answer
8k views

How is Mono magical?

I'm learning C#, so I made a little C# program that says Hello, World!, then compiled it with mono-csc and ran it with mono: $ mono-csc Hello.cs $ mono Hello.exe Hello, World! I noticed that when I ...
1
vote
2answers
79 views

Difference between /usr/bin and /usr/local/bin [duplicate]

What is the difference between /usr/bin and /usr/local/bin? Why are there both directories and why do some executable programs exist in both directories?
1
vote
1answer
86 views

Where is the nginx executable on Debian? [closed]

I've installed the nginx-light package on debian, but I can't find the executable. It's not in /usr/bin, like it says on the official nginx website. Where is it, then?
0
votes
0answers
69 views

Equivalent to OS X's py2app and Windows's py2exe?

I'm writing an application in Python. I don't expect my end users to be particularly tech-savvy, so I'd like to package it up like a familiar native executable. For OS X, that means running it ...
2
votes
0answers
12 views

How can I add my program to system program list (Ubuntu 14.04)? [duplicate]

I made a my program in c++ and generated its executable but every time I need to use my program I need to change my directory to the folder and then execute it. How do I make my program run like an ...
3
votes
2answers
98 views

Handling duplicate programs names bash

I'm wondering if $PATH cascades entries. You'll all need to take a leap of faith with me here, but here it goes. Let's say we have a Java executable at /usr/bin/java but this version is very old and ...
0
votes
1answer
609 views

Installing Wine 1.8 on Debian not working

I followed this link http://tecadmin.net/install-wine-on-ubuntu-and-debian/# to install Wine on Debian 7.9 Wheezy but to no avail. When I reached step sudo ./configure --enable-win64 it asked for "...
0
votes
0answers
61 views

Aardvark Control Center wants TLS/SSE2 Library

Environment: CentOS 7.1 64-bit using Intel i7-4771 Gnome 3 shell I downloaded the Aardvark Control Center (Total Phase) and tried to execute the controlctr bash file, however I received the error ...
-1
votes
1answer
176 views

Remote app - bash: cannot execute binary file [duplicate]

I have an app in a remote Linux machine. I am trying to execute the app via ssh, but I get the error: bash: /app: cannot execute binary file Why is this happening? The application works fine in the ...
3
votes
2answers
400 views

The type command can't distinguish between an executable command and a shell script

So I was reading the book The Linux Command Line, and it says that commands are of four types: (1) executable programs (2) shell builtins (3) shell functions (shell scripts) (4) ...
3
votes
1answer
68 views

setuid example from Wikipedia: 4700

I was reading about setuid on Wikipedia. One of the examples goes as follows: 4700 SUID on an executable file owned by "root" A user named "tails" attempts to execute the file. The file ...
1
vote
1answer
29 views

a.out - Data segment and text segment are contiguous iff text segment is not shared. Why is this so?

I was reading the man page for the ancient a.out format (located here), trying to understand the evolution of Unix executable formats. I was wondering about something. The man page says that if the ...
1
vote
1answer
47 views

auditctl comm vs. exe

I was looking at Linux audit reports. Here is a log from ausearch. time->Mon Nov 23 12:30:30 2015 type=PROCTITLE msg=audit(1448281830.422:222556): proctitle=6D616E006175736561726368 type=...
0
votes
0answers
15 views

“No such file or directory” attempting to run executable [duplicate]

I'm trying to run a binary on my freshly-flashed Ubuntu box. The file exists, I have permissions to run it, but I'm getting "No such file or directory" error. gkistner@gkistner-dt3:~/cx/_temp_dump$ ...
2
votes
1answer
544 views

arm-eabi-gcc: cannot execute binary file

I am trying to build a ROM from AOSP 5.1.1 specifically (Nexus 7 - grouper). However, a while ago I got stuck at this part while building the kernel. The following command works fine: make ...
1
vote
2answers
64 views

“No such file” with ksh, but script runs with ksh -x?

I'm trying to execute a shell script on OpenBSD 5.7/amd64. Its a test script used to test a FOSS project. (OpenBSD is one of our targets because it provides an ancient compiler out of the box). When ...
2
votes
2answers
46 views

How run Linux application from a mounted Windows disk?

I have dual-boot operating system, Ubuntu and Windows 7. The problem is I can't install some Linux application on my Linux because considering the disk space. I always regret to myself why I allocated ...
2
votes
2answers
45 views

link to an executable and remove some parameters

I currently am using Xamarin Studio, which has a bug in this version. It adds 2 parameters to an executable, which causes the output to flood with error messages, slowing down the build time from a ...
1
vote
0answers
56 views

No such file or Directory, even if file present and executable [duplicate]

I have two machines, and I have installed the exact same packages on both machines. On one machine everything is working perfectly fine. But on another machine, there is at least one file where its ...
2
votes
1answer
126 views

*.desktop nor symlink works (just for this one file) - Linux Mint 17.2 Cinnamon

I have this desktop entry: [Desktop Entry] Name=dummy Type=Application Terminal=false Icon=/home/xyz/Software/Test/ico.png Exec= /home/xyz/Software/Test/start which is supposed to execute file ...
7
votes
1answer
159 views

Why does OS X `install` errors on redirected input when the same version of `install` on linux works fine?

I would like to use install command in order to create a new executable file with pre-populated content (e.g. with single pwd command in it). So I've extended this example which creates a new empty ...
0
votes
1answer
58 views

executable bit on files created by vim

Is there any setting for vim create new files with full permissions? that is falling just under the umask restrictions, and only on files created by vim. It shouldn't modify the bits of an already ...