Bird
0
0

What information does the command tar -tvf archive.tar display about the contents of archive.tar?

medium📝 Command Output Q4 of 15
Linux CLI - Archiving and Compression
What information does the command tar -tvf archive.tar display about the contents of archive.tar?
ACompresses the archive using gzip compression
BExtracts all files from the archive to the current directory
CCreates a new archive named archive.tar from the current directory
DA detailed list of files and directories inside the archive with permissions, sizes, and timestamps
Step-by-Step Solution
Solution:
  1. Step 1: Understand the options

    -t lists the contents, -v makes it verbose, and -f specifies the archive file.
  2. Step 2: Interpret the output

    The command shows a detailed listing of files inside archive.tar including permissions, owner, size, and modification date.
  3. Final Answer:

    A -> Option D
  4. Quick Check:

    Listing contents with details [OK]
Quick Trick: tar -tvf lists archive contents verbosely [OK]
Common Mistakes:
  • Confusing -t with extraction option -x
  • Assuming it extracts files instead of listing
  • Thinking it compresses the archive

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes