1.

How can we copy a file into our current directory?(a) cp file1(b) cp file1(c) cp file*(d) none of the mentionedI have been asked this question by my college professor while I was bunking the class.My doubt stems from Copying a File: cp Command topic in chapter Handling Ordinary Files of Unix

Answer»

Right option is (b) cp file1

For EXPLANATION: For creating a copy of a file into our CURRENT WORKING directory we use the shorthand NOTATION (.). For example,cp file1.will create a copy of file1 into our current working directory with the same NAME.



Discussion

No Comment Found

Related InterviewSolutions