Linux – How to execute a PL file in Linux


I have a file that I need to execute. I double click it but Linux will open it in a text editor for editing.
How to execute this file? Can it be done from GUI?
In file's properties says "allow executing file as program".

I have Fedora 18.

I managed to open the console and navigated to my folder.
I have poked:

chmod +x 

the last line says: command not found…

but 'ls' lists the file there….

Best Answer

Run this instead:


The ./ refers to the current directory.

If you run it without ./, Linux will look for a program called in your executable path, but the current directory is never in the path by default (for security reasons).

Related Question