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 directory /b. I want to start my program running ../a/helloworld and get the hello-world.txt somewhere in a third directory /c.
I thought it's possible to do that with env command, but I could not find how to do that.