extract tar in ubntu code example Example 1: uncompress tar tar -xvf filename.tar Example 2: extract tar gz tar -xvf archive.tar.gz