You can run the pwd command to view the current directory before changing the current directory. Then, you can run the cd command to change the current directory as required.
You can run the pwd command to view either the root directory or a subdirectory.