Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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?

Regards

AFG

share|improve this question
add comment

1 Answer

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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.