command for extracting tar file code example Example 1: extract tar linux tar -zxvf file_name.tar.gz Example 2: Unzip tar file tar xvf spark-*