How to create and extract Zip file in Linux

Create a zip file 

$ zip -r tecnotab.zip tecnotab.txt

where tecnotab.zip is the name of the zip file that you want to give and tecnotab.txt  is your actual file that you want to zip.
unzip a file.

$ unzip tecnotab.zip

Extract Zip File to Specific or Different Directory

$ mkdir -p /tmp/unziped
$ unzip tecmint_files.zip -d /tmp/unziped
$ ls -l /tmp/unziped

Leave a Reply