Home » LPI » 117-201 » What command would you use?
SIMULATION
You need to view the contents of the tarfile called MyBackup.tar. What command would you use?
Correct Answer: tar tf MyBackup.tar -or- tar -tf MyBackup.tar
Explanation/Reference:
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
Download Printable PDF. VALID exam to help you PASS.
|
|