» Linux » Examen sur Linux » Examen 201 : Advanced Administration » Section 3 » Question 9/20
9.You need to view the contents of the tarfile called MyBackup.tar. What command would you use?
Answer: tar tf MyBackup.tar

Explanation: You can list the contents of a 'tarball' with the 'tar tf tarfile' command. The t option is used to list the files and directories. The f option allows you to specify the name of the tarball (a tarball is a common name for an archive created with the tar utility) with the f <filename> option.

Reference: http://www.oreillynet.com/linux/cmd/t/tar.html

« Question 8 Question 10 »