FAQ: Navigation - cd II

Please I am lost here. It seems everything that I try is not working.
To be in the blog directory is it cd…/blog or what please. It has been two days looking for a solution for this. Please kindly help me with the solution.

Please post the result of you using the command pwd. I can’t help you without that information since I don’t know your exact filepath.

1 Like

This is where I’m stuck too. I’ve tried several things and I’m typing it exactly as it asks and am frequently checking where I am with pwd and looking at my file options with ls. Now I am getting an error that says “too many arguments” for the task asking me to do everything in one line.

sorry, I figured it out and I feel stupid >_<

I also think there is a bug… and seeing that I am writing to you all from the future (3 months after you reported that), and being stuck myself, I’m afraid that bug might not have been fixed yet.
What a shame.

The Learn the Command Line exercises are always a bit finicky. I was able to pass them though. The exercise requires you to input exactly what it expects. Even if you get the same final result, taking different steps to get to the solution won’t allow you to move on.

How did you attempt to solve this?

Hi Victoria,

I took screenshots of what I did.
In the previous exercise we were requested to go into jan and then into memory.
In the current exercise the assumption of the instructions was that we were in blog, going down to 2015 and then to feb, or, in a single step 2015/feb
You can see from the screenshot that I was trying to follow the instructions and then, when realizing I was in jan/memory to go back to jan 0r 2015, or backtrack to blog. However, at this stage we did not receive any instruction regarding backtracking (going to a parent directory) yet, and so, my attempts were incorrect. If you look at the forum for this lesson, you will see that many of the students are confused.
Only later, in the Hint, was there the instruction we needed: cd …/… . It should have been in the main lesson, and not appear as a hint! And also, the Instruction assumes the working directory is different than where the previous Instruction has left us off, and at this early stage of the study, many of us do not have the skills to assess that, and have no clue why we are stuck. Here is the terminal screenshot:

Thank you so much for taking a look at this!
Sharon.

The exercise states that you should be starting off in the blog directory. Did the terminal not reset? I believe (if I remember correctly) that pressing the “Next” button to move onto the next exercise will reset the terminal and therefore you should have started off in blog.


You have learnt how to do so. At the beginning of this exercise, there is an explanation of how to navigate to the parent directory using ...


This is put into the hint because otherwise the answer would have been given away. These exercises expect you to apply what you have just learnt, in this case, how to navigate to the parent directory.


Though users should be able to assess this, as they have learnt how to use pwd and ls, among others, the LE should be starting you off in the correct directory. What directory did you expect to start in and what directory did you actually start in?

Hi Victoria,

I was surprised by your response - that we learnt the command, and decided to repeat the lesson and catch what I may have accidentally missed. I did see the command there cd… in lesson 6/10.
Still, the end of the teaching piece leaves us in jan, and the instruction of the exercise starts us off at blog. And that, I found, is confusing for a total beginner.
In retrospect, I learnt a lot from this hurdle.

Thanks,
Sharon.

This FAQ topic is for Lesson 6/10? Perhaps you meant to post in this FAQ (which is for the previous lesson)?


You’re right, I’ll submit a bug report for this, thanks!

The instructions are not very clear. It makes it sound like you should be typing “cd …/next-directory” when in fact “next-directory” should be the actual name of the directory. So the prompt to go from the “feb” directory up one level to the “2015” directory and then back down to “jan”:

The answer is: cd …/jan

cd … ->brings you up to 2015

/jan ->brings you down to jan (all in a single command line)

*Edit not sure why it’s updating my comment to show 3 periods after “cd” when in fact it should be 2 (which I’m typing).

1 Like

I too struggled with this exercise for some reason. Maybe the wording is weird? Idk.

I kept trying

cd …/2015/jan
but I kept getting the ‘no such directory’ error.

To solve it i used

cd …/jan

Hope this helps!

Already solved this cuz there was a hint i didnt look at :slight_smile: (adding it at the bottom)

So im on instruction 3, however i can’t find the way to do it, and the worst part is that the exercise gave me a correct answer on a invalid input >_>

It wants me to navigate from 2015/jan to Blog

“Navigate back to /home/ccuser/workspace/blog using a single cd command.”

The example does not give me any kind of help in the instrcution,

“To move upwards in the filesystem we use cd .. , and to move downwards we use cd next-directory . We combine directions using a / :”

cd …/next-directory

This above doesnt help me in any kind. i also tried “cd …/Blog” but it gave me a error but the exercise marked it as correct (already submitted a bug report)

Solution: cd …/…
Notice that its only 2 dots (.) the forum automatically turns 2 dots into 3

2 Likes

Its not a bug. There’s a space between cd and … therefore cd … not cd…

Yes, but step 3 was also automatically marked correct for me when it clearly wasn’t, that reads as a bug to me too.

I eventually figured it out, but for me, this was a case of the answer on step 3 was too simple to see. The hint made sense after I got the solution on my own :joy:

Dears just use:
cd …/jan

Pay attention! After cd you have to use space and then … (2 points)

paying attention to detail, spaces and all are key to not having errors.
the answer is # cd “space”…/jan or cd …/jan make sure to use the space bar after cd and you shouldn’t have any problems.

use cd …/jan
please don’t forget to place the gap between cd and " …" this two dots. Then press pwd and enter
I don’t know why it’s showing three dots. I’m sorry. I wrote two dots.

The forums use Markdown, and it automatically interprets .. as you wanting to use ..., so in the future, you can surround these (and any code) using backticks ( ` ).

1 Like

I’ve tried cd…/jan and cd…/jan it’s not working. What is the solution?