Create a Zip File

When submitting an assignment or organizing and archiving files, the (zip) command can be used to compress multiple files into one, to minimize the size of a single file, or to recursively compress a directory. The zipped files are not merged with each other, and the smaller file size makes them easier to move between machines using email, flash drives, etc.

eos$ zip zipfile uncompressedfile
eos$ zip zipfile uncompressedfile1 uncompressedfile2 …

-r is required for zipping up directories

eos$ zip -r zipfile directory

unzip

You can decompress the file using the unzip command:

eos$ unzip zipfile

Without options, unzip decompresses the zip file and places the files into your current directory. You will have at least two files in your directory after unzipping – the uncompressed file and the .zip file.

eos$ unzip -d pathname zipfile

Using the -d option and a pathname will allow for the unzip command to unzip the files and place them into the specified path

Should I expect an output?

Yes:

zip

adding: file.txt (deflated %)

unzip

inflating: file.txt