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

1
vote
2answers
31 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
18 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
54 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
27 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
40 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 ...
3
votes
0answers
48 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
536 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
603 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
39 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
235 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
69 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
30 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/ . ...
0
votes
1answer
61 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 ...
124
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
67 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
58 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
42 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
11 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
93 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
306 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
36 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
97 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
371 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
47 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
25 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
39 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 ...
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
318 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
47 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
42 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
43 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
110 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 ...
6
votes
0answers
103 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
54 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 ...
1
vote
0answers
107 views

A program doesn't work when invoked through a symbolic link

I have an executable paraview in the directory ~/software/Para/bin/ and I want to create a soft link in my home directory. I have tried like this but could not succeed. sudo ln -s ...
0
votes
1answer
32 views

Is my compilation false?

I thought my compliation was okay because no errors were printed out, yet when I try to run the executable, he tells me that it's unreachable... coppan12@b048-08:~$ gcc -Wall prog.c -o prog ...
2
votes
1answer
146 views

VS Code not working on Elementary OS

I have downloaded VS Code on Elementary OS, and I followed the setup instruction of Setting up Visual Studio Code on linux. The executable file "code" seems to be unknown, it is not opening, Any ...
6
votes
2answers
77 views

direct execution of python scripts

I have noticed that sometimes python scripts are not being started directly, ie /foo/bar.py, but rather from a shell script, which does nothing else than /usr/bin/python -O /foo/bar.py $@ One such ...
1
vote
1answer
49 views

Make a command to remove NetworkManager connections

I’m working in a manufacturing company (small one) and one of our clients required a test using a Linux (Ubuntu) computer, we are testing some wi-fi modules. the test is simple. beforehand: Powering ...
1
vote
2answers
327 views

How to use ln -s to create a command line shortcut?

I have an sh file that I would like to be able to open from the terminal at any time. I would like to type "studio" into the terminal, and have android studio open I recall using ln -s to do this, ...
10
votes
2answers
745 views

How does a shell execute a program?

If I compile a program using gcc, and try to execute it from the bash shell, what is the exact sequence of steps followed by bash to execute it ? I know fork(), execve(), loader, dynamic linker (and ...
-1
votes
0answers
118 views

How to use BlueZ tools? [closed]

I successfully compiled bluez-libs-3.36 and bluez-utils-3.36, and got the programs sdptool,hcitool and hciconfig. I copied them to my device and exectued chmod a+x on all three of them. But if I try ...
0
votes
0answers
27 views

strace | Who's making syscalls ? | Where are the instructions?

I've been told that strace is used to track all the system calls made while running an application. I see that there are a lot of system calls made even before the first printf ( now write ) call. ...
34
votes
2answers
979 views

Why and how are some shared libraries runnable, as though they are executables?

On 32-bit Linux systems, invoking this $ /lib/libc.so.6 and on 64-bit systems this $ /lib/x86_64-linux-gnu/libc.so.6 in a shell, provides an output like this: GNU C Library stable release ...
1
vote
1answer
49 views

Can't run c program in other partition

I'm in dual boot with Windows, and i've created a shared ntfs partition. I' ve cloned a project from github, use make to compile it but seems it isn't recognized as runnable. I've added the right ...
2
votes
1answer
691 views

cannot execute binary file

I have a application that gives the error: nhsupsserver: cannot execute binary file I read some texts and the most speak about an architecture mismatch and executable file. The line that ...
1
vote
0answers
297 views

“Illegal instruction” on a static MIPS binary

On my MIPS box I'm trying to run a program. I use a cross compiler for mips. When I run my program, I'm getting Illegal instruction I pulled of one binary from it, called cputest. It basically ...
1
vote
3answers
136 views

Is it possible to start programs (saved in the menu) from the terminal?

Recently I switched over to Linux Mint. I am finally getting the hang of using the terminal, but there is one question that I find myself coming back to: Is it possible to start a program that is ...