11 lines
480 B
Plaintext
11 lines
480 B
Plaintext
Usage: cp [FLAGS] [SOURCE] [DESTINATION]
|
|
Copies a file.
|
|
|
|
-o, --overwrite Allows any file that might be at the destination to be overwritten.
|
|
SOURCE Specifies the file to be copied.
|
|
DESTINATION Specifies the path to copy the file to.
|
|
|
|
Examples:
|
|
cp /home/a.txt /b.txt Copies the file at /home/a.txt to /b.txt.
|
|
cp -o c.lua d.txt Copies the file c.lua to another file called d.txt in the shell working directory, overwriting any file that might be there.
|