Desempaco de alcatrão
tar -xzf packed.tar.gz
foloinfo
tar -xzf packed.tar.gz
tar -zxvf file_name.tar.gz
# compress
tar czvf < archive_name >.tar.gz < path >
# extract
tar xzvf < archive_name >.tar.gz
tar xzvf < archive_name >.tar.gz -C /home/usera/tmp
tar -xf archive.tar.bz2 -C /home/linuxize/filesCopy
tar -xvf file.tar etc/resolv.conf
tar -xzvf file.tar.gz etc/resolv.conf
tar -xjvf file.tar.bz2 etc/resolv.conf
#Extract files into a specific folder
tar -xf archive.tar.gz -C /home/linuxize/files
# Extract
# -> filename.tar.gz, filename.tgz
username@computer:~$ tar -xzvf filename.tgz -C /home/username/directory
# -> filename.tar.bz2, filename.tbz
username@computer:~$ tar -jxvf filename.bz2 -C /home/username/directory