FAQ: Manipulation - cp Part I

This community-built FAQ covers the “cp Part I” 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 Part I

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!
You can also find further discussion and get answers to your questions over in #get-help.

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

Need broader help or resources? Head to #get-help and #community:tips-and-resources. If you are wanting feedback or inspiration for a project, check out #project.

Looking for motivation to keep learning? Join our wider discussions in #community

Learn more about how to use this guide.

Found a bug? Report it online, or post in #community:Codecademy-Bug-Reporting

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!

I’m in the cp command tutorial, part 5. I’m being asked to copy cleopatra.txt from /biopic to /historical.

My command was cp cleopatra.txt /home/ccuser/workspace/movies/drama/historical

Did I do something wrong? The exercise asked me to copy from one place to another, and I can easily see the text in the other directory.

The hint says to change to the /drama directory before copying cleopatra.txt from ./biopic to ./historical/. I have copied the file - for which there appears to be no content - but the step #5 does not check off.?

What was the exact command you used? If you copied it correctly, you should be able to see the file in the historical directory. Additionally, some of the exercises in this course require an exact command to be inputted (yours may have accomplished the same thing but you’ll only pass if you put in the exact command the LE is looking for).

I successfully copied cleopatra.txt directly from the current directory without changing the working directory first, using:

cp cleopatra.txt ../historical

I confirmed this copied properly, but wasn’t able to proceed until I cd’d back to the higher directory and copied the file again from there. Seems an arbitrary requirement to force a single method of proceeding if there are other methods (already learned!) which work just as well.

Also – if anyone finds out how to disable this awful red popup text whenever you pwd or ls to confirm where you are in the directory tree, please let me know! confirming where you are is a basic part of using the command line, and we shouldn’t need to close a popup every time we do so.