Linux running an executable in folder


How do you, run an executable from the the terminal once you located it inside the right folder?
I've tried

user$
run _xfilename_
and it doesn't work.
Did you mark it as executable? If so, just type this:
./FILENAME
(The ./ tells the shell to look only in this folder and not in it's normal paths first. It might not be necessary, but it will never hurt.)

If it's not marked as executable try this first:
chmod u+x FILENAME
Last edited on
Topic archived. No new replies allowed.