how to extract tar files code example Example 1: extract tar linux tar -zxvf file_name.tar.gz Example 2: how to unzip using tar tar -xf archive.tar.gz