Which of the following command is used for viewing the attributes of contents of an archive?

Which of the following command is used for viewing the attributes of contents of an archive?
A. tar -tvf abc.tar
B. tar -cvf abc.tar
C. tar -xvf abc.tar
D. tar -t abc.tar
 
Answer: a
Explanation: -t option is used with tar for viewing the contents of the archive in a table manner. It does not extract files rather it simply shows their attributes in a suitable form containing file permissions, file size and file name.
Code:
$ tar  -tvf  abc.tar
 

Tìm kiếm

Back
Top