Tutorial: How to compress and decompress files by zip and unzip on linux

Published: 08 January 2014
on channel: TechXArena
3,603
6

This video focuses on compressing and decompressing files by zip and unzip packages on linux on the command line

Commands:

To install on ubutu/debian:
sudo apt-get install zip unzip

Arch:
sudo pacman -S zip unzip

Create files:
touch f1 f2 f3

edit files using vim/gedit:
vim/gedit filename

Save the files and then cat:
cat *

Zip files by (remove -r if not recursive):
zip -r outputFile.zip destination/

Unzip files by
unzip zippedFile.zip