This question already has an answer here:

i have been stuck on this question for my lab for linux class

enter image description here

marked as duplicate by G-Man, dhag, don_crissti, roaima, Timothy Martin Oct 18 '17 at 22:43

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 4
    Hi! Please edit your question to (1) replace the screenshot with text and (2) tell us what you tried. – dhag Oct 18 '17 at 19:52
  • There are a couple of steps that come before #2: do some research (starting with a review of what you were taught in class) and then try to solve this yourself. – G-Man Oct 18 '17 at 20:32

Since this is an assignment I'm not going to give you the answer. But I will point out that every directory has two special directory links:

  • . (dot): "This directory"
  • .. (dot-dot): "The directory above"

First: try to write the answer using absolute path, e.g.

cp /path/to/file.xyz /path/to/the/target/file.xyz

Second: in each directory you can find

. = this directory

.. = parent directory

Third: rewrite the former command using the . and .. dirs. Assuming the current dir is /path/to/ we can write:

cp ./file.xyz ../the/target/

Not the answer you're looking for? Browse other questions tagged or ask your own question.