Why hasn't anyone mentioned tar
? It's the most popular archive format among Unix users (just just Windows users almost always use zip).
Create a tar archive:
tar cf my-archive.tar file1 file2 file3
Extract a tar archive:
tar xf my-archive.tar
Note that tar is purely an archive format, with no compression. tar archives are commonly compressed with gzip
, or xz
Modern versions of the GNU tar utility automatically detect common compression formats. And when creating an archive, you can either separately compress it after creating it, or use the "z" option for gzip, "j" for bzip2, or "J" for xz.