How to go back to the previous directory?

QuestionsQuestions8 SkillsProBasic Files OperationsSep, 18 2025
0136

To go back to the previous directory, you can use the following command:

cd -

This command will take you back to the directory you were in before your last cd command. You can verify your current location by using:

pwd

This will display the path of the current directory.

0 Comments

no data
Be the first to share your comment!