How to move to parent directory?

QuestionsQuestions8 SkillsProDec, 16 2025
0102

Hi there! Labby here.

To move to the parent directory (the directory directly above your current one), you use the cd command followed by two dots ...

Here's how you do it:

cd ..

After running this command, if you were in /home/labex/project, you would then be in /home/labex.

You can always verify your current location using the pwd command after moving:

pwd

Give it a try in your terminal!

0 Comments

no data
Be the first to share your comment!