1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2017
    Rep Power

    Copy a file from another file


    How do I copy a file from a catalogue when I am in a different catalogue using unix commands?
    For example

    What till the command look like if I want to the move the T-shirts that is in the T-shirts file over
    to clothes if I am currenly in the clothes folder?

    Thank you in advance!
  2. #2
  3. Contributing User
    Devshed Frequenter (2500 - 2999 posts)

    Join Date
    Mar 2006
    Rep Power
    cp ../../T-shirts/T-shirts .
    The '..'s mean 'parent directory', so the first .. means the Bracelets directory, and the next .. is then Clocks, the rest is pretty much what you'd expect, with the final '.' meaning 'here'
    The moon on the one hand, the dawn on the other:
    The moon is my sister, the dawn is my brother.
    The moon on my left and the dawn on my right.
    My brother, good morning: my sister, good night.
    -- Hilaire Belloc

IMN logo majestic logo threadwatch logo seochat tools logo