0

Can I view file names from zipped tar file without unzip and extracting it? The command tar -tvf will show the file contents with out extracting it. Is it possible with zipped tar file?

  • tar -tvzf myfile.tgz ? – garethTheRed Apr 7 '17 at 6:24
0

Yes. Use the command

tar -tvzf file.tar.gz

The -z argument handles zipped tarfiles.

  • Thank you it is working. Unfortunately its not working in my AIX flavour but it is working in other flavours of unix – Srinivas Apr 7 '17 at 10:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.