The xvf command of the tar tool allows to extract files from a file with the .tgz extension, in the current folder. Let’s see an example of the xvf command:

$ tar xvf /home/login/Downloads/myArchive.tgz

It will extract all files present in the archive into the current directory in a new directory with the name of the first directory of the archive file.