• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 209
  • 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.
  • 2
1 Solution
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
If you want to run files in your current working directory, you can type
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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