DEV Community

Bogdan Alexandru Militaru
Bogdan Alexandru Militaru

Posted on • Originally published at boobo94.github.io on

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

Enter fullscreen mode Exit fullscreen mode

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

unzip file.zip -d destination_folder

Enter fullscreen mode Exit fullscreen mode

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

unzip file.zip

Enter fullscreen mode Exit fullscreen mode

Top comments (0)