1.

To create an archive named abc.tar consisting of two files,file01 and file02, which of the following command will be used?(a) tar -cvfabc.tarfile01file02(b) tar -cvffile01file02abc.tar(c) tar -cvabc.tarfile01file02(d) tar -cabc.tarfile01file02This question was addressed to me in an internship interview.This key question is from Compressing and Archiving Files in chapter Handling Ordinary Files of Unix

Answer»

Correct choice is (b) TAR -cvffile01file02abc.tar

To EXPLAIN I WOULD say: To create an archive -c option is used, -v is used to display the progress while tar works while -f is used to specify the name of the archive. All these OPTIONS can be combined together as (-cvf).



Discussion

No Comment Found

Related InterviewSolutions