linux unzip tar.gz to directory code example Example 1: uncompress tar tar -xvf filename.tar Example 2: untar .tar file tar -xvf yourfile.tar