Howto: UNIX Zip Command

https:/‮tual.www/‬turi.com
Howto: UNIX Zip Command

The zip command is a utility on Unix-like systems for creating and manipulating zip archive files.

Here are some common examples of how to use the zip command:

  • To create a zip archive of a directory, you can use the following command:
zip -r archive.zip directory

This will create a zip archive called archive.zip containing the contents of the directory directory.

  • To add a file to an existing zip archive, you can use the -u option:
zip -u archive.zip file

This will add the file file to the archive.zip archive.

  • To extract the contents of a zip archive, you can use the -d option:
zip -d archive.zip

This will extract the contents of archive.zip to the current directory.

  • To view the contents of a zip archive, you can use the -l option:
zip -l archive.zip

This will list the contents of archive.zip.

Created Time:2017-10-29 22:08:48  Author:lautturi