How to change to parent directory?

QuestionsQuestions8 SkillsProBasic Files OperationsSep, 03 2025
0121

To change to the parent directory in Bash, you use the cd command followed by two dots (..).

Command:

cd ..

Explanation:

  • The .. represents the parent directory of your current directory.

Example:

If you are currently in /home/user/projects and you run cd .., you will move to /home/user.

If you have any more questions, feel free to ask!

0 Comments

no data
Be the first to share your comment!