DEV Community

loading...

How to zip or unzip files in Ubuntu

boobo94 profile image Bogdan Alexandru Militaru Originally published at boobo94.github.io on ・1 min read

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

Discussion (0)

pic
Editor guide