Multiple choice technology operating systems

Which of the following options would you use to examine the contents of anarchive without extracting it?

  1. -f

  2. -t

  3. -x

  4. -cv

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

The tar command's -t (table of contents) option lists the files stored in an archive without extracting them. This is useful for previewing archive contents before extraction. The -x option would extract files, -f specifies the archive filename, and -cv would create a verbose archive.