how to convert folder to tar.gz in linux code example Example: tar directory tar -czvf archive.tar.gz stuff