In this short article we would like to show how to extract
*.tar.gz file using Linux Command Line.
tar -xzvf /path/to/file.tar.gz
reports/2020-01/log.1.txt reports/2020-01/log.2.txt reports/2020-01/log.3.txt reports/2020-01/log.4.txt reports/2020-01/users/log.1.txt reports/2020-01/users/log.2.txt reports/2020-01/users/log.3.txt
-xmeans archive extracting,
-zmeans gz decompression,
-vmeans pringin in console progress as paths to extracted files,
/path/to/file.tar.gzahould be attached.
Extracting only specific paths
By adding next parameter we are able to specify the path, that we want to extract only.
tar -xzvf /path/to/file.tar.gz reports/2020-01/users
reports/2020-01/users/log.1.txt reports/2020-01/users/log.2.txt reports/2020-01/users/log.3.txt