Solved

Running a program in linux

Posted on 2006-11-30
2
197 Views
Last Modified: 2012-05-05
What is the command to run a program in linux..I have a program program that I can run at dos prompt by just typing
myprogram.exe after directing to the directory of the application..what is the equivalent command in linux operating system?

Thank you.
0
Comment
Question by:Aiysha
  • 2
2 Comments
 
LVL 84

Expert Comment

by:ozo
ID: 18047146
if the program is executable, and in your $PATH, you can just type the name of the program
if it is not in your $PATH, you would need to type the a path name to the program so the shell knows where to find it
0
 
LVL 84

Accepted Solution

by:
ozo earned 500 total points
ID: 18047191
If you want to run files in your current working directory, you can type
./programname
or if you want to do it without the . you can put . in your $PATH,
but if you do, you should be careful that the . is last in your $PATH so that you don't accidentally
run a program out of . when you were expecting to run a program with the same name from a standard system path
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Have you ever been frustrated by having to click seven times in order to retrieve a small bit of information from the web, always the same seven clicks, scrolling down and down until you reach your target? When you know the benefits of the command l…
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This video discusses moving either the default database or any database to a new volume.

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now