Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Command Format: cp source_file destination file This will copy from an existing

ID: 3531423 • Letter: C

Question

Command Format:cp source_file destination file

This will copy from an existing filename (old source_file) to a new file name (new destination_file) in the same directory.Note:A user cannot have two files of the same name in the same directory.

To copy one or more files to another directory use the format:

Command Format:cp [-i] source_file(s) destination_directory

This format copies the existing file or files to another directory in the directory structure. When copying a file this way, it will normally have the same name in the destination directory. A user can add a slash and a file name after the destination directory to give the file a different name if desired.

If a file is copied and the name of the destination directory does not exist a new file is created with that name, otherwise the file is copied to the directory specified. When copying more than one file to a directory, thecpcommand assumes the last entry is a directory name and the prior entries are files.

Explanation / Answer

Please rate with 5 stars :)


Here is the complete implementation


http://coreutils.sourcearchive.com/documentation/7.4/cp_8c-source.html