The “cp” command
Use this command to copy one or more files or directories.
<OPTION” variables along with the “
<SOURCE>” path and filename of the file to copy. You can include multiple “
<SOURCE>” file entries with a whitespace. Include the "
<DIRECTORY>” for the file destination.
cp <OPTION> <SOURCE> <DIRECTORY>
cp -p /123456/test/movie1.mp4 /123456/test/movie2.mp4 /123456/release/
<DIRECTORY> must use a pre-existing path, as this
command doesn't create a non-existent directory. For example, because the “non-existent”
directory doesn't exist, this command will fail:
<OPTION>” variable displayed in the above examples can be populated with
any of the following options:
||Ask before overwriting existing files.|
||Copy the attributes for each file, as well.|
||Use recursion, creating files from non-directories.|
||Display the operation’s execution step by step.|
||Display help information for this command.|