When I want to go one directory up I use
cd ..
But when I want to go 7 directories up is there any way to do this other than just typing seven (7) times cd .. ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Also another useful navigation tip is if for example lets say you keep switching from a directory (call it A) to another (call it B) that’s 7 directories up, in your case.
So if you’re in directory A:
That will move right back to directory A.
-expands to the previous directory you were in.