How to navigate up one directory from drama/historical/ to drama/?


#1

I'm confused about how to do this :frowning:

It's in section 5


#2

@mahvishmi,

Please read..
= http://discuss.codecademy.com/t/im-14-and-cant-get-past-11-cd-jan-memory-to-cd-2015-feb/14805/2?u=leonhard_wettengmx_n


#3

type (cd ..) and it will work, trust me I was stuck on this for a long time and i went to the glossary and found this and it worked, I was happy


#4

I am still stuck on this. What commands should I type to move up one directory from drama/historical/ to drama/, it says this is another way to use cp


#5

Yea, but you first need to navigate before you can learn another way to use copy. To go up one directory use:

cd ..

whenever you need to move, cd is your friend (i made myself a cl command, really nice), but then we are going off topic


#6

Yes, but cd is not working. What command am I supposed to use to navigate up one command?


#7

@puedoc,

At the moment you are doing a course,
in which you will learn how to navigate on a =disk= within a file-system
in an Unix enviroment.

The file-system starts with a so-called root-directory.
This root-directory is the =top= of a directory-Tree

As this course is running in a =protected-environment=
our root directory will be /home

Unix-style commands are a little cryptical.
pwd parse/show-the-current-working-directory,
like

$ pwd
[output] /home/ccuser/workspace/blog
[visualized] 
/home
   |
   /ccuser
      |
      /workspace
          |
          /blog <<<Current-Directory

With the ls command, you will get =Listing= of the existing normal files,
like

$ ls
[output]
2014  2015  hardware.txt

In the Unix-command environment you can use so-called =command-qualifiers=
which you indicate with a minus-sign -
Like the ls command has a
-a qualifier, which will cause the ls command to present =ALL= files in this directory
-l qualifier, the files are presented in the =LONG= format

$ ls -al
[ouput]
drwxr-xr-x 4 ccuser ccuser 4096 Dec 23 21:39 .
drwxr-xr-x 3 ccuser ccuser 4096 Dec 23 21:39 ..
-rw-r--r-- 1 ccuser ccuser 6148 Jun 11  2015 .DS_Store
drwxr-xr-x 3 ccuser ccuser 4096 Jun  9  2015 2014
drwxr-xr-x 4 ccuser ccuser 4096 Jun  9  2015 2015
-rw-r--r-- 1 ccuser ccuser    0 Jun  9  2015 hardware.txt

= http://stackoverflow.com/questions/17578647/what-does-terminal-command-ls-l-show

drwxr-xr-x 3 ccuser ccuser 4096 Dec 23 21:39 ..
stands for:: a **d**irectory with _name_ =double-dot= `..`
and contains a link to the =parent= of the =current-directory=

With the cd command you have the ability to traverse through the =directory-Tree=

directory-Tree

       root
         |
         +--users
              |
              +--comedy
                   |
                   +--theater

pwd
[producción] root/users/comedy

       root
         |
         +--users
              |
              +--comedy   <<<=====
                   |
                   +--theater

cd theater
pwd
[producción] root/users/comedy/theater

       root
         |
         +--users
              |
              +--comedy
                   |
                   +--theater  <<<<

cd ..
pwd
[producción] root/users/comedy

       root
         |
         +--users
              |
              +--comedy  <<<<<<
                   |
                   +--theater

cd ..
pwd
[producción] root/users

       root
         |
         +--users        <<<<<<
              |
              +--comedy  
                   |
                   +--theater


Lesson 5 / step 3
Help im stuck not sure how to get there? im guessing you need to use ls but im lost from there
Stuck on Manipulation
Hi my name is rory im new to the command world and i got stuck in the tutorial shen using the ls command
#8

Can you post a screenshot of your terminal window?

You can use the up arrow key to navigate through earlier commands, i run: history to see them all


#9

I have the same problem here. Got stuck and cd.. doesn't work!


#10

You need a space between cd and ..


#11

YEAH it works! Thank you soooo much!!!