The zip and unzip Commands:
The zip and unzip programs work almost the same as its cousins: PKZIP and PKUNZIP from DOS . You can compress many files together into a zip file like this:
Code/Command:
zip squash.zip file1 file2 file3
Then you can uncompress this original files with this command:
Code/Command:
unzip squash.zip
Most of the flags are the same used in PKZIP and PKUNZIP, however, there are several differences, so you might like to view the help with zip -h or unzip -h if you need anything fancier than the basic commands which were show here.
If you want to use the -k flag when you zip a file under Linux, you can apply PKUNZIP to it under DOS. The -k flag tells the zip program to translate the Unix file and directory names into something that fits the more restrictive DOS naming pattern.
If you want more information on the zip utility, you can view the man pages with this command;
Code/Command:
man zip