here is a small test I ran, to try and move me back to root:
#!/bin/bash
pwd
cd /
pwd
It returns the current working directory, and then the correct new one, but when the script finished executing, I am still in the original directory and haven't moved. Is there any way to achieve this?
Thanks.