FAQ: Manipulation - cp Part I

Here is where I went wrong with this exercise:

I put cp biopic/cleopatra.txt/historical

When I should’ve put: cp biopic/cleopatra.txt historical

The difference being: I placed a forward slash (/) in-front of the historical directory.

I having a problem with step 5 as well.
n a single command, make a copy of cleopatra.txt to go into the historical/ directory.

Hello,

  1. Firstly it’s important to know which working directory you’re in. To check this, use the pwd command to see where you are in the file structure.

  2. Once you know where you are, navigate to the Biopic folder

  3. Next, type this command in: cp biopic/cleopatra.txt historical - This will copy the cleopatra.txt file to the historical folder.

  4. Once done, navigate to the historical folder from the biopic folder using this command: cd …/historical and finally check if the file was successfully copied to this folder by using the ls command

I figured out how to get past step 5 in “cp part 1.” what you have to do is type in “cd /home/ccuser/workspace/movies/drama/historical” this will put you in the historical directory. Next, you type “touch cleopatra.txt” to add cleopatra.txt to historical. You’re Welcome

2 Likes

Ohmfg thanks bro you just saved my brain from exploding.

2 Likes

Hi everyone,
I’m very new to this forum and seek any advise on 1 particular question which I’m terribly stuck at.

For this exercise, we need to start in the drama/biopic directory. Use pwd to check where you are. If you aren’t in the drama/biopic directory, you can use the command cd /home/ccuser/workspace/movies/drama/biopic to quickly get there. As you move to the correct file path, ignore any errors that pop up.

Then, list all files and directories in the working directory using ls.

Checkpoint 2 Passed
2.
Using a single cp command, copy all the contents of frida.txt to lincoln.txt.

Checkpoint 3 Passed

Use cat on lincoln.txt to confirm that the information about Frida Kahlo has been copied into the lincoln.txt file.

To clear the terminal of the text after its output, use the clear command.

Question 3. I’m stuck and cant proceed the next page of online study.

make sure you’re in biopic first and see the lists then when you see the files run “cat lincoln.txt”
it should work

I almost went nuts on this. cat lincoln.txt first, then hit ‘Check work’ and only then run clear.

Compared to your screenshot, the instruction has been rewritten a bit but does not add a bit of additional clarity:

3. Use cat on lincoln.txt to confirm that the information about Frida Kahlo has been copied into the lincoln.txt file.

To clear the terminal of the text after its output, use the clear command.

Check your progress with “Check Work”.

I love Codecademy all my heart but the instructions in this course are really poorly written.

Hi have you manged to solve this if you have can you please explain what you did as I am struggling a lot.

Hi have you done part2?

Hi have you manged to do step 2?

Hi I am stuck on part 2 but this doesn’t work

There is a bug on problem 6.
I am 1000% sure my answer is correct.
ANSWER:
cd drama/historical
ls - to show cleopatra.txt
All correct, but still not working

I ask customer support to fix this page bug 1-2 weeks ago.
It’s still not fixed. Please fix this bug ASAP, so I can move forward. Thank you!

so I just did step 5, it checked out BUT when I checked historical with ls my cp command had also moved notorious and ray… any idea as to why?

this is my code copied:

$ cp biopic/cleopatra.txt historical
$ cd historical
$ ls
cleopatra.txt gladiator.txt notorious.txt ray.txt selma.txt

i need help on 4 :frowning_face: :frowning_face:

hi I’m stuck on step 6

here is my code:

$ cp biopic/cleopatra.txt historical
$ cd historical
$ ls
cleopatra.bak cleopatra.txt gladiator.txt notorious.txt ray.txt selma.txt

it won’t let me proceed, what did I do wrong?

thanks in advance :slight_smile:

Hi there, I wrote the same code as you and I gave the same problem, did you find out what was wrong?