Command Line - Pro Interacrive

How do I change directories so that my two directories are above my current directory?

Please help!

Say you are in the directory ‘biopic’ which is in the ‘drama’ directory, which is in the ‘movies’ directory. To change the directory pointer to ‘movies’,

cd ../../

If we wanted to go directly into the ‘action’ directory (from ‘biopic’), also situated in the ‘movies’ directory,

cd ../../action
1 Like

Thanks but I still don’t really understand what I should write.

What directory are you currently in? Type,

pwd

to show the complete path to the present working directory.

1 Like

Ok, and the I write cd…/…/?
I’m sorry but I have an hard time understanding.

I’m in this:
/home/ccuser/workspace/my-blog/2015/feb

To change to the ‘my-blog’ directory, type and Enter,

cd ../../
1 Like

pls someone help me I don’t understand what I shoud write if I want to change directories!:disappointed_relieved:

nevermind I found the problem it works, thank you very much

1 Like