Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am working on linux.

Do you know which command to start an application setting an "initial folder" for it.

If I start my app from a directory that is not the one containing the app itself, some files cannot be found. Is there any shell command to do that?

share|improve this question
up vote 1 down vote accepted

Just cd to the directory you would like to start in and then run the program. This can be done in one line like the following:

cd /path/to/the/directory; /path/to/./program
share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .