Linux

Zip Example: How to Do!

The zip command under UNIX is use for a compression. It works as a file packaging utility for the following operating systems:

1. Unix
2. VMS
3. MSDOS
4. OS/2
5. Windows 9x/NT/XP, 6. Minix
7. Atari
8. Macintosh
9. Amiga
10. Acorn RISC OS.

Simple Examples

The syntax is as follows:

zip file.zip file1.txt file2.doc photo.jpg ...

To zip resume.doc and all *.c file, enter:

zip bacup.zip resume.doc *.c

To zip data directory, enter:

zip -r backup.zip data

Linux
Linux