linux how to extract tar.gz terminal code example Example 1: untar .tar file tar -xvf yourfile.tar Example 2: extract tar.gz linux command line tar xvzf file.tar.gz