so i just tried to guess wether how to gzip a directory ... i now have a directory with thousands of files as before... except that they are all gzipped individually 😅

@milan gzip only does individual files. Tar does multiple files but doesn't do compression. That's how we invented the gzipped tarball. (tar has a gzip flag)

tar zcf name.tar.gz directory/

z: gzip-compress the output
c: create archive (versus x:extract, t:test)
f: write to the named file instead of stdout


@milan I should clarify, when I say "tar doesn't do compression" I'm referring to the tar format; the tar tool DOES do compression, but only by gzipping the actual tar file. .tar.gz is a very common format for distributing source code in Linux.

Sign in to participate in the conversation

This instance is focused around the furry community, and is open to anyone interested in it. It's open to all fluffies and scalies ! ⚠️ We do not accept any form of sponsored content on our site. If you like meow, consider donating something via paypal or Liberapay