Mkdir

I can’t go any further

Can you share the link to the exercise? Or, a screenshot of the instructions?

In your screenshot, only the explanatory text of the exercise is visible. The instructions that need to be completed (at the bottom) are not visible.

2 Likes

Link:
https://www.codecademy.com/courses/learn-the-command-line/lessons/navigation/exercises/learn-the-command-line-mkdir

pwd
/home/ccuser/workspace/blog
$ cd 2014
$ cd dec
$ pwd
/home/ccuser/workspace/blog/2014/dec
$ ls
monitor.txt  mouse.txt
$ mkdir media
$ pwd
/home/ccuser/workspace/blog/2014/dec
$ ls
media  monitor.txt  mouse.txt
$ 

You can always go under “Get Unstuck” and reset the exercise.

2 Likes

https://www.codecademy.com/courses/learn-the-command-line/lessons/navigation/exercises/learn-the-command-line-mkdir

Your screenshot shows that you are in the media directory and not in the dec directory as the hint wants you to be, which is one level up. Type cd .. to move up and then try again.

1 Like

in the dec directory I have to create mkdir media an tv? Thank you!

Yes. But your screenshot shows that these already exist.
You typed pwd and it logs that you are in dec/media.
Then you typed ls and it logs tv – so tv already exists and is located in media.

yes…that’s exactly what happens and from this point on I can’t continue

Yes, because that’s not what you are asked to do. You should type ls while you are in the dec directory – not the media directory. So you need to move one level up and type ls again.

I did that and takes me here ’ media monitor.txt mouse.txt’

Which seems to be the correct output. So you’re still getting that error? What is the step you’re currently on? Neither your screenshots nor your description of the error tells us…

I should type ‘$ mkdir media’ but I will get the message that ’ media ’ already exists

Yes, because you created that folder before. I f you are in the dec directory and just click ‘Check work’, you still get an error?

yes…’ Did you run the command ls while in the dec/ directory to list the contents of the directory?'…this is what I get

Ok. That’s not what your screenshot shows though. Then you should reset the exercise and try again. It’s just 3 steps and should be fast forward.

I will try …thank you!

1 Like

You’re in the tv directory. you need to go up two directories, like the directions state.

You can always reset the workspace and start again and then check your work.

/home/ccuser/workspace/blog/2014/dec/media
$ cd ../
$ pwd
/home/ccuser/workspace/blog/2014/dec

#Or, to go back to the blog dir:

$ cd ../../
$ pwd
/home/ccuser/workspace/blog

Bookmark this site of basic Unix commands. It’s helpful:

2 Likes