Predictive Hacks

How to go Back more than one Directory in Unix

We know that the cd command stands for the “change directory”. If we want to go one step back, we simply type:

cd ..

What about if we want to go two steps back in a single command? Then we can type:

cd ../..

Similarly, you can add more steps backward as follows (n=3).

cd ../../..

Share This Post

Share on facebook
Share on linkedin
Share on twitter
Share on email

Subscribe To Our Newsletter

Get updates and learn from the best

More To Explore

Python

Image Captioning with HuggingFace

Image captioning with AI is a fascinating application of artificial intelligence (AI) that involves generating textual descriptions for images automatically.