$ /devops

How to zip or unzip files in Ubuntu

published · 1 minute read · devops ubuntu zip
How to zip or unzip files in Ubuntu

First step, make sure that you have zip installed on your machine:

sudo apt-get install unzip

If you want to extract to a particular destination folder, you can use:

unzip file.zip -d destination_folder

If the source and destination directories are the same, you can simply do:

unzip file.zip