opening a .tar.gz file with a single command
问题 when I download a .tar.gz file, I open it with two commands, first gunzip and then tar . Is it possible to open it with just one command? 回答1: tar xzf file.tar.gz The letters are: x - extract z - gunzip the input f - Read from a file, not stdin 回答2: You can use tar with a "z" argument tar xvfz mytar.tar.gz 回答3: If you don't have gnu tar it is still possible to open the file in a single step (although technically still two commands) using a pipe zcat file.tar.gz |tar x 回答4: How do I extract a