Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 Dec 2010 08:45:28 +0100
From:      Polytropon <freebsd@edvax.de>
To:        Zbigniew Szalbot <zszalbot@gmail.com>
Cc:        User Questions <freebsd-questions@freebsd.org>
Subject:   Re: Archiving directories / zip format
Message-ID:  <20101206084528.7423067a.freebsd@edvax.de>
In-Reply-To: <AANLkTi=Z_yprmMPkRpQrJGDfF6sBO_jcP_wLfr701n9y@mail.gmail.com>
References:  <AANLkTi=Z_yprmMPkRpQrJGDfF6sBO_jcP_wLfr701n9y@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 6 Dec 2010 08:17:17 +0100, Zbigniew Szalbot <zszalbot@gmail.com> wr=
ote:
> Dear=A0all,
>=20
> From time to time I want to archive a quite a few directories to
> download them conveniently. I have been using tar to do it, endingin
> up with a tar.gz file. But the problem with it is that I do not have a
> unix machine at home so if I want to extract something or unpack the
> content, there is no easy way to do that. My question basically is if
> there is a way to end up with a zip file?

You can install the "zip" program:

	# pkg_add -r zip

and then use it recursively, e. g.

	% zip -r9 stuff.zip dir1 dir2 dir3 fileX fileY

If there is no need for compression, change 9 to 0. Also
see "man zip" for details.



> Or are there any windows
> tools to unzip and/or extract content from tar.gz files?

There should be a TAR.EXE program, at least it existed as
an addition to DOS. I'm not sure this exists for "Windows",
or if you need some additional program for that.



--=20
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20101206084528.7423067a.freebsd>