LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   file execution (https://www.linuxquestions.org/questions/linux-general-1/file-execution-404698/)

zaid 01-17-2006 07:18 PM

file execution
 
how does somone execute a file.. liek run it just liek an exe file in windows
on the x window system <desktop>
from bash

thanks all

pixellany 01-17-2006 07:28 PM

First, be sure the permissions are set to give you execute priviliges.

Then, simply type the filename--if it is in a directory listed in $PATH. If not, type the absolute or relative path to the file.

Most commonly, for files not in $PATH, you will see "./filename" This means run filename here (in the current directory). Such an entry overrides the search in $PATH--thus you can have two files with the same name, and control which one runs by specifying the path.


All times are GMT -5. The time now is 04:58 PM.