[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: URGENT! deleted my home directory



destruss@rconnect.com (Dean Struss) wrote:
>   I too have a question on the cp command. When used it always ask rm
>the file I'm trying to copy. Is cp copy or remove? Also can't one
>specify a place on a directory with a new name to place a file in a
>newly created file. I keep getting the response that directory doesn't
>have a file of that name.

>From the sound of things, you've got the source and destination
filenames the wrong way round!

To copy, say, test.c to test.c.bak, use:

  cp test.c test.c.bak

To copy test.c to directory test, use:

  cp test.c test/

-- 
Colin Watson                                           [cjw44@cam.ac.uk]


Reply to: