How to unzip and extract tar file in single command in UNIX and Linux
If you have a compressed tar file with .tar.gz extension, typically you would run gzip -d to decompress first, then run tar xvf to untar it. However, you can use the following tip to accomplish the tasks in one simple command.