Interview Questions

What command can you use to determine this

Operating System Interview Questions and Answers


(Continued from previous question...)

What command can you use to determine this

You are covering for another system administrator and one of the users asks you to restore a file for him. You locate the correct tarfile by checking the backup log but do not know how the directory structure was stored. What command can you use to determine this?
Choose one:
a. tar fx tarfile dirname
b. tar tvf tarfile filename
c. tar ctf tarfile
d. tar tvf tarfile


d

The t switch will list the files contained in the tarfile. Using the v modifier will display the stored directory structure.

(Continued on next question...)

Other Interview Questions