Running programs in terminal

From MEPIS Documentation Wiki

Jump to: navigation, search

To run a program in terminal:

  • You have to make sure they are executable: chmod u+x /path/programname
  • Every executable program must be clearly identified. Not only does the program itself have to be identified as executable, the path to the program must be clear, not ambiguous. Just typing in the name of the program is no guarantee that you will get the results you seek. To be certain that you get the intended result, specifying a unique and accurate path to the program will ensure the expected result.
  • Don't forget to specify the full path /path/programname or if you are in the program's directory ./programname (put a dot and a slash before the program name -- that means "local directory"). In the context of a path name, a dot means "relative to the current working directory".

Alternatively you can launch a program with "sh programname". The sh is the name of a shell and programname is the name of the program that you want to run.

Personal tools
In other languages