Using a Linux shell, how do I start a program with a different working directory from the current working directory?
For example, I have a binary file helloworld that creates the file hello-world.txt in the current directory.
This file is inside of directory /a.
Currently, I am in the directory /b. I want to start my program running ../a/helloworld and get the hello-world.txt somewhere in a third directory /c.
suresets the working directory to the home directory of user you specify before running any-ccommands. This was very helpful to me.a:visitedlink and an upvote already on it. It's another thing when you're the asker, or even the answerer. There should be a badge for that... "Forgetful"