• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 206
  • Last Modified:

Running a program in linux

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
Aiysha
Asked:
Aiysha
  • 2
1 Solution
 
ozoCommented:
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
 
ozoCommented:
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 does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now