Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am currently running a computer which has access to only Windows.

I have to submit a folder after running tar -czf on it.

How can I do this in Windows, do I have any options?

share|improve this question

migrated from Feb 11 '11 at 19:35

This question came from our site for professional and enthusiast programmers.

You want to install Cygwin or MSYS, they usually come with tar utility.

share|improve this answer

Take a look at Tar for Windows.

The GNU Tar program provides the ability to create tar archives, as well as various other kinds of manipulation. For example, you can use tar on previously created archives to extract files, to store additional files, or to update or list files which were already stored.

The Win32 port can only create tar archives, but cannot pipe its output to other programs such as gzip or compress, and will not create tar.gz archives; you will have to use or simulate a batch pipe. BsdTar does have the ability to direcly create and manipulate .tar, .tar.gz, tar.bz2, .zip, .gz and .bz2 archives, understands the most-used options of GNU Tar, and is also much faster; for most purposes it is to be preferred to GNU Tar.

share|improve this answer
Whilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference. – soandos Jul 16 '12 at 2:38

tar -czf creates a gzipped tar file, usually the extension .tar.gz or .tgz is used.

Windows has no built-in support for creating (or reading) tar files or gzipped files, and Microsoft offers no tools for this either.

This format can be created using, e.g., 7Zip; see for example this blog post: ( copy: apparently this blog disappeared). Many more tools could be used, see ( copy: apparently disappeared, to be replaced by

share|improve this answer
I think he is asking for a native way to do it. (instead of 3rd party) – Pacerier Apr 24 '14 at 11:56

You can also download and install 7zip. With it, you can both unpack and pack many different compression types including gzip.

share|improve this answer

If all you want is to create a tar.gz (also called tgz) file, then you can use 7Zip from

Supported formats:

* Packing / unpacking: 7z, XZ, BZIP2, GZIP, TAR, ZIP and WIM
* Unpacking only: ARJ, CAB, CHM, CPIO, CramFS, DEB, DMG, FAT, HFS, ISO, LZH, LZMA, MBR, MSI, NSIS, NTFS, RAR, RPM, SquashFS, UDF, VHD, WIM, XAR and Z.
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.