New answers tagged executable
If you don't have dos2unix this is a way to fix this issue. cp script _p4 && tr -d '\r' < _p4 > script && rm _p4
You can use lsof (available for just about any Unix variant, but often not part of the default installation) to list all the files a process is using. “Using” includes open file descriptors as well as closely related concepts such as which executable the process is running. The executable has txt in the FD column, for obscure historical reasons. $ lsof ...
There's no general answer. Under modern Linux, you can look in /proc/$PID where $PID is the numerical process ID. You can get it out of the top output. ls -l /proc/$PID/exe will show you where exe is a symbolic link to. That's the full path to the a.out executable.
bash -x ./filename.filetype should work. It worked for me when I got permission denied as a root user.
Top 50 recent answers are included