Unix Tutorial

Copying Files

To copy a file, the syntax is “cp file.ext file.ext” where the first file is the file you wish to copy, and the second is where you wish to copy it to and the name it should have.

cp

Notice the dot at the end of the command, it's not punctuation, it's the second argument. It means the current folder. So, I am copying "index.shtml" in my 409 folder to the current folder.

Previous Home Next