Rodolfo Bandeira

Rodolfo Bandeira

software, electronics, security, devops, thoughts

How to list files from a tar.gz file

Before this became automatically in my mine, I used to google that all the time. So here we go:

If you want just to see which files are inside the .tar.gz file you may use -t option:

tar -ztvf file.tar.gz

If you want to extract files, you may use -x

tar -xzvf file.tar.gz


Last modified: