Extract specific file from tar.gz

tar -zxvf archive.tar.gz full-file-path-inside-archive

# to get that specific file you need full path try
tar -tzf archive.tar.gz | grep file-to-extract
# you will end up with 
./file-to-extract or similar then use that full path with first command

Side note its not super fast for big archives, sadly.

Leave a Reply

Your email address will not be published. Required fields are marked *

*