Multiple choice technology operating systems

which command is used to list the contens of the tar file ?

  1. tar –tvf newfile.tar

  2. tar –xvf newfile.tar

  3. tar –cvf newfile.tar

  4. tar -avf newfile.tar

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

The tar command uses -t to list contents, -v for verbose mode, and -f to specify the filename. Thus 'tar -tvf' lists archive contents verbosely. Option B (-xvf) extracts files, option C (-cvf) creates archives, and option D (-avf) is not a standard tar option.