extract .tar file in linux command code example Example 1: extract tar linux tar -zxvf file_name.tar.gz Example 2: extract tar.gz linux command line tar xvzf file.tar.gz