4

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

6

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

Source

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.