1.

To copy multiple files, the last destination file should be a directory.(a) False(b) TrueThis question was posed to me in an interview for internship.This interesting question is from Copying a File: cp Command in chapter Handling Ordinary Files of Unix

Answer»

Right answer is (b) True

The EXPLANATION: We can copy multiple files using a single INVOCATION of cp command. To do so, the LAST name SPECIFIED should be a DIRECTORY. For example,cp file1file2file3dir_one. It will copy all the three files to the directory named dir_one.



Discussion

No Comment Found

Related InterviewSolutions