Zip files

Summary on the commands used to zip and unzip for the
various zip formats:

7-zip - app-arch/p7zip

ace - app-arch/unace

arj - app-arch/arj

cpio - app-arch/cpio

deb - app-arch/dpkg

iso - app-cdr/cdrtools

jar,zip - app-arch/zip and app-arch/unzip

lha - app-arch/lha

lzma - app-arch/xz-utils

lzop - app-arch/lzop

rar - app-arch/unrar

rpm - app-arch/rpm

zoo - app-arch/zoo

unstuff - app-arch/stuffit

lz4 - app-arch/lz4

There are some zip front ends as file-roller used in gnome that make use on the
packages listed above.

atool

Atool tries to do what a user
expects. Certain archives scatter files allover the place
when extracting. atool avoids this by putting always all into
a directory. man
atool shows all programs coming with
atool.

bzip2

Uses extensions as bz2. The tools are:

bzcat to
unzip.

But there is also bzip2 and bunzip2. See man bzip2

gzip and
gunzip

gzip<filename>
to get <filename>.gz

gunzip<filename>.gz
to get <filename>

Tar

Extract tar: tar
–xzf<filename>.tar

Extract tar.gz: tar
-xzf<filename>.tar.gz

Create tar.gz of a directory that is inside the current
directory tar -czf<file name>.tar.gz
<directory
name>

Extract tgz: tar
xvzf<filename>.tgz

unrar

unrar<myfile>.rar

Zcat

zcat is
identical to gunzip
-c

Zip

So many things can go wrong. Go into the directory that
you like to zip and zip -r
<output
filename>.zip * Password
protection: