extract tar command code example
Example 1: extract tar.xz ubuntu
tar -xf file.tar.xz
Example 2: extract tar linux
tar -zxvf file_name.tar.gz
Example 3: extract tar
tar -xvf file.tar
Example 4: extract tar gz
tar xvzf file.tar.gz
tar -xf file.tar.xz
tar -zxvf file_name.tar.gz
tar -xvf file.tar
tar xvzf file.tar.gz