How to open tar.gz file in linux terminal


 description

Unzip the test.tar.gz file in Linux

 command

tar -zxvf test.tar.gz

 parameter

tar :   saves many files together into a single tape or disk archive, and can restore individual files from the archive
-z, --gzip, --gunzip, --ungzip :  filter the archive through gzip
-x, --extract, --get :  extract files from an archive
-v, --verbose :  verbosely list files processed
-f, --file=ARCHIVE :  use archive file or device ARCHIVE

 result

test/filt1.txt
test/filt2.txt

I hope to help every developer quickly find the commands they need. Of course, you can also add your own commonly used commands for easy searching.