|
Copies a file into a new file or into a new directory with the same name. If the new file already exists, copy overwrites the existing file with the new file. Format: cp filename filename Examples: cp prog1 prog2 cp prog1 /home/janet The second example copies prog1 into /home/janet/prog1. After a cp command, two files exist: the original file plus the new file it was copied into.
|
|