here is a small test I ran, to try and move me back to root:#!/bin/bashpwdcd /pwdIt 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.
How can I get a shell script to change directory for me?
linux;bash;shell;shell script