Pages

Linux Zip and Unzip

Zip and Unzip
To compress a le with zip, type the following command:

zip -r filename.zip filesdir

In this example, filename.zip represents the le you are creating and filesdir represents the
directory you want to put in the new zip le. The -r option species that you want to include all les
contained in the filesdir directory recursively.
To extract the contents of a zip le, type the following command:

unzip filename.zip

You can use zip to compress multiple les and directories at the same time by listing them with a
space between each one:

zip -r filename.zip file1 file2 file3 /usr/work/school

The above command compresses file1, file2, file3, and the contents of the
/usr/work/school directory (assuming this directory exists) and places them in a le named

filename.zip

Forex Trading