TECH SOLUTIONS

Click here to edit subtitle

Forums

Post Reply
Forum Home > Unix Learnings > Unix : Reading content of tar file without Extracting

Sourav Gulati
Site Owner
Posts: 83

To read the contents of tar file without extracting use "tar -tf" option as follows:

$ tar -tf filename.tar.gz

If the archive contains multiple files and directories, it is recommended to force the output to less for easier viewing, as the following;

$ tar tf filename.tar.gz | less

You will be able to view contenets .tar, .tar.gz files without extracting them


--


January 14, 2013 at 2:44 AM Flag Quote & Reply

You must login to post.