which command is used to list the contens of the tar file ?
-
tar –tvf newfile.tar
-
tar –xvf newfile.tar
-
tar –cvf newfile.tar
-
tar -avf newfile.tar
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.