InterviewSolution
Saved Bookmarks
| 1. |
What is the function of cp command in UNIX?(a) list all the available files in the current directory(b) delete a given file(c) cp is a command used for copying files and directories(d) change the directoryI got this question in homework.My question is based upon Copying a File: cp Command topic in portion Handling Ordinary Files of Unix |
|
Answer» RIGHT option is (c) cp is a command used for COPYING files and directories Explanation: cp command is BASICALLY used for CREATING a copy of source file or a group of files. The syntax of the command requires at least two filenames to be SPECIFIED. If both the files specified are ordinary files, the first file will be copied to the second file. The syntax of cp command is cp source_filenamedestination_filename. The contents of the source file will be copied to the destination file in the same directory. |
|