Skip to main content

Questions tagged [executable]

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.

Filter by
Sorted by
Tagged with
0 votes
2 answers
218 views

zsh: command not found: yt-dlp

The standalone executable yt-dlp recommended for macOS suddenly stopped working. I used it two weeks ago and it worked. I have not had any updates to my system, expect some brew updates/upgrades. ...
Kamil's user avatar
  • 7
1 vote
1 answer
468 views

How can I run an executable and tell it to use my discrete NVIDIA GPU instead of the onboard one?

I have a laptop with both a discrete and an onboard graphics card. I want to run a Game executable file using the discrete GPU but instead it runs on the obnboard one. How can I run it with the ...
Ryno's user avatar
  • 13
0 votes
0 answers
17 views

Should I run the KOreader AppImage as an executable or integrate it into my openSUSE Tumbleweed system?

I've downloaded the KOreader AppImage for my openSUSE Tumbleweed system, and I'm trying to decide whether I should run it directly as an executable or integrate it into my system by creating a desktop ...
Dr. P's user avatar
  • 21
0 votes
2 answers
84 views

access shell alias with dmenu

I have a collection of bash commands (one liners) that I use on a regular basis to open new shells or start programs with a given set of arguments. As I use dmenu, I'd like to be able to use those ...
PinkFloyd's user avatar
  • 429
0 votes
0 answers
36 views

Creating an Executable to Run a Hydrological Model Command via Ubuntu on Windows

I am a Hydrologist and am running a hydrological model on Windows using Ubuntu. I can run it by opening Ubuntu, navigating to the directory where I installed and compiled it, and then typing the ...
Vinicius B. de S. Moreira's user avatar
0 votes
0 answers
87 views

How to make Thunar mount a drive with exec option enabled?

I have a Linux executable placed on a FAT32 flashdrive. But, whenever I clicked the exe on Thunar, it doesn't get started. Instead, Thunar opens up the "Open With" dialog. From searching, I ...
manungsa's user avatar
1 vote
1 answer
479 views

Can I configure parameters when launching flatpak apps from the GUI?

One of my Flatpak application stopped working properly, probably after a silent upgrade. I found a fix online that tells me to add a parameter. That fix works. Nonetheless, I like running that app ...
SteeveDroz's user avatar
0 votes
2 answers
117 views

Change behavior of bash script if executed from another script

I have a script (say Task.sh) (with executable permission): Pseducode: if [[ Not called from inside a script ]]; then echo 'Not called from inside a script' else echo 'Called from a script' fi I ...
Porcupine's user avatar
  • 2,056
-1 votes
5 answers
384 views

How to mark things I download automatically executable?

I spend a lot of time downloading things that I am going to execute, without a doubt, after having downloaded them. Out of the 900-ish files in my download folder right now, roughly a third is stuff ...
Jean-Michaël Celerier's user avatar
0 votes
1 answer
40 views

How to disambiguate a second version of an installation from command-line?

I installed a tool called herd (http://diy.inria.fr/herd/). The original version of this I think is in the global path so I can call it from anywhere by writing herd7. Now I also have a second ...
IIM's user avatar
  • 103
4 votes
1 answer
3k views

Cannot exceute binary: required file not found

I see that there are other questions like this out there, but the answers there did not work for me. I am using I downloaded the Julia 1.9.2 (Linux, x86-64, glibc) prebuilt binary and tried to execute ...
loonatick's user avatar
  • 171
1 vote
1 answer
827 views

Is it possible to verify a Windows EXE (PE file format) checksum under Linux?

Windows EXE files which are in the PE format have a header and it contains a checksum. Is it possible to verify it under Linux? Because I am looking for a Linux command I hope you understand that this ...
javanerd's user avatar
  • 113
1 vote
0 answers
81 views

What happened to a.out

I just started to wonder what ever happened to the original a.out binary file format and why it was superseded by ELF?
Whitequill Riclo's user avatar
0 votes
0 answers
15 views

"No such file or directory" when executable exists with relevant permissions [duplicate]

After installing n to manage node versions on my alpine vm, I am having the following issue where the node executable is not found, despite existing vscode ➜ /workspaces/tom $ which node -a /...
StuperUser's user avatar
0 votes
1 answer
93 views

Is `command -v program` always executable?

I am using the command -v "program" >/dev/null 2>&1 construct if I need to POSIX-ly find out if such program is installed in an if-statement. From its help page is not clear, ...
Vlastimil Burián's user avatar
3 votes
2 answers
645 views

How to make my script stay executable on different devices?

I’ve made a script that would work on rhel distros and forks. It’s for personal use to automatically download repositories and software that I use. When I make the script executable on the host ...
Veritas's user avatar
  • 33
1 vote
1 answer
139 views

Temporary failure in name resolution in Python script running during boot or on shutdown

I wrote a Python script which sends any message via Telegram: #!/opt/anaconda3/bin/python import asyncio import telegram import os import sys async def main(): bot = telegram.Bot(os.environ[&...
Dims's user avatar
  • 3,285
0 votes
1 answer
519 views

Does a user need executable permissions to be able to run du (disk usage)? [duplicate]

I am observing the following behaviour, and want to know if it is expected. I am trying to run disk usage ( du ) as user2 on a directory test_directory which is owned by user1. If I change the ...
teeeeee's user avatar
  • 157
0 votes
1 answer
108 views

./<filename> No such file or directory

I'm trying to run a binary. But when I'm trying to run the file I'm facing the following error. pegasus@pegasus:~/Documents/Courses/heaplab-main/house_of_force$ ./house_of_force bash: ./...
Zeshan Ahmed Nobin's user avatar
5 votes
1 answer
327 views

Is there such a thing as an "executable directory"?

In MacOS you can name a folder with the suffix .app and it will be launchable from the GUI as an application based on an internal folder structure convention. Does such a thing exist in Linux? Can I, ...
David Alsh's user avatar
0 votes
2 answers
400 views

Can process execute new program without the kernel knowing?

Can process execute new program without the kernel knowing? Usually, when the program is executing kernel gives to it its own process after receiving the syscall (such as exec() or fork()). In this ...
user551100's user avatar
1 vote
0 answers
104 views

Unable to execute file.exe with wine 4.0.4 in HPC

I have a .exe file that I need to run in HPC and I am not sure how to do this. I tried using wine-4.0.4 as follow but I get the following chmod a+x Rtools35.exe ./Rtools35.exe wine: Bad EXE format ...
geo_dd's user avatar
  • 111
-3 votes
2 answers
459 views

What is the effect of the "s" permission bit on a file?

I have two files with the following permissions: -rwsr--r-- 1 root root 213 Oct 22 12:15 f1 -r--rwxr-- 1 Bob staff 113 Oct 22 12:18 f4 Can the user Bob execute f1 and why? What is the effect of the ...
user543663's user avatar
1 vote
1 answer
518 views

Is it possible to load up a binary into ram, without executing it?

Like I will use google chrome whenever I use linux (most probably) But I don't want it to auto start when ever I open it. I could open it manually, but I have HDD so it is pain to load for the first ...
Afroz Alam's user avatar
1 vote
0 answers
2k views

Real meaning on "ELF 64-bit LSB shared object"

How can ELF 64-bit LSB shared object be executable that is readilt executed/launched right away, isn't it opposing the word terms "shared object" (Windows equivalent to dynamic link) ?
user avatar
2 votes
3 answers
215 views

Why does my executable not run from a bash script called through udev?

I have an executable compiled from my code. I am trying to run this executable when I insert a serial device into my Raspberry Pi Zero W using udev. However, for some reason the executable will not ...
guyus15's user avatar
  • 31
0 votes
0 answers
19 views

I was trying to run clang file [duplicate]

I am new to Kali Linux i was trying to run clang file which i did but a a.out file appears what to do next? zsh: no such file in directory: /a.out I have trying to do it so many time please help
Chirag's user avatar
  • 1
1 vote
0 answers
30 views

What happens if a running executable can no longer load its code/data pages?

This is under the assumption that the binary is large enough that not all pages were loaded into memory at the start of execution. What would happen if the underlying file system suddenly disappears (...
SUPERCILEX's user avatar
9 votes
4 answers
2k views

Executable vs Library in Bash Script

When reading over Google's shell style guide, I found the following line that confused me a little: "Executables should have no extension (strongly preferred) or a .sh extension. Libraries must ...
Hunter T.'s user avatar
  • 603
2 votes
2 answers
1k views

Give executable permissions to binary files on a USB

I have a desktop application that provides the user with a tarball (.tar.gz) that they can unpack to find the binary that can be run with executable permissions which starts the overall program. This ...
Vass's user avatar
  • 5,401
1 vote
1 answer
4k views

ssh to execute remote command under interactive shell

Very similar with Run a command in an interactive shell with ssh after sourcing .bashrc, yet the answer there doesn't work for me. I want to to execute remote command via ssh under the full ...
xpt's user avatar
  • 1,644
1 vote
2 answers
2k views

Creating a systemd service in ubuntu that can be started/stopped

I have build a server that ships in executable format, and I want to register it as a service that I can start/stop/restart. I have read the following questions and many others like it > How can I ...
YaRmgl's user avatar
  • 133
0 votes
1 answer
478 views

Files get executable when copied

So I just bought a new Samsung T7 Portable SSD. I initially intended to format it to exFAT, for use with both Windows, MacOS and Linux, but upon inspection, the disk comes with a default file system ...
genbatro's user avatar
1 vote
1 answer
102 views

Is "running a folder" possible in Linux?

Is there a philosophy behind running a folder as an executable in linux? user@node main % ls -lash ./bin total 0 0 drwxrwxrwx 2 user staff 64B May 23 21:04 . 0 drwxr-xr-x 6 user staff 192B ...
Elijas Dapšauskas's user avatar
0 votes
1 answer
185 views

Cannot run .exe app from virtual machine

I am trying to run the .exe of an app I have downloaded from the Apple store onto my virtual machine. However, every time I run the file, I get the following error: cannot execute binary file: Exec ...
Dollar X's user avatar
0 votes
2 answers
163 views

how to block the double execution of the same script in the same directory

I have created a .sh executable file that generates several files in the working directory/folder that are used by the same script. If it is run twice in the same folder it would be a mess because the ...
wildos's user avatar
  • 1
0 votes
1 answer
1k views

Why would I give the execute permission for txt file (non-script) file

In this article we see x permission is added to myfile.txt: mode of `myfile.txt' changed to 0751 (rwxr-x--x) What is execute permission in the context of non-script file? When would I need ...
Andrew Anderson's user avatar
1 vote
0 answers
200 views

Get Linux Executable Signing Certificate Information

I wanted to know if there was a way (some sort of library that I'm unaware of) that gets the signing certificate details of an executable. I know it's possible to sign a binary using openssl but how ...
beginner123's user avatar
0 votes
1 answer
95 views

Unable to exec programs, parent directory symbolic link, btrfs mdadm drive

I'm not sure what to try next to resolve this issue. ~ 🌝 cat /etc/fstab # /dev/sdg1 /mnt/d/ ntfs noatime,nodiratime,users,noauto,x-systemd.automount,autodefrag 0 0 /dev/md127 /mnt/d btrfs ...
jaksco's user avatar
  • 156
0 votes
1 answer
1k views

Reasonable way to customize ( change ) an executable program's command ( name ) , in terminal

Background Using xfce4-terminal as an example, I want to run the program by just typing term. When I type which xfce4-terminal it returns /usr/bin/xfce4-terminal. So, I created a symbolic link: sudo ...
dungarian's user avatar
  • 445
1 vote
1 answer
2k views

How to Extract Icons from Executable File in Linux

I'm not talking about a Windows EXE. I mean an actual Linux executable file. At first, I've been wondering whether Linux executables even have embedded icons, and it seems as though they do, because ...
GPWR's user avatar
  • 152
1 vote
0 answers
51 views

Empty executables after creating bind mount

I've created a bind mount in /tmp/test which I then use to establish a chroot jail. For example: mount --bind -o ro /usr/bin/ /tmp/test chroot /tmp/test /some_executable This seems to work fine - most ...
stumbling.fool's user avatar
0 votes
1 answer
62 views

Does the regex engine have an associated executable?

I'm working with a tool that uses a whitelist to allow certain commands to be executed. The whitelist works using file paths like so: command1=/bin/echo command2=/bin/sed ... The problem is commands ...
cdbuzz17's user avatar
0 votes
1 answer
209 views

gdrive not working on Fedora 35

I would like to access my cloud data on Google Drive from terminal, so I have downloaded gdrive from this source; I have selected gdrive_2.1.1_linux_amd64.tar.gz since I am on Fedora 35 with a 64 bit ...
Noumeno's user avatar
  • 183
0 votes
2 answers
801 views

Is it possible to show when an executable was run for the last time?

Note that the FS is mounted with the relatime option (thus the recent last access time is not shown). Is there a way to see when an executable (ELF 64-bit LSB executable) was run for the last time? ...
Déjà vu's user avatar
  • 646
0 votes
1 answer
1k views

Dumping virtual memory addresses of an executable from /proc/pid/maps

I want to dump the virtual memory addresses of a running executable. This is the command I'm running: ./executable & cat /proc/$(pidof executable)/maps > maps.dump, and this is the error I get: ...
Farzam's user avatar
  • 1
0 votes
2 answers
2k views

Compile a shell script to an executable binary with make

I know shc can convert the shell script to binary, but there is obvious and famous tool to decrypt it. So, I want to find another way to do this. I've heard that make can also convert a shell script ...
Azreal's user avatar
  • 45
0 votes
1 answer
440 views

Allow user to run nonpermissive commands in shell script (KSH)

I have a ksh script I am developing for work. (I am on the newer side to shell-scripting) I have root access but the future-users of this script will not. Say the other user is named User1. Within the ...
Hugobop's user avatar
  • 105
1 vote
3 answers
520 views

Make STDIN executable with shebang

I have a program to list database files. It is called direkly from the shell like db filename to list the whole file, or like db 'filename :: conditions' to list only selected elements ... Another ...
Andy A.'s user avatar
  • 207
1 vote
1 answer
71 views

is there a reason to revoke write permission for executables in /usr/bin

I have encountered a package which installs its binaries with permission 555 instead of usual 755 in /usr/bin, i.e. prohibiting writing for everyone. I do not understand the reason for doing so... Can ...
John Smith's user avatar
  • 2,807

1
2 3 4 5
12