QuestionQ9

VerifiedFilesystem and Devices

The following command has just run successfully:

cd /opt; tar xvf /dev/nst0;  

What will occur if the command sequence is run again?

Explanation

A non-rewinding tape device retains its position after an archive is read. A subsequent tar extraction therefore reads the next tape file and extracts its entries into /opt, adding content (and potentially overwriting files with matching names) rather than replacing the entire directory. GNU tar documents that tape operations begin at the tape head’s current position and that tapes can contain multiple archive files.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!