Solved

Running a program in linux

Posted on 2006-11-30
2
203 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Quiz: What Do These Organizations Have In Common?

Hint: Their teams ended up taking quizzes, too.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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 fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
Come and listen to Percona CEO Peter Zaitsev discuss what’s new in Percona open source software, including Percona Server for MySQL (https://www.percona.com/software/mysql-database/percona-server) and MongoDB (https://www.percona.com/software/mongo-…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…

691 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