As the title suggest, I’m trying to run an executable. When I attempt to run it from other directories, I get the “file or directory does not exist” error. However when I’m in the directory the file is in, I have no problem. Any suggestions?
Everyone else who has this problem is never able to execute their file, regardless of what directory they are currently in!
Thank you!
To execute /tmp/virus.tmp, you need to run:
Your attempt to instead run:
fails because what it tries to do is find the program inside the
tmpdirectory of the current directory. (.is the current directory.) For example, if you are in/home/user/and type./tmp/prog, it will try to execute/home/user/tmp/prog.