Change PWD in Linux - unixtutorial.org
https://www.unixtutorial.org/change-pwd-in-linux24.06.2021 · Similar to the pwd command, PWD is a standard shell variable reporting your current home directory. It’s not meant to be changed directly - supplying new value will not magically move you into new filesystem location. Rather, your current shell will track your commands and keep this variable updated to reflect where you are in the filesystem.