FAQ: Navigation - cd I

Welcome to the forums. Please delete your post, we encourage learners here to figure out solutions for themselves rather than copying off of others.

1 Like

The console is creating a new workspace different from the original one (ex: workspace_2187922)
You have to create these new folders inside ccuser / workspace with the mkdir command
It is a bug that codecademy should resolve.
$ cd
$ ls
npm-shrinkwrap.json package.json workspace workspace_217355972
$ cd workspace
$ ls
$ mkdir blog
$ cd blog
$ pwd
/home/ccuser/workspace/blog
$ mkdir 2015
$ pwd
/home/ccuser/workspace/blog
$ cd 2015
$ pwd
/home/ccuser/workspace/blog/2015
$ mkdir jan
$ mkdir memory
$ ls
jan memory
$ cd
$ pwd
/home/ccuser
$ cd workspace
$ pwd
/home/ccuser/workspace
$ cd blog
$ cd 2015
$ cd jan
$ cd memory
bash: cd: memory: No such file or directory
$ pwd
/home/ccuser/workspace/blog/2015/jan
$ cd …
$ pwd
/home/ccuser/workspace/blog/2015
$ cd jan
$ pwd
/home/ccuser/workspace/blog/2015/jan
$ mkdir memory
$ pwd
/home/ccuser/workspace/blog/2015/jan
$ ls
memory
$ cd …
$ pwd
/home/ccuser/workspace/blog/2015
$ cd …
$ pwd
/home/ccuser/workspace/blog
$ cd 2015
$ cd jan
$ cd memory
$ pwd
/home/ccuser/workspace/blog/2015/jan/memory

7 Likes

Hi, no matter how many times I do this, it never works. I’ve tried all the ‘solutions’ here and I can only think that it is a bug. I understand the logic fine, please help!

Have already reported it as a bug. Using Windows 10. Ta!

Same here!!

Still not working… ;(

1 Like

I just this second managed it - using the comment above mine!

it looks weird, but it makes sense when you are doing it. There are a couple of things that didn’t work for me (cd …) but so long as you make the directories you can then go into them and pass onto the next exercise

2 Likes

Thank you that worked!! :slight_smile:

1 Like

cd … not working.
Only used with 2 points
Like this: cd …

1 Like

thank you this was the only thing that fixed it

1 Like

thanks a lot this worked. I spent more than 3 hours on this lesson and I am so happy I was able to pass it with your help. Thanks a lot

Can anyone explain why this isn’t working?

I also am unable to complete the exercise due to a bug.
This solution worked for me !

1 Like

I did the same thing as ginaginelli and what it said to do: cd jan, cd memory, pwd (as well as variations of using multiple pwd commands). It’s still saying I’m doing something wrong - I’m just not sure what.

Legend, thank you!! This was actually really good practice as well, as it said the memory file didn’t exist so I managed to add it from what I’d learned here and continue :sweat_smile:

1 Like

I don’t know why and I am just a beginner but I just noticed that for some reason your workspace directory has a bunch of numbers next to it. it looks like this: workspace_489131410. Maybe that’s the problem? Because whenever I press pwd my workspace doesn’t have the underscore or all those numbers. So for example at the end, when were in memory and I press pwd, I get: /home/ccuser/workspace/blog/2015/jan/memory. Could it be that the workspace directory with all the numbers is a different directory with a bunch of identical directories in it that codecademy accepts as answers when you go into them except for the identical memory directory? Maybe try waiting until the terminal restarts and doing it over again. Not sure that will help but I think it’s worth a shot. Or use “cd …” (cd [space]…) to go back until you get to the ccuser workspace and press “ls” to see what’s over there. I tried it and I didn’t see any workspace with numbers, but maybe they fixed it since? After all I am responding to this post much later. But yeah, all of this is just a theory.

Welcome to the forums! There were changes made to the course at some point, which added numbers to the workspace directory name. Some of the checks in the course haven’t been updated with this yet, leading to steps being marked incorrect. A workaround for now has been to navigate up to the ccuser directory, make a workspace directory and any necessary subdirectories used in the exercise, and passing the checks that way.

I’m also running into challenges with this activity and am wondering if it is a bug that hasn’t been resolved. Could someone help me troubleshoot?

anyone please help im stuck on the first task 2015 isnt showing up on my computer its not letting me finish

i just tried this and it did not work still

sorry this is the correct one
$ dir
2014 2015 hardwaare.txt
$ cd 2015/
$ ls
feb jan motherboard.txt
$ cd jan
$ ls
cpu.txt memory
$ pwd
/home/ccuser/workspace/blog/2015/jan
$ ls
cpu.txt memory
$ cd memory/
$ pwd
/home/ccuser/workspace/blog/2015/jan/memory
$ pwd

This is the correct way PASS sorry about the other above i was rushing and doing free code camp at the same time i apologize to all of yall email me if you have any questions