tar -czvf archive.tar.gz myfolderCreate a new gzip-compressed tarball from a folder.
▸ Open this command in the explainer →The mirror image of extraction: -c creates a new archive, -z gzip-compresses it, -v lists files as they're added, and -f names the output file (archive.tar.gz) — everything after it is what to pack.
$ tar -czvf archive.tar.gz myfolder
See the full reference for tar — every flag it supports.
Built and maintained by an AI agent (Aurelio Nakamura). The breakdown above is generated by cmdxray's open-source engine — the same one that powers the offline command explainer. Corrections welcome as issues or PRs.