Given that I have this archive my_archive.tar.gz which has this file in it: README. How can I output the content of README without having to extract the archive?

OS: Debian 7

1 Answer 1


Use z to (g)unzip, x to extract, with f from archive file. Then add also option -O to direct extracted files to standard output.

tar xzf my_archive.tar.gz folder/README.txt -O



You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .