how to copy a file and explode the tarball code example Example: extract from tar gz into folder mkdir foo tar -xzf bar.tar.gz -C foo