How to go to parent directory?

QuestionsQuestions8 SkillsProYour First Linux LabSep, 12 2025
0177

To go to the parent directory in Linux, you can use the cd command followed by two dots (..). Here’s the command:

cd ..

This command will move you up one level in the directory structure. You can verify that you have successfully changed to the parent directory by using:

pwd

This will display the path of your current directory, which should now be the parent directory of your previous location.

0 Comments

no data
Be the first to share your comment!