How to open tar.gz file in linux terminal


Unzip the test.tar.gz file in Linux


tar -zxvf test.tar.gz


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


Was this helpful?

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.