FAQ: Manipulation - cp II


This community-built FAQ covers the “cp II” exercise from the lesson “Manipulation”.

Paths and Courses
This exercise can be found in the following Codecademy content:

Web Development

Learn the Command Line

FAQs on the exercise cp II

There are currently no frequently asked questions associated with this exercise – that’s where you come in! You can contribute to this section by offering your own questions, answers, or clarifications on this exercise. Ask or answer a question by clicking reply (reply) below.

If you’ve had an “aha” moment about the concepts, formatting, syntax, or anything else with this exercise, consider sharing those insights! Teaching others and answering their questions is one of the best ways to learn and stay sharp.

Join the Discussion. Help a fellow learner on their journey.

Ask or answer a question about this exercise by clicking reply (reply) below!

Agree with a comment or answer? Like (like) to up-vote the contribution!

Need broader help or resources? Head here.

Looking for motivation to keep learning? Join our wider discussions.

Learn more about how to use this guide.

Found a bug? Report it!

Have a question about your account or billing? Reach out to our customer support team!

None of the above? Find out where to ask other questions here!

19 posts were split to a new topic: No such file or directory error

In this exercise, we’re introduced to the * wildcard and we see it being used like so (cp m*.txt scifi/). It explains what this does in the next slide, however I am still confused as to where these text files starting with ‘m’ have come from? It says they’re from the working directory which I understand to be the directory currently open but I don’t see them. Any explanation is greatly appreciated.


This “Learn the Command Line” course is really confused. I haven’t learned how to create a new file. And the hint just leads me to another course. If I want to learn the Commend Line from beginning, which course should I start with?

1 Like

The course seems to reset your PWD and then asks to go to a directory using a wrong starting point and then you are stuck until you navigate to a place from where the specific cd …/…/[directory] works and then you are good to go. This behavior could be very confusing for new people to the command line.

A review might be a good idea.


Actually it doesn’t work out at all for me.

For some reason the system does not recognize that I am already in the comedy directory. What’s happening?

Another broken module from the Command Line course, you have to give incorrect answers for the module to proceed. Please review!


I can’t seem to move past this screen for some reason, any ideas?

I have the same problem;

You may have figured this out or just moved on by now, but I got stuck in the same place and was able to progress by going two folders deep and then moving back up to the Comedy folder using the command they give you.


I’m following the progression on lesson 6 (cp II). I have listed the files in the “scifi” directory and input the command to list the txt files starting with “m”. According to the instructions, it should list:

matrix.txt , matrix-reloaded.txt , and matrix-revolutions.txt .

Instead, it has listed:

and it has passed me, I’m not under the impression this is correct, should I report it?


I’m not sure but I think terminator.txt may have been in the scifi directory already. The wording,making it sound like you should ONLY see the matrix files, is weird, but I believe this is working as intended.


This problem of resetting the current working dir is confusing a lot of people and need to be fixed… THAT’S A PRO COURSE ! make it worth it !

1 Like

I agree. I cannot see them listed in the tree image we were given at the beginning but if we run a ls on the directory they are listed. Another hole in this course

1 Like

For some reason unless you copy & paste the command from the instructions ti won’t let you pass to the next step. Just copy & paste it so you can move on. Very poorly designed in my opinion

1 Like