List and extract single file from tar.gz

How many times do you need to download from SSH a large tar.gz file from server for extract a single file?

There’s a simple solution for avoid waiting time to download a file.

From cli:

tar -ztvf filename.tar.gz 

When you know where’s a file, extract with:

tar -xvzf filename.tar.gz path/to/file 

simple sol

One thought on “List and extract single file from tar.gz

Leave a Reply