LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-17-2006, 07:18 PM   #1
zaid
LQ Newbie
 
Registered: Jan 2006
Posts: 5

Rep: Reputation: 0
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
 
Old 01-17-2006, 07:28 PM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Java 2 JRE RPM bin file execution linux101 Linux - Newbie 3 09-20-2006 04:51 PM
file execution zaid Linux - General 3 01-18-2006 05:32 AM
script execution - file/directory permission issue serksimper Linux - Enterprise 1 08-10-2005 03:01 PM
File execution on ftp (vsftpd) rkemp General 1 03-13-2004 07:48 AM
file execution doubt pongsu Linux - General 2 09-25-2003 01:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:47 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration