Извлечь из смолы в папку

mkdir foo
tar -xzf bar.tar.gz -C foo
Itchy Iguana