Files can be copied onto other files using the cp command:
where filename1 and filename2 are files, not directories.
filename1 will be copied onto filename2. If filename2 does not exist, it will be created. If it exists, its contents will be overwritten!
A second method, involving directories, has been discussed in the previous section.
Files can also be copied using the following syntax:
cp [-ip] filename... directorywhere filename may be one or more files. These files will be copied into directory.