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 ../../..